diff options
Diffstat (limited to 'util/exception.cc')
-rw-r--r-- | util/exception.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/exception.cc b/util/exception.cc index 083bac20d..eaf4cbc21 100644 --- a/util/exception.cc +++ b/util/exception.cc @@ -51,6 +51,11 @@ void Exception::SetLocation(const char *file, unsigned int line, const char *fun } namespace { + +#ifdef __GNUC__ +const char *HandleStrerror(int ret, const char *buf) __attribute__ ((unused)); +const char *HandleStrerror(const char *ret, const char * /*buf*/) __attribute__ ((unused)); +#endif // At least one of these functions will not be called. #ifdef __clang__ #pragma clang diagnostic push |