[dia] [warningectomy] switch off -Wenum-compare
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [warningectomy] switch off -Wenum-compare
- Date: Sat, 4 May 2013 18:59:30 +0000 (UTC)
commit b4ded48dac869cfdbaf9b1ed98df903de39c3eb0
Author: Hans Breuer <hans breuer org>
Date: Sat May 4 12:05:22 2013 +0200
[warningectomy] switch off -Wenum-compare
For Dia this is producing pure noise, comparing named constants
from different enums is by design.
configure.in | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/configure.in b/configure.in
index 6488b16..4362ce7 100644
--- a/configure.in
+++ b/configure.in
@@ -510,6 +510,8 @@ if test "$GCC" = yes; then
dnl DIA_CHECK_CFLAG(-Wshadow)
DIA_CHECK_CFLAG(-Wpointer-arith)
dnl DIA_CHECK_CFLAG(-Wswitch-enum)
+ dnl For Dia the following warning is producing pure noise, switch it off
+ DIA_CHECK_CFLAG(-Wno-enum-compare)
DIA_CHECK_CFLAG(-Winit-self)
DIA_CHECK_CFLAG(-Wformat-nonliteral)
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]