Skip to content

Commit 15597c5

Browse files
Suppress all remaining compiler warnings
1 parent 793e7ca commit 15597c5

File tree

5 files changed

+355
-337
lines changed

5 files changed

+355
-337
lines changed

extern/edge-addition-planarity-suite-Version_4.0.0.0/c/graphLib/io/g6-read-iterator.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ See the LICENSE.TXT file for licensing information.
77
#include <stdlib.h>
88
#include <string.h>
99

10+
#if defined(__clang__)
11+
#pragma clang diagnostic push
12+
#pragma clang diagnostic ignored "-Wdeclaration-after-statement"
13+
#pragma clang diagnostic ignored "-Wmissing-prototypes"
14+
#pragma clang diagnostic ignored "-Wincompatible-pointer-types-discards-qualifiers"
15+
#pragma clang diagnostic ignored "-Wformat-nonliteral"
16+
#elif defined(__GNUC__)
17+
#pragma GCC diagnostic push
18+
#endif
19+
1020
#include "g6-read-iterator.h"
1121
#include "g6-api-utilities.h"
1222

@@ -727,3 +737,9 @@ int _ReadGraphFromG6StrOrFile(graphP pGraphToRead, strOrFileP g6InputContainer)
727737

728738
return exitCode;
729739
}
740+
741+
#if defined(__clang__)
742+
#pragma clang diagnostic pop
743+
#elif defined(__GNUC__)
744+
#pragma GCC diagnostic pop
745+
#endif

extern/edge-addition-planarity-suite-Version_4.0.0.0/c/graphLib/io/g6-write-iterator.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ See the LICENSE.TXT file for licensing information.
77
#include <stdlib.h>
88
#include <string.h>
99

10+
#if defined(__clang__)
11+
#pragma clang diagnostic push
12+
#pragma clang diagnostic ignored "-Wdeclaration-after-statement"
13+
#pragma clang diagnostic ignored "-Wincompatible-pointer-types-discards-qualifiers"
14+
#pragma clang diagnostic ignored "-Wmissing-prototypes"
15+
#elif defined(__GNUC__)
16+
#pragma GCC diagnostic push
17+
#endif
18+
1019
#include "g6-write-iterator.h"
1120
#include "g6-api-utilities.h"
1221

@@ -565,3 +574,8 @@ int _WriteGraphToG6StrOrFile(graphP pGraph, strOrFileP outputContainer, char **o
565574

566575
return exitCode;
567576
}
577+
#if defined(__clang__)
578+
#pragma clang diagnostic pop
579+
#elif defined(__GNUC__)
580+
#pragma GCC diagnostic pop
581+
#endif

extern/edge-addition-planarity-suite-Version_4.0.0.0/c/graphLib/io/graphIO.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ See the LICENSE.TXT file for licensing information.
88
#include <string.h>
99
#include <ctype.h>
1010

11+
#if defined(__clang__)
12+
#pragma clang diagnostic push
13+
#pragma clang diagnostic ignored "-Wmissing-prototypes"
14+
#pragma clang diagnostic ignored "-Wformat-nonliteral"
15+
#pragma clang diagnostic ignored "-Wincompatible-pointer-types-discards-qualifiers"
16+
#pragma clang diagnostic ignored "-Wdeclaration-after-statement"
17+
#elif defined(__GNUC__)
18+
#pragma GCC diagnostic push
19+
#endif
20+
1121
#include "../graph.h"
1222

1323
/* Private functions (exported to system) */
@@ -1065,3 +1075,9 @@ char *_MakeLogStr5(char *format, int one, int two, int three, int four, int five
10651075
sprintf(LogStr, format, one, two, three, four, five);
10661076
return LogStr;
10671077
}
1078+
1079+
#if defined(__clang__)
1080+
#pragma clang diagnostic pop
1081+
#elif defined(__GNUC__)
1082+
#pragma GCC diagnostic pop
1083+
#endif

0 commit comments

Comments
 (0)