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:
@@ -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
|
||||
|
@@ -44,7 +44,7 @@ namespace {
|
||||
// otherwise compiler does not leave a place for break point
|
||||
debug_counter++;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : GetCallback
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user