kopia lustrzana https://gitlab.com/sane-project/backends
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
rodzic
30ef15bd17
commit
2d49a4d101
|
@ -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 */
|
||||
|
|
Ładowanie…
Reference in New Issue