0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

c++ builder > W8065 プロトタイプ宣言のない関数 's_testFunc'の呼び出し > 引数をvoid

Last updated at Posted at 2015-11-07
動作確認
C++ Builder XE4

以下の警告がでた。

W8065 プロトタイプ宣言のない関数 's_testFunc'の呼び出し

以下の条件で警告がでたもよう

  • Cソースファイル (.c)
  • static void testFunc() として定義
    • ソースファイルスコープの関数
  • testFunc()としてコール

解決策

  • static void testFunc(void) として定義

引数がない場合と、引数がvoidの場合の違いをもう少し意識しないといけない。

cppソースでは上記の警告が発生しないもよう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?