Removed some unused parameters; added SAL_UNUSED_PARAMETER.
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC) is used to annotate legitimately unused parameters, so that static analysis tools can tell legitimately unused parameters from truly unnecessary ones. To that end, some patches for external modules are also added, that are only applied when compiling with GCC and add necessary __attribute__ ((unused)) in headers.
This commit is contained in:
11
cppunit/cppunit-1.12.1-unused-parameters.patch
Normal file
11
cppunit/cppunit-1.12.1-unused-parameters.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- misc/cppunit-1.12.1/include/cppunit/plugin/TestPlugIn.h 2012-01-18 10:28:28.189298501 +0100
|
||||
+++ misc/build/cppunit-1.12.1/include/cppunit/plugin/TestPlugIn.h 2012-01-18 10:28:06.449450460 +0100
|
||||
@@ -153,7 +153,7 @@
|
||||
// Unix
|
||||
#elif defined(CPPUNIT_HAVE_UNIX_DLL_LOADER) || defined(CPPUNIT_HAVE_UNIX_SHL_LOADER)
|
||||
#define CPPUNIT_PLUGIN_IMPLEMENT_MAIN() \
|
||||
- int main( int, char *[] ) \
|
||||
+ int main() \
|
||||
{ \
|
||||
return 0; \
|
||||
} \
|
Reference in New Issue
Block a user