aboutsummaryrefslogtreecommitdiffstats
path: root/src/libgamma-method.cc
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-04 02:33:09 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-04 02:33:09 +0200
commit8e1dcecd79a91976629362c2a05f5c1ef2495710 (patch)
tree9c7b9e376d8d887ec018402cd99bee391ab43908 /src/libgamma-method.cc
parentfix warnings (diff)
downloadlibgammamm-8e1dcecd79a91976629362c2a05f5c1ef2495710.tar.gz
libgammamm-8e1dcecd79a91976629362c2a05f5c1ef2495710.tar.bz2
libgammamm-8e1dcecd79a91976629362c2a05f5c1ef2495710.tar.xz
add -Wshadow
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/libgamma-method.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libgamma-method.cc b/src/libgamma-method.cc
index 16d61ff..dae9929 100644
--- a/src/libgamma-method.cc
+++ b/src/libgamma-method.cc
@@ -332,7 +332,10 @@ namespace libgamma
return *this;
}
-
+#ifdef __GCC__
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wshadow"
+#endif
/**
* Constructor.
@@ -540,5 +543,9 @@ namespace libgamma
return r != 0;
}
+#ifdef __GCC__
+# pragma GCC diagnostic pop
+#endif
+
}