Hi together,
I got loads of warnings when I even compile standard examples like the GSM "Receive SMS" (see below).
Ok, I understand the warnings, but I didn't expect these warning in standard examples...
Cheers
Max
-------------- 8< ---------------
In file included from /Applications/Arduino.app/Contents/Java/libraries/GSM/src/GSM.h:46:0,
from /Applications/Arduino.app/Contents/Java/libraries/GSM/examples/ReceiveSMS/ReceiveSMS.ino:21:
/Applications/Arduino.app/Contents/Java/libraries/GSM/src/GSM3ShieldV1BandManagement.h:49:1: warning: 'typedef' was ignored in this declaration
typedef enum GSM3GSMBand {UNDEFINED, EGSM_MODE, DCS_MODE, PCS_MODE, EGSM_DCS_MODE, GSM850_PCS_MODE, GSM850_EGSM_DCS_PCS_MODE};
^~~~~~~
/Applications/Arduino.app/Contents/Java/libraries/GSM/examples/ReceiveSMS/ReceiveSMS.ino: In function 'void setup()':
/Applications/Arduino.app/Contents/Java/libraries/GSM/examples/ReceiveSMS/ReceiveSMS.ino:47:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if (gsmAccess.begin(PINNUMBER) == GSM_READY) {
^
/Applications/Arduino.app/Contents/Java/libraries/GSM/src/GSM3MobileMockupProvider.cpp: In constructor 'GSM3MobileMockupProvider::GSM3MobileMockupProvider()':
/Applications/Arduino.app/Contents/Java/libraries/GSM/src/GSM3MobileMockupProvider.cpp:44:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
msgExample="Hello#World";
^~~~~~~~~~~~~
/Applications/Arduino.app/Contents/Java/libraries/GSM/src/GSM3MobileMockupProvider.cpp: In member function 'int GSM3MobileMockupProvider::connectTCPServer(int, char*, int*)':
/Applications/Arduino.app/Contents/Java/libraries/GSM/src/GSM3MobileMockupProvider.cpp:183:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
strcpy("192.168.1.1", localIP);
^
In file included from /Applications/Arduino.app/Contents/Java/libraries/GSM/src/GSM3ShieldV1BandManagement.cpp:34:0:
/Applications/Arduino.app/Contents/Java/libraries/GSM/src/GSM3ShieldV1BandManagement.h:49:1: warning: 'typedef' was ignored in this declaration
typedef enum GSM3GSMBand {UNDEFINED, EGSM_MODE, DCS_MODE, PCS_MODE, EGSM_DCS_MODE, GSM850_PCS_MODE, GSM850_EGSM_DCS_PCS_MODE};
^~~~~~~
/Applications/Arduino.app/Contents/Java/libraries/GSM/src/GSM3ShieldV1BandManagement.cpp: In constructor 'GSM3ShieldV1BandManagement::GSM3ShieldV1BandManagement(bool)':
/Applications/Arduino.app/Contents/Java/libraries/GSM/src/GSM3ShieldV1BandManagement.cpp:38:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
quectelStrings[UNDEFINED]="";
^~
/Applications/Arduino.app/Contents/Java/libraries/GSM/src/GSM3ShieldV1BandManagement.cpp:39:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
quectelStrings[EGSM_MODE]=""EGSM_MODE"";
^~~~~~~~~~~~~~~
/Applications/Arduino.app/Contents/Java/libraries/GSM/src/GSM3ShieldV1BandManagement.cpp:40:27: warning: ISO C++ forbids converting a string constant to 'char*'