1
0
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:
abv
2016-01-22 11:42:32 +03:00
parent a3f6f591fc
commit 68858c7dd6
27 changed files with 36 additions and 42 deletions

View File

@@ -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

View File

@@ -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)
// ----------------------------------------------------------------