glib/gmodule
Martin Storsjö 6cae01c2f5 Silence clang errors about -Wformat-nonliteral due to missing intermediate attributes
By default, meson builds glib with -Werror=format=2, which
implies -Werror=format-nonliteral. With these flags, clang errors
out on e.g. the g_message_win32_error function, due to "format
string is not a string literal". This function takes a format
string, and passes the va_list of the arguments onwards to
g_strdup_vprintf, which is annotated with printf attributes.

When passing a string+va_list to another function, GCC doesn't warn
with -Wformat-nonliteral. Clang however does warn, unless the
functions themselves (g_message_win32_error and set_error) are decorated
with similar printf attributes (to force the same checks upon the
caller) - see
https://clang.llvm.org/docs/AttributeReference.html#format
for reference.

Adding these attributes revealed one existing mismatched format string
(fixed in the preceding commit).
2020-04-27 16:26:04 +03:00
..
AUTHORS initial import of gmodule. 1998-08-09 08:32:18 +00:00
COPYING gmodule/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
gmodule-ar.c gmodule: change _g_module_close to only take a handle. 2019-12-12 16:15:05 +00:00
gmodule-dl.c gmodule: change _g_module_close to only take a handle. 2019-12-12 16:15:05 +00:00
gmodule-win32.c Silence clang errors about -Wformat-nonliteral due to missing intermediate attributes 2020-04-27 16:26:04 +03:00
gmodule.c gmodule: change _g_module_close to only take a handle. 2019-12-12 16:15:05 +00:00
gmodule.h gmodule/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
gmodule.rc.in meson: build Windows resource files 2018-01-04 22:19:30 +01:00
gmoduleconf.h.in gmodule: remove macOS dyld implementation 2019-09-07 16:41:34 +01:00
meson.build Meson: Override every dependency glib provides 2020-04-05 00:34:04 -04:00