[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/ksysguard/ksysguardd [POSSIBLY UNSAFE]
From:       Dirk Mueller <mueller () kde ! org>
Date:       2003-01-12 12:54:29
[Download RAW message or body]

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
+    ;
+
+   
 
 /**


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic