CVS commit by mueller: tell the compiler that this one is interpreting format strings M +13 -3 Command.h 1.4 [POSSIBLY UNSAFE: printf] --- kdebase/ksysguard/ksysguardd/Command.h #1.3:1.4 @@ -42,10 +42,20 @@ extern int CheckSetupFlag; Delivers the error message to the front end. */ -void print_error( const char*, ... ); +void print_error( const char*, ... ) +#ifdef __GNUC__ + __attribute__ ( ( format ( printf, 1, 2 ) ) ) +#endif + ; /** Writes the error message to the syslog daemon. */ -void log_error( const char*, ... ); +void log_error( const char*, ... ) + #ifdef __GNUC__ + __attribute__ ( ( format ( printf, 1, 2 ) ) ) +#endif + ; + + /**