mirror of git://git.sysmocom.de/ofono
rilmodem: fix compilation on gcc-6.3
gcc-6 fails to compile ofono due to #pragma directives. Limit them to gcc versions where they are needed.
This commit is contained in:
parent
dbc314ebc4
commit
cc3375e2dd
|
@ -37,7 +37,9 @@
|
|||
#include <ofono/call-forwarding.h>
|
||||
#include "common.h"
|
||||
|
||||
#if __GNUC__ > 7
|
||||
#pragma GCC diagnostic ignored "-Wrestrict"
|
||||
#endif
|
||||
|
||||
#include "gril.h"
|
||||
|
||||
|
|
|
@ -36,7 +36,9 @@
|
|||
#include <ofono/modem.h>
|
||||
#include <ofono/netreg.h>
|
||||
|
||||
#if __GNUC__ > 7
|
||||
#pragma GCC diagnostic ignored "-Wrestrict"
|
||||
#endif
|
||||
|
||||
#include <gril/gril.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue