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:
Pavel Machek 2018-12-29 23:24:30 +01:00 committed by Denis Kenzior
parent dbc314ebc4
commit cc3375e2dd
2 changed files with 4 additions and 0 deletions

View File

@ -37,7 +37,9 @@
#include <ofono/call-forwarding.h>
#include "common.h"
#if __GNUC__ > 7
#pragma GCC diagnostic ignored "-Wrestrict"
#endif
#include "gril.h"

View File

@ -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>