Community Translation - “Old Style Function Definition" Warning in PSoC® Designer™ - KBA83779

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Kenshow
Level 8
Level 8
Distributor - Marubun (Japan)
50 solutions authored 25 solutions authored 10 solutions authored

Hi,               

I would like to translate KBA83779 into Japanese.

Please confirm to my work.

Thanks,

Kenshow

0 Likes
2 Replies
JennaJo
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hi, Kenshow-san

Confirm to work this KBA.

Thanks,

Jenna

Jenna Jo
0 Likes
Kenshow
Level 8
Level 8
Distributor - Marubun (Japan)
50 solutions authored 25 solutions authored 10 solutions authored

Hi Jenna-san,

                                

Japanese translation was over.
Please check below.

Original KBA:

“Old Style Function Definition" Warning in PSoC® Designer™ - KBA83779

Thanks.

Kenshow

==============================

タイトル: PSoC®Designer™の「古いスタイルの関数定義」警告 - KBA83779

バージョン:*A

質問:

PSoC Designerの新しいバージョンを使用してプロジェクトをコンパイルすると、「Old Style Function Definition古いスタイルの関数定義)」の警告が表示されます。警告を受けずにPSoC Designer 5.0より前のバージョンを使用してこのプロジェクトをビルドできます。この警告の原因とそれを克服する方法は?

回答:

新しいImageCraftコンパイラ(最新のPSoC Designer 5.4までPSoC Designer 5.0 Service Pack 4.5以降で使用)は、ANSI C規格により準拠しています。

PSoC Designerの以前のバージョンでは、関数定義で引数リストを空白のままにすることができました。例えば:

void main()

{

}

このコードを新しいImageCraftコンパイラでコンパイルしようとすると、「 'main'の古いスタイルの関数定義」警告が表示されます。この警告は無視しても問題ありません。ただし、引数リストにvoidを追加することで、この警告を排除できます。

void main(void)

{

}

==============================

21-July-2020

  Kenshow

0 Likes