aboutsummaryrefslogtreecommitdiffstats
path: root/src/libgamma-error.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-error.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-error.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/libgamma-error.cc b/src/libgamma-error.cc
index 951db22..7233584 100644
--- a/src/libgamma-error.cc
+++ b/src/libgamma-error.cc
@@ -75,7 +75,12 @@ namespace libgamma
return libgamma_value_of_error(cstr);
}
-
+
+#ifdef __GCC__
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wshadow"
+#endif
+
/**
* Constructor.
*
@@ -106,6 +111,10 @@ namespace libgamma
return strerror(this->error_code);
}
+#ifdef __GCC__
+# pragma GCC diagnostic pop
+#endif
+
/**
* Create an exception from an error code