diff options
Diffstat (limited to '')
-rw-r--r-- | src/libgamma-error.cc | 11 |
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 |