warn_emptydecl

Controls the recognition of declarations without variables.

Syntax
  #pragma warn_emptydecl on | off | reset  
Remarks

If you enable this pragma, the compiler displays a warning message when it encounters a declaration with no variables.

Listing: Examples of empty declarations in C and C++
#pragma warn_emptydecl on
int ; /* WARNING: empty variable declaration. */

int i; /* OK */

  

long j;; /* WARNING */

long j; /* OK */
Listing: Example of empty declaration in C++
#pragma warn_emptydecl on
extern "C" {

}; /* WARNING */