diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2017-02-14 03:31:26 +0100 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2017-02-14 03:31:26 +0100 | 
| commit | 5c088023db734b9fc23f533050266ddb6bab11a5 (patch) | |
| tree | dc580e39456f3fba29c1b441e2022b14bf859f54 /ospfclient | |
| parent | 757abe78d84cba04c058f43b60d07dca554302c2 (diff) | |
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 <equinox@opensourcerouting.org>
Diffstat (limited to 'ospfclient')
| -rw-r--r-- | ospfclient/ospf_apiclient.c | 3 | ||||
| -rw-r--r-- | ospfclient/ospfclient.c | 3 | 
2 files changed, 6 insertions, 0 deletions
diff --git a/ospfclient/ospf_apiclient.c b/ospfclient/ospf_apiclient.c index fd53ab364c..c545d537fc 100644 --- a/ospfclient/ospf_apiclient.c +++ b/ospfclient/ospf_apiclient.c @@ -36,6 +36,9 @@  #include "log.h"  #include "memory.h" +/* work around gcc bug 69981, disable MTYPEs in libospf */ +#define _QUAGGA_OSPF_MEMORY_H +  #include "ospfd/ospfd.h"  #include "ospfd/ospf_interface.h"  #include "ospfd/ospf_asbr.h" 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"  | 
