Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zypp: Use 'G_GNUC_PRINTF' attribute to 'zypp_backend_finished_error' …
…and fixup warnings Add 'G_GNUC_PRINTF' attribute to fix the following warning: ../backends/zypp/pk-backend-zypp.cpp: In function ‘void zypp_backend_finished_error(PkBackendJob*, PkErrorEnum, const char*, ...)’: ../backends/zypp/pk-backend-zypp.cpp:1803:35: warning: function ‘void zypp_backend_finished_error(PkBackendJob*, PkErrorEnum, const char*, ...)’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 1803 | buffer = g_strdup_vprintf (format, args); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ and fix follow up warnings due to that. pk-backend-zypp.cpp:1933:53: warning: format not a string literal and no format arguments [-Wformat-security] pk-backend-zypp.cpp:2131:45: warning: format not a string literal and no format arguments [-Wformat-security] pk-backend-zypp.cpp:2135:45: warning: format not a string literal and no format arguments [-Wformat-security] pk-backend-zypp.cpp:2215:53: warning: format not a string literal and no format arguments [-Wformat-security] pk-backend-zypp.cpp:2597:45: warning: format not a string literal and no format arguments [-Wformat-security] pk-backend-zypp.cpp:2869:45: warning: format not a string literal and no format arguments [-Wformat-security] pk-backend-zypp.cpp:2985:45: warning: format not a string literal and no format arguments [-Wformat-security] pk-backend-zypp.cpp:2989:45: warning: format not a string literal and no format arguments [-Wformat-security] pk-backend-zypp.cpp:3279:45: warning: format not a string literal and no format arguments [-Wformat-security] pk-backend-zypp.cpp:3283:45: warning: format not a string literal and no format arguments [-Wformat-security] pk-backend-zypp.cpp:3334:45: warning: format not a string literal and no format arguments [-Wformat-security] pk-backend-zypp.cpp:3338:45: warning: format not a string literal and no format arguments [-Wformat-security] pk-backend-zypp.cpp:3961:45: warning: format not a string literal and no format arguments [-Wformat-security] Closes PackageKit#692
- Loading branch information