Revision: 2208 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2208&view=re... Author: colombanw Date: 2011-09-21 16:56:57 +0000 (Wed, 21 Sep 2011) Log Message: ----------- PrettyPrinter: mark printError() as taking printf-style varargs
This allows some compilers (i.e. GCC) to check the argument format and types.
Modified Paths: -------------- trunk/geany-plugins/pretty-printer/src/PrettyPrinter.c
Modified: trunk/geany-plugins/pretty-printer/src/PrettyPrinter.c =================================================================== --- trunk/geany-plugins/pretty-printer/src/PrettyPrinter.c 2011-09-21 16:56:38 UTC (rev 2207) +++ trunk/geany-plugins/pretty-printer/src/PrettyPrinter.c 2011-09-21 16:56:57 UTC (rev 2208) @@ -50,7 +50,7 @@ static void processDoctypeElement(void); //process a DOCTYPE ELEMENT node
//debug function -static void printError(const char *msg, ...); //just print a message like the printf method +static void printError(const char *msg, ...) G_GNUC_PRINTF(1,2); //just print a message like the printf method static void printDebugStatus(void); //just print some variables into the console for debugging
//============================================ PRIVATE PROPERTIES ======================================
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.