1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0027105: Make code ISO-compliant [-Wpedantic fixes]

Remove extra semicolons and correct function prototypes for GCC -pedantic ISO compliance option
This commit is contained in:
Jacob Abel
2016-01-21 16:28:38 -08:00
committed by abv
parent d3b7582d2f
commit a3f6f591fc
50 changed files with 63 additions and 55 deletions

View File

@@ -32,7 +32,11 @@ extern "C" {
#define fstatvfs fstatfs
#else
#include <sys/statvfs.h>
int statvfs(const char *, struct statvfs *);
#ifdef __GNU_LIBRARY__
int statvfs(const char *, struct statvfs *) __THROW;
#else
int statvfs(const char *, struct statvfs *);
#endif
#endif
#ifdef __cplusplus

View File

@@ -44,7 +44,7 @@ namespace {
// otherwise compiler does not leave a place for break point
debug_counter++;
}
};
}
//=======================================================================
//function : GetCallback

View File

@@ -43,7 +43,11 @@ extern "C" {void *dlerror (void);}
#include <dlfcn.h>
extern "C" {size_t strlen (const char* s );}
#ifdef __GNU_LIBRARY__
extern "C" { size_t strlen(const char* s) __THROW; }
#else
extern "C" { size_t strlen(const char* s); }
#endif
#define BAD(X) ((X) == NULL)