warn_unusedarg

Controls the recognition of unreferenced arguments.

Syntax

#pragma warn_unusedarg on | off | reset

Targets
All platforms.
Remarks

If you enable this pragma, the compiler issues a warning when it encounters an argument you declare but do not use. For more information about this warning, see “Unused Arguments”. To suppress this warning in C++ source code, leave an argument identifier out of the function parameter list. Listing 10.33 shows an example.

This pragma corresponds to the Unused Arguments setting . To check this setting, use __option (warn_unusedarg), described in Checking Settings. The default setting is off.