From 5c088023db734b9fc23f533050266ddb6bab11a5 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 14 Feb 2017 03:31:26 +0100 Subject: ospfclient: fix gcc -O0 build the "static const" inside DECLARE_MTYPE still causes issues on gcc -O0 (re. gcc bug 69981). Work around by disabling MTYPE declarations for ospfclient. Signed-off-by: David Lamparter --- ospfclient/ospfclient.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ospfclient/ospfclient.c') diff --git a/ospfclient/ospfclient.c b/ospfclient/ospfclient.c index 9a77a64cc4..43ffa1da8e 100644 --- a/ospfclient/ospfclient.c +++ b/ospfclient/ospfclient.c @@ -32,6 +32,9 @@ #include "privs.h" #include "log.h" +/* work around gcc bug 69981, disable MTYPEs in libospf */ +#define _QUAGGA_OSPF_MEMORY_H + #include "ospfd/ospfd.h" #include "ospfd/ospf_asbr.h" #include "ospfd/ospf_lsa.h" -- cgit v1.2.3