GNOME Bugzilla – Bug 767207
Build fixes
Last modified: 2016-06-06 12:09:18 UTC
.
Created attachment 329069 [details] [review] build: Fix autogen.sh for builddir != srcdir
Created attachment 329070 [details] [review] build: Fix -Wformat-y2k compilation errors The strings are user visible strings, so this isn't a y2k problem.
Created attachment 329072 [details] [review] build: Fix -Wformat-nonliteral compilation errors By ignoring the errors when a fix would be too convoluted.
Review of attachment 329069 [details] [review]: merged to master: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=ed7ee64d4e92f1aad14f53ec8898d1ae0a319c86
Review of attachment 329070 [details] [review]: I would instead disable this warning via "-Wno-format-y2k" in m4/compiler_options.m4. I don't think that every warning that gcc provides makes sense for every project (this one IMO doesn't make sense for us).
Review of attachment 329072 [details] [review]: I didn't realize you posted this patch on Friday. So, yesterday, after https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=6725962f83eef3268fa76e8c046997273c4285e4 , compilation was broken on Fedora 23 too. So I already fixed it in https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=466bf2f6332e15a447a40e2a92b7f4493502855a . Sorry about that overlap.
(In reply to Thomas Haller from comment #5) > Review of attachment 329070 [details] [review] [review]: > > I would instead disable this warning via "-Wno-format-y2k" in > m4/compiler_options.m4. I agree, the option seems hardly useful.
(In reply to Thomas Haller from comment #4) > Review of attachment 329069 [details] [review] [review]: > > merged to master: > https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/ > ?id=ed7ee64d4e92f1aad14f53ec8898d1ae0a319c86 hm, this broke build on Ubuntu 12.04. Reverted: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=fa6b1070fcf6ae267e766ca1d2c8de0ac1b85255 (In reply to Beniamino Galvani from comment #7) > (In reply to Thomas Haller from comment #5) > > Review of attachment 329070 [details] [review] [review] [review]: > > > > I would instead disable this warning via "-Wno-format-y2k" in > > m4/compiler_options.m4. > > I agree, the option seems hardly useful. disabled: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=b8b68e212d526fe4c94a6291d21612d4ac1cb094