@@ -3,20 +3,22 @@ Copyright (c) 1997-2020, John M. Boyer
3
3
All rights reserved.
4
4
See the LICENSE.TXT file for licensing information.
5
5
*/
6
-
7
- #if defined(__clang__ )
8
- #pragma clang diagnostic push
9
- #pragma clang diagnostic ignored "-Wstrict-prototypes"
10
- #pragma clang diagnostic ignored "-Wmissing-prototypes"
11
- #pragma clang diagnostic ignored "-Wdeprecated-non-prototype"
12
- #endif
6
+
7
+ #if defined(__clang__ )
8
+ #pragma clang diagnostic push
9
+ #pragma clang diagnostic ignored "-Wstrict-prototypes"
10
+ #pragma clang diagnostic ignored "-Wmissing-prototypes"
11
+ #pragma clang diagnostic ignored "-Wdeprecated-non-prototype"
12
+ #elif defined(__GNUC__ )
13
+ #pragma GCC diagnostic push
14
+ #pragma GCC diagnostic ignored "-Wstrict-prototypes"
15
+ #pragma GCC diagnostic ignored "-Wmissing-prototypes"
16
+ #endif
13
17
14
18
#include <stdlib.h>
15
19
16
20
#include "graphDrawPlanar.private.h"
17
21
#include "graphDrawPlanar.h"
18
-
19
-
20
22
21
23
extern void _ClearVertexVisitedFlags (graphP theGraph , int );
22
24
@@ -59,7 +61,7 @@ void _DrawPlanar_FreeContext(void *);
59
61
/****************************************************************************
60
62
* DRAWPLANAR_ID - the variable used to hold the integer identifier for this
61
63
* extension, enabling this feature's extension context to be distinguished
62
- * from other features' extension contexts that may be attached to a graph.
64
+ * from other features' extension contexts that may be attached to a graph.
63
65
****************************************************************************/
64
66
65
67
int DRAWPLANAR_ID = 0 ;
@@ -687,6 +689,8 @@ int _DrawPlanar_WritePostprocess(graphP theGraph, void **pExtraData, long *pExt
687
689
688
690
return NOTOK ;
689
691
}
690
- #if defined(__clang__ )
691
- #pragma clang diagnostic pop
692
- #endif
692
+ #if defined(__clang__ )
693
+ #pragma clang diagnostic pop
694
+ #elif defined(__GNUC__ )
695
+ #pragma GCC diagnostic pop
696
+ #endif
0 commit comments