GNOME Bugzilla – Bug 766761
Fix non-literal format string warnings for clang
Last modified: 2016-05-22 14:56:13 UTC
Please see the attached the patch. It adds a G_GNUC_PRINTF attribute to _ide_build_result_log to fix the problem. ide-build-result.c:132:41: error: format string is not a string literal [-Werror,-Wformat-nonliteral] len = g_vsnprintf (data, sizeof data, format, copy); ^~~~~~ ide-build-result.c:138:37: error: format string is not a string literal [-Werror,-Wformat-nonliteral] g_vsnprintf (freeme, len + 2, format, args); ^~~~~~ 2 errors generated.
Created attachment 328338 [details] [review] libide: Fix non-literal format string warnings for clang
Review of attachment 328338 [details] [review]: Hrm, looks like that function should have been static too. Mind fixing that as well?
Created attachment 328342 [details] [review] libide: Fix non-literal format string warnings for clang This commit also makes the function static, as it should be.
Review of attachment 328342 [details] [review]: LGTM
Attachment 328342 [details] pushed as 059b179 - libide: Fix non-literal format string warnings for clang