1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Description: enable more warnings from the compiler
Ask the compiler to help us find bugs in the code. When all warnings
are cleaned up, it is time to use -Werror to keep it that way.
Author: Petter Reinholdtsen <pere@hungry.com>
Forwarded: no
Last-Update: 2015-09-23
Index: oggvideotools/CMakeLists.txt
===================================================================
--- oggvideotools.orig/CMakeLists.txt 2016-05-24 10:47:34.764474837 +0200
+++ oggvideotools/CMakeLists.txt 2016-05-24 10:47:53.552633949 +0200
@@ -124,6 +124,8 @@
ADD_DEFINITIONS ( -D_FILE_OFFSET_BITS=64 -Wno-write-strings )
#ADD_DEFINITIONS ( -DDEBUG )
ADD_DEFINITIONS ( -O0 -g --std=c++0x -fPIC )
+ADD_DEFINITIONS ( -Wall -Wextra )
+#ADD_DEFINITIONS ( -Werror )
IF ( HAVE_LIBGD )
ADD_DEFINITIONS ( -DWITH_GD2LIB )
ENDIF (HAVE_LIBGD )
|