@@ -3,20 +3,22 @@ Copyright (c) 1997-2020, John M. Boyer
33All rights reserved.
44See the LICENSE.TXT file for licensing information.
55*/
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
1317
1418#include <stdlib.h>
1519
1620#include "graphDrawPlanar.private.h"
1721#include "graphDrawPlanar.h"
18-
19-
2022
2123extern void _ClearVertexVisitedFlags (graphP theGraph , int );
2224
@@ -59,7 +61,7 @@ void _DrawPlanar_FreeContext(void *);
5961/****************************************************************************
6062 * DRAWPLANAR_ID - the variable used to hold the integer identifier for this
6163 * 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.
6365 ****************************************************************************/
6466
6567int DRAWPLANAR_ID = 0 ;
@@ -687,6 +689,8 @@ int _DrawPlanar_WritePostprocess(graphP theGraph, void **pExtraData, long *pExt
687689
688690 return NOTOK ;
689691}
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