File: more-compiler-warnings.patch

package info (click to toggle)
oggvideotools 0.9.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,644 kB
  • sloc: cpp: 11,325; ansic: 530; sh: 124; makefile: 9
file content (20 lines) | stat: -rw-r--r-- 820 bytes parent folder | download | duplicates (5)
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 )