### warn_emptydecl

Controls the recognition of declarations without variables.

##### Syntax

#pragma warn_emptydecl on | off | reset

##### Targets

All platforms.

##### Remarks

If you enable this pragma, the compiler displays a warning when it encounters a declaration with no variables as shown in Listing 10.35.

#### Listing 10.35 Examples of Pragma warn_emptydecl

int ; // WARNING
int i; // OK
...
long j;; // WARNING
long j; // OK
...
extern "C" {
...
}; // WARNING

This pragma corresponds to the Empty Declarations setting . To check this setting, use __option (warn_emptydecl), described in Checking Settings. The default setting is off.