chore: configure: add DEBUG_PRINTF_FORMAT=1 to catch printf format eerrors

This commit is contained in:
Stéphane Lesimple
2021-01-15 19:19:02 +01:00
parent 83acea4684
commit a3aedbd4a2
2 changed files with 19 additions and 1 deletions

View File

@@ -72,8 +72,14 @@
Note that these functions are even required when
WITH_NLS_NO is set! */
#ifdef DEBUG_PRINTF_FORMAT
/* disable sgettext() calls so that the compiler can analyze printf format strings */
#define _(string) string
#define _utf(string) string
#else
#define _(string) sgettext(string)
#define _utf(string) sgettext_utf8(string)
#endif
/* File permissions for images */