Added warnings for format problems in DBG messages (from Frank Zago

<fzago@greshamstorage.com>).
Henning Meier-Geinitz <henning@meier-geinitz.de>
DEVEL_2_0_BRANCH-1
Henning Geinitz 2002-02-14 19:39:56 +00:00
rodzic 30ef15bd17
commit 2d49a4d101
1 zmienionych plików z 12 dodań i 1 usunięć

Wyświetl plik

@ -56,7 +56,11 @@ int DBG_LEVEL = 0;
# ifdef DEBUG_DECLARE_ONLY
extern void DBG_LOCAL (int level, const char *msg, ...);
extern void DBG_LOCAL (int level, const char *msg, ...)
#ifdef __GNUC__
__attribute__ ((format (printf, 2, 3)))
#endif
;
# else /* !DEBUG_DECLARE_ONLY */
@ -65,6 +69,13 @@ extern void DBG_LOCAL (int level, const char *msg, ...);
extern void sanei_debug_msg
(int level, int max_level, const char *be, const char *fmt, va_list ap);
#ifdef __GNUC__
# ifndef DEBUG_NOT_STATIC
static
# endif /* !DEBUG_NOT_STATIC */
void DBG_LOCAL (int level, const char *msg, ...) __attribute__ ((format (printf, 2, 3)));
#endif /* __GNUC__ */
# ifndef DEBUG_NOT_STATIC
static
# endif /* !DEBUG_NOT_STATIC */