mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0027097: GCC and CLang compiler warnings and errors with -Wpedantic
Useless semicolons are removed after closing braces of namespaces and macros in code dependent on FreeImage and VTK. Comments added at the closing braces of namespaces to help comprehension. In OSD_File.cxx and OSD_Disk.cxx, unnecessary declarations of system functions are removed
This commit is contained in:
@@ -32,11 +32,6 @@ extern "C" {
|
||||
#define fstatvfs fstatfs
|
||||
#else
|
||||
#include <sys/statvfs.h>
|
||||
#ifdef __GNU_LIBRARY__
|
||||
int statvfs(const char *, struct statvfs *) __THROW;
|
||||
#else
|
||||
int statvfs(const char *, struct statvfs *);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@@ -43,13 +43,6 @@ extern "C" {void *dlerror (void);}
|
||||
|
||||
#include <dlfcn.h>
|
||||
|
||||
#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