Issue: #940. Changes to eliminate compiler warnings with GCC 4.8.1.2 on Linux.

This commit is contained in:
Robin Mills
2013-12-28 06:03:03 +00:00
parent 89c796a3ab
commit cea66bdd78
4 changed files with 19 additions and 7 deletions
+11
View File
@@ -89,6 +89,17 @@ namespace Exiv2 {
#define UNUSED(x) (void)(x)
#if EXV_HAVE_STRERROR_R
#ifndef STRERROR_R_CHAR_P
// man 3 sterror_r
#if ( _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 ) && ! _GNU_SOURCE
// XSI-compliant version of strerror_r() is provided
#else
#define STRERROR_R_CHAR_P
#endif
#endif
#endif
std::string strError()
{
int error = errno;