0001-disable-vala-fatal-warnings.patch 1022 B

123456789101112131415161718192021222324252627282930
  1. From be91b1260d3215119e4ab5b19012ab80d6ff788d Mon Sep 17 00:00:00 2001
  2. From: Adam Duskett <aduskett@gmail.com>
  3. Date: Mon, 11 Oct 2021 16:58:34 -0700
  4. Subject: [PATCH] disable vala fatal warnings
  5. When building midori in a buildroot directory cloned from git, the git
  6. descript --tags command return tags from buildroot, which in turn sets
  7. the --fatal-warnings flag. Disable --fatal-warnings unconditionally.
  8. Signed-off-by: Adam Duskett <aduskett@gmail.com>
  9. ---
  10. CMakeLists.txt | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/CMakeLists.txt b/CMakeLists.txt
  13. index 8e72f08..39941e2 100644
  14. --- a/CMakeLists.txt
  15. +++ b/CMakeLists.txt
  16. @@ -18,7 +18,7 @@ execute_process(COMMAND "git" "describe" "--tags"
  17. if (REVISION)
  18. set(CORE_VERSION "${REVISION}")
  19. # All warnings are errors in development builds
  20. - set(VALAFLAGS ${VALAFLAGS} --fatal-warnings)
  21. + set(VALAFLAGS ${VALAFLAGS} --disable-assert)
  22. else ()
  23. # No runtime type checks
  24. set(VALAFLAGS ${VALAFLAGS} --disable-assert)
  25. --
  26. 2.30.2