diff -r 000000000000 -r fb279309251b core/com.nokia.carbide.cpp.compiler.doc.user/html/pragmas/p_warn_unusedarg.htm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/com.nokia.carbide.cpp.compiler.doc.user/html/pragmas/p_warn_unusedarg.htm Fri Apr 03 23:33:03 2009 +0100 @@ -0,0 +1,26 @@ + + + + + + + warn_unusedarg + + + + +

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.

+

+ + + + +