Skip to contentSkip to conversation

ril driver: commented out pragma\n\ngcc 4.8.4 rejects the line:\n#pragma GCC diagnostic ignored "-Wrestrict"\nand this breaks the default compilation.\nsince they may be needed for other compilers, \nI have just commented them out with '//', so that they stand out.

PATCH In review Giacinto Cifelli 1 participant 2 messages Sep 20, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ril driver: commented out pragma\n\ngcc 4.8.4 rejects the line:\n#pragma GCC diagnostic ignored "-Wrestrict"\nand this breaks the default compilation.\nsince they may be needed for other compilers, \nI have just commented them out with '//', so that they stand out.

---
 drivers/rilmodem/call-forwarding.c      | 2 +-
 drivers/rilmodem/network-registration.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/rilmodem/call-forwarding.c +1 -1
index 4aff4d3..0bdab3f 100644
@@ -38,7 +38,7 @@
 #include <ofono/call-forwarding.h>
 #include "common.h"
 
-#pragma GCC diagnostic ignored "-Wrestrict"
+//#pragma GCC diagnostic ignored "-Wrestrict"
 
 #include "gril.h"
 
drivers/rilmodem/network-registration.c +1 -1
index 809b3bc..9895c6d 100644
@@ -37,7 +37,7 @@
 #include <ofono/modem.h>
 #include <ofono/netreg.h>
 
-#pragma GCC diagnostic ignored "-Wrestrict"
+//#pragma GCC diagnostic ignored "-Wrestrict"
 
 #include <gril/gril.h>
 
Signature · 1 line
1.9.1
#1 lore raw

please ignore this. the commit message was wrongly formatted for some reason.

Quoted 37 lines · Giacinto Cifelli
---
 drivers/rilmodem/call-forwarding.c      | 2 +-
 drivers/rilmodem/network-registration.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/rilmodem/call-forwarding.c +1 -1
index 4aff4d3..0bdab3f 100644
@@ -38,7 +38,7 @@
 #include <ofono/call-forwarding.h>
 #include "common.h"
 
-#pragma GCC diagnostic ignored "-Wrestrict"
+//#pragma GCC diagnostic ignored "-Wrestrict"
 
 #include "gril.h"
 
drivers/rilmodem/network-registration.c +1 -2
index 809b3bc..9895c6d 100644
@@ -37,7 +37,7 @@
 #include <ofono/modem.h>
 #include <ofono/netreg.h>
 
-#pragma GCC diagnostic ignored "-Wrestrict"
+//#pragma GCC diagnostic ignored "-Wrestrict"
 
 #include <gril/gril.h>
 
--

1.9.1