0002-remove-werror.patch 819 B

1234567891011121314151617181920212223242526272829
  1. Do not add -Werror when --enable-debug is used
  2. Using -Werror causes some problems due to warnings in the SDL_sound
  3. code, so let's disable it.
  4. We patch configure directly, because:
  5. 1/ configure.in doesn't autoreconf properly out of the box.
  6. 2/ the length of the configure or configure.in patch would be exactly
  7. the same (one line), or maybe more for the configure.in patch if
  8. we want the package to autoreconf properly
  9. 3/ the patch will never go upstream, because upstream is dead.
  10. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  11. Index: b/configure
  12. ===================================================================
  13. --- a/configure
  14. +++ b/configure
  15. @@ -19561,7 +19561,6 @@
  16. else
  17. CFLAGS="-O0"
  18. fi
  19. - CFLAGS="$CFLAGS -Werror"
  20. cat >>confdefs.h <<\_ACEOF
  21. #define DEBUG 1