Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2004:
[Freeciv-Dev] Re: (PR#11591) __attribute__ format for AI logging functi
Home

[Freeciv-Dev] Re: (PR#11591) __attribute__ format for AI logging functi

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] Re: (PR#11591) __attribute__ format for AI logging functions
From: "Marko Lindqvist" <marko.lindqvist@xxxxxxxxxxx>
Date: Sat, 18 Dec 2004 11:54:38 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11591 >


  Patch I used to confirm #11589 fixes.


  - ML

diff -Nurd -X.diff_ignore freeciv/ai/ailog.h freeciv/ai/ailog.h
--- freeciv/ai/ailog.h  2004-12-18 21:39:13.312500000 +0200
+++ freeciv/ai/ailog.h  2004-12-18 21:57:04.796875000 +0200
@@ -31,9 +31,12 @@
 #define LOGLEVEL_HUNT LOG_DEBUG
 
 void PLAYER_LOG(int level, struct player *pplayer, struct ai_data *ai,
-                const char *msg, ...);
-void CITY_LOG(int level, struct city *pcity, const char *msg, ...);
-void UNIT_LOG(int level, struct unit *punit, const char *msg, ...);
+                const char *msg, ...)
+     fc__attribute((format (printf, 4, 5)));
+void CITY_LOG(int level, struct city *pcity, const char *msg, ...)
+     fc__attribute((format (printf, 3, 4)));
+void UNIT_LOG(int level, struct unit *punit, const char *msg, ...)
+     fc__attribute((format (printf, 3, 4)));
 void BODYGUARD_LOG(int level, struct unit *punit, const char *msg);
 
 #endif  /* FC__AILOG_H */

[Prev in Thread] Current Thread [Next in Thread]