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 when it encounters a declaration with no variables.

Listing: Example of Pragma warn_emptydecl
int ;     // WARNING

int i;    // OK

This pragma corresponds to the Empty Declarations setting in the Warnings panel. To check this setting, use __option (warn_emptydecl), described in Checking Pragma Settings. By default, this pragma is disabled.