0004-Add-Wno-format-nonliteral-to-compiler-arguments.patch 964 B

12345678910111213141516171819202122232425262728
  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. ---
  9. meson.build | 1 +
  10. 1 file changed, 1 insertion(+)
  11. diff --git a/meson.build b/meson.build
  12. index 3c615b7..7cae4e8 100644
  13. --- a/meson.build
  14. +++ b/meson.build
  15. @@ -372,6 +372,7 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
  16. '-Wno-cast-function-type',
  17. + '-Wno-format-nonliteral',
  18. # Due to function casts through (void*) we cannot support -Wpedantic:
  19. # https://wiki.gnome.org/Projects/GLib/CompilerRequirements#Function_pointer_conversions.
  20. '-Wno-pedantic',
  21. '-Werror=declaration-after-statement',
  22. '-Werror=format=2',
  23. --
  24. 2.20.1