0003-Add-Wno-format-nonliteral-to-compiler-arguments.patch 987 B

1234567891011121314151617181920212223242526272829
  1. From 9e0f11a4981737f98bac93a22b6f2ff1a3887b63 Mon Sep 17 00:00:00 2001
  2. From: Adam Duskett <Aduskett@gmail.com>
  3. Date: Tue, 9 Apr 2019 13:03:51 -0400
  4. Subject: [PATCH] Add '-Wno-format-nonliteral' to compiler arguments.
  5. This warning is a false positive on older versions of gcc.
  6. See https://gitlab.gnome.org/GNOME/glib/issues/1744 for more details.
  7. Signed-off-by: Adam Duskett <Aduskett@gmail.com>
  8. Refresh for 2.68.1
  9. ---
  10. meson.build | 1 +
  11. 1 file changed, 1 insertion(+)
  12. diff --git a/meson.build b/meson.build
  13. index 3c615b7..7cae4e8 100644
  14. --- a/meson.build
  15. +++ b/meson.build
  16. @@ -431,6 +431,7 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
  17. # building with -Wbad-function-cast.
  18. '-Wno-bad-function-cast',
  19. '-Wno-cast-function-type',
  20. + '-Wno-format-nonliteral',
  21. # Due to function casts through (void*) we cannot support -Wpedantic:
  22. # https://wiki.gnome.org/Projects/GLib/CompilerRequirements#Function_pointer_conversions.
  23. '-Wno-pedantic',
  24. --
  25. 2.20.1