Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
D:\Work\Spark>particle compile photon GameFrameV2_WiFi
Compiling code for photon
Including:
GameFrameV2_WiFi\lib\APA102Controller_WithBrightness\src\APA102Controller_WithBrightness.h
GameFrameV2_WiFi\lib\DS1307\src\DS1307.h
GameFrameV2_WiFi\lib\FastLED\src\bitswap.h
GameFrameV2_WiFi\lib\FastLED\src\chipsets.h
GameFrameV2_WiFi\lib\FastLED\src\clockless_arm_stm32.h
GameFrameV2_WiFi\lib\FastLED\src\color.h
GameFrameV2_WiFi\lib\FastLED\src\colorpalettes.h
GameFrameV2_WiFi\lib\FastLED\src\colorutils.h
GameFrameV2_WiFi\lib\FastLED\src\controller.h
GameFrameV2_WiFi\lib\FastLED\src\delay.h
GameFrameV2_WiFi\lib\FastLED\src\dmx.h
GameFrameV2_WiFi\lib\FastLED\src\fastled_arm_stm32.h
GameFrameV2_WiFi\lib\FastLED\src\fastled_config.h
GameFrameV2_WiFi\lib\FastLED\src\FastLED.h
GameFrameV2_WiFi\lib\FastLED\src\fastpin_arm_stm32.h
GameFrameV2_WiFi\lib\FastLED\src\fastpin.h
GameFrameV2_WiFi\lib\FastLED\src\fastspi_bitbang.h
GameFrameV2_WiFi\lib\FastLED\src\fastspi_dma.h
GameFrameV2_WiFi\lib\FastLED\src\FastSPI_LED2.h
GameFrameV2_WiFi\lib\FastLED\src\fastspi_nop.h
GameFrameV2_WiFi\lib\FastLED\src\fastspi_ref.h
GameFrameV2_WiFi\lib\FastLED\src\fastspi_types.h
GameFrameV2_WiFi\lib\FastLED\src\fastspi.h
GameFrameV2_WiFi\lib\FastLED\src\hsv2rgb.h
GameFrameV2_WiFi\lib\FastLED\src\led_sysdefs_arm_stm32.h
GameFrameV2_WiFi\lib\FastLED\src\led_sysdefs.h
GameFrameV2_WiFi\lib\FastLED\src\lib8tion.h
GameFrameV2_WiFi\lib\FastLED\src\noise.h
GameFrameV2_WiFi\lib\FastLED\src\pixeltypes.h
GameFrameV2_WiFi\lib\FastLED\src\platforms.h
GameFrameV2_WiFi\lib\FastLED\src\power_mgt.h
GameFrameV2_WiFi\lib\IniFileLite\src\IniFileLite.h
GameFrameV2_WiFi\lib\WebServerPM\src\WebServerPM.h
GameFrameV2_WiFi\src\effects.h
GameFrameV2_WiFi\src\GameFrameV2_WiFi.ino
GameFrameV2_WiFi\lib\DS1307\src\DS1307.cpp
GameFrameV2_WiFi\lib\FastLED\src\colorpalettes.cpp
GameFrameV2_WiFi\lib\FastLED\src\colorutils.cpp
GameFrameV2_WiFi\lib\FastLED\src\FastLED.cpp
GameFrameV2_WiFi\lib\FastLED\src\hsv2rgb.cpp
GameFrameV2_WiFi\lib\FastLED\src\lib8tion.cpp
GameFrameV2_WiFi\lib\FastLED\src\noise.cpp
GameFrameV2_WiFi\lib\FastLED\src\power_mgt.cpp
GameFrameV2_WiFi\lib\FastLED\src\wiring.cpp
GameFrameV2_WiFi\lib\IniFileLite\src\IniFileLite.cpp
GameFrameV2_WiFi\lib\WebServerPM\src\WebServerPM.cpp
GameFrameV2_WiFi\project.properties
attempting to compile firmware
Compile failed. Exiting.
In file included from /src/GameFrameV2_WiFi.cpp:18:0:
lib/FastLED/src/FastLED.h:12:2: warning: #warning FastLED version 3001000 (Not really a warning, just telling you here.) [-Wcpp]
#warning FastLED version 3001000 (Not really a warning, just telling you here.)
^
In file included from lib/FastLED/src/led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED.h:34,
from /src/GameFrameV2_WiFi.cpp:18:
lib/FastLED/src/led_sysdefs_arm_stm32.h:26:0: warning: "cli" redefined [enabled by default]
#define cli() __disable_irq(); __disable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from lib/SdFat/src/SysCall.h:27,
from lib/SdFat/src/SystemInclude.h:23,
from lib/SdFat/src/SdSpiCard.h:26,
from lib/SdFat/src/SdFat.h:26,
from /src/GameFrameV2_WiFi.cpp:16:
../wiring/inc/spark_wiring_arduino.h:141:0: note: this is the location of the previous definition
#define cli() (void)HAL_disable_irq()
^
In file included from lib/FastLED/src/led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED.h:34,
from /src/GameFrameV2_WiFi.cpp:18:
lib/FastLED/src/led_sysdefs_arm_stm32.h:27:0: warning: "sei" redefined [enabled by default]
#define sei() __enable_irq(); __enable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from lib/SdFat/src/SysCall.h:27,
from lib/SdFat/src/SystemInclude.h:23,
from lib/SdFat/src/SdSpiCard.h:26,
from lib/SdFat/src/SdFat.h:26,
from /src/GameFrameV2_WiFi.cpp:16:
../wiring/inc/spark_wiring_arduino.h:136:0: note: this is the location of the previous definition
#define sei() HAL_enable_irq(0)
^
In file included from /src/GameFrameV2_WiFi.cpp:25:0:
lib/WebServerPM/src/WebServerPM.h:41:0: warning: "pgm_read_byte" redefined [enabled by default]
#define pgm_read_byte(x) (*((uint8_t*)x))
^
In file included from ../wiring/inc/spark_wiring_arduino.h:35:0,
from ./inc/application.h:92,
from lib/SdFat/src/SysCall.h:27,
from lib/SdFat/src/SystemInclude.h:23,
from lib/SdFat/src/SdSpiCard.h:26,
from lib/SdFat/src/SdFat.h:26,
from /src/GameFrameV2_WiFi.cpp:16:
../wiring/inc/avr/pgmspace.h:98:0: note: this is the location of the previous definition
#define pgm_read_byte(addr) (*(const unsigned char *)(addr))
^
In file included from /src/GameFrameV2_WiFi.cpp:25:0:
lib/WebServerPM/src/WebServerPM.h: In member function 'bool WebServer::readPOSTparam(char*, int, char*, int)':
lib/WebServerPM/src/WebServerPM.h:1076:39: warning: narrowing conversion of 'ch1' from 'int' to 'char' inside { } [-Wnarrowing]
char hex[3] = { ch1, ch2, '\x0' };
^
lib/WebServerPM/src/WebServerPM.h:1076:39: warning: narrowing conversion of 'ch2' from 'int' to 'char' inside { } [-Wnarrowing]
In file included from /src/GameFrameV2_WiFi.cpp:25:0:
lib/WebServerPM/src/WebServerPM.h: In member function 'int WebServer::readNextFormPart(int)':
lib/WebServerPM/src/WebServerPM.h:1314:8: warning: unused variable 'filename' [-Wunused-variable]
char filename[30];
^
/src/GameFrameV2_WiFi.cpp: In function 'void setup()':
/src/GameFrameV2_WiFi.cpp:506:46: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
bmpDraw("/00system/wifi/wifi.bmp", 0, 0);
^
/src/GameFrameV2_WiFi.cpp:512:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if(doFTP("download")) Serial.println("FTP OK");
^
/src/GameFrameV2_WiFi.cpp: In function 'void remoteTest()':
/src/GameFrameV2_WiFi.cpp:723:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
bmpDraw("irZapr.bmp", 0, 0);
^
/src/GameFrameV2_WiFi.cpp:732:45: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if (irCommand == 'P' || irPowerRepeat && graphicShown != 1)
^
/src/GameFrameV2_WiFi.cpp:734:35: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
bmpDraw("irPowr.bmp", 0, 0);
^
/src/GameFrameV2_WiFi.cpp:737:49: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
else if (irCommand == 'M' || irMenuRepeat && graphicShown != 2)
^
/src/GameFrameV2_WiFi.cpp:739:35: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
bmpDraw("irMenu.bmp", 0, 0);
^
/src/GameFrameV2_WiFi.cpp:742:49: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
else if (irCommand == 'N' || irNextRepeat && graphicShown != 3)
^
/src/GameFrameV2_WiFi.cpp:744:35: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
bmpDraw("irNext.bmp", 0, 0);
^
/src/GameFrameV2_WiFi.cpp:749:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (millis() > nextIRCheck && graphicShown != 0)
^
/src/GameFrameV2_WiFi.cpp:751:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
bmpDraw("irZapr.bmp", 0, 0);
^
/src/GameFrameV2_WiFi.cpp:758:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
bmpDraw("irZapr.bmp", 0, 0);
^
/src/GameFrameV2_WiFi.cpp: In function 'void recordIRCodes()':
/src/GameFrameV2_WiFi.cpp:798:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
bmpDraw("irPowr.bmp", 0, 0);
^
/src/GameFrameV2_WiFi.cpp:814:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
bmpDraw("irMenu.bmp", 0, 0);
^
/src/GameFrameV2_WiFi.cpp:830:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
bmpDraw("irNext.bmp", 0, 0);
^
/src/GameFrameV2_WiFi.cpp: In function 'void mainLoop()':
/src/GameFrameV2_WiFi.cpp:1498:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (holdTime != -1 && playMode != 2 || logoPlayed == false)
^
/src/GameFrameV2_WiFi.cpp:1498:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if (holdTime != -1 && playMode != 2 || logoPlayed == false)
^
/src/GameFrameV2_WiFi.cpp: In function 'void bmpDraw(char*, int, int)':
/src/GameFrameV2_WiFi.cpp:2077:14: warning: unused variable 'index' [-Wunused-variable]
byte index = 0; // a byte is perfect for a 16x16 grid
^
/src/GameFrameV2_WiFi.cpp: In function 'void networkConnect()':
/src/GameFrameV2_WiFi.cpp:3366:11: warning: 'Spark' is deprecated (declared at ../wiring/inc/spark_wiring_cloud.h:390): Spark is now Particle. [-Wdeprecated-declarations]
if (Spark.connected() == false && iniExists) {
^
/src/GameFrameV2_WiFi.cpp:3367:49: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
bmpDraw("/00system/wifi/white.bmp", 0, 0);
^
/src/GameFrameV2_WiFi.cpp:3393:11: warning: 'Spark' is deprecated (declared at ../wiring/inc/spark_wiring_cloud.h:390): Spark is now Particle. [-Wdeprecated-declarations]
Spark.connect();
^
/src/GameFrameV2_WiFi.cpp:3394:51: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
bmpDraw("/00system/wifi/green.bmp", 0, 0);
^
/src/GameFrameV2_WiFi.cpp:3395:18: warning: 'Spark' is deprecated (declared at ../wiring/inc/spark_wiring_cloud.h:390): Spark is now Particle. [-Wdeprecated-declarations]
while(!Spark.connected())
^
/src/GameFrameV2_WiFi.cpp:3412:11: warning: 'Spark' is deprecated (declared at ../wiring/inc/spark_wiring_cloud.h:390): Spark is now Particle. [-Wdeprecated-declarations]
if (Spark.connected() == false && iniExists) {
^
/src/GameFrameV2_WiFi.cpp:3413:49: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
bmpDraw("/00system/wifi/white.bmp", 0, 0);
^
/src/GameFrameV2_WiFi.cpp:3421:11: warning: 'Spark' is deprecated (declared at ../wiring/inc/spark_wiring_cloud.h:390): Spark is now Particle. [-Wdeprecated-declarations]
Spark.connect();
^
/src/GameFrameV2_WiFi.cpp:3422:51: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
bmpDraw("/00system/wifi/green.bmp", 0, 0);
^
/src/GameFrameV2_WiFi.cpp:3423:18: warning: 'Spark' is deprecated (declared at ../wiring/inc/spark_wiring_cloud.h:390): Spark is now Particle. [-Wdeprecated-declarations]
while(!Spark.connected())
^
/src/GameFrameV2_WiFi.cpp: In function 'void setCmd(WebServer&, WebServer::ConnectionType, char*, bool)':
/src/GameFrameV2_WiFi.cpp:4288:112: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if (brightness == 0 && (atoi(&url_tail[1]) > 0 && webServerActive)) bmpDraw("/00system/wifi/wifi.bmp", 0, 0);
^
/src/GameFrameV2_WiFi.cpp: In function 'void webServerDisplayManager()':
/src/GameFrameV2_WiFi.cpp:4427:62: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if (framePowered) bmpDraw("/00system/wifi/wifi.bmp", 0, 0);
^
/src/GameFrameV2_WiFi.cpp: In function 'void storeGalleryState()':
/src/GameFrameV2_WiFi.cpp:4506:44: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
bmpDraw("/00system/wifi/wifi.bmp", 0, 0);
^
/src/GameFrameV2_WiFi.cpp: At global scope:
/src/GameFrameV2_WiFi.cpp:5154:3: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
"MP3*audio/mpeg|";
^
/src/GameFrameV2_WiFi.cpp: In function 'uint16_t get_mime_type_from_filename(const char*)':
/src/GameFrameV2_WiFi.cpp:5169:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (i < strlen(mime_types)) {
^
/src/GameFrameV2_WiFi.cpp: In function 'void uploadCmd(WebServer&, WebServer::ConnectionType, char*, bool)':
/src/GameFrameV2_WiFi.cpp:5260:10: warning: unused variable 'repeat' [-Wunused-variable]
bool repeat;
^
/src/GameFrameV2_WiFi.cpp: In function 'void scrollAddress()':
/src/GameFrameV2_WiFi.cpp:5397:47: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
bmpDraw("/00system/digits_2.bmp", x, 0);
^
/src/GameFrameV2_WiFi.cpp: In function 'int cloudCommand(String)':
/src/GameFrameV2_WiFi.cpp:5538:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/src/GameFrameV2_WiFi.cpp: In function 'int cloudNext(String)':
/src/GameFrameV2_WiFi.cpp:5558:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/src/GameFrameV2_WiFi.cpp: In function 'int cloudPower(String)':
/src/GameFrameV2_WiFi.cpp:5651:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/src/GameFrameV2_WiFi.cpp: In function 'int cloudAlert(String)':
/src/GameFrameV2_WiFi.cpp:5683:12: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: [enabled by default]
if (c[0] == '/') strcpy(nextFolder, c);
^
In file included from ../wiring/inc/spark_wiring_stream.h:30:0,
from ../wiring/inc/spark_wiring.h:38,
from ./inc/application.h:36,
from lib/SdFat/src/SysCall.h:27,
from lib/SdFat/src/SystemInclude.h:23,
from lib/SdFat/src/SdSpiCard.h:26,
from lib/SdFat/src/SdFat.h:26,
from /src/GameFrameV2_WiFi.cpp:16:
../wiring/inc/spark_wiring_string.h:162:8: note: candidate 1: char& String::operator[](unsigned int)
char& operator [] (unsigned int index);
^
/src/GameFrameV2_WiFi.cpp:5683:12: note: candidate 2: operator[](const char*, int) <built-in>
if (c[0] == '/') strcpy(nextFolder, c);
^
/src/GameFrameV2_WiFi.cpp: In function 'int cloudColor(String)':
/src/GameFrameV2_WiFi.cpp:5750:12: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: [enabled by default]
if (c[0] == '#') number = (int) strtol( &c[1], NULL, 16);
^
In file included from ../wiring/inc/spark_wiring_stream.h:30:0,
from ../wiring/inc/spark_wiring.h:38,
from ./inc/application.h:36,
from lib/SdFat/src/SysCall.h:27,
from lib/SdFat/src/SystemInclude.h:23,
from lib/SdFat/src/SdSpiCard.h:26,
from lib/SdFat/src/SdFat.h:26,
from /src/GameFrameV2_WiFi.cpp:16:
../wiring/inc/spark_wiring_string.h:162:8: note: candidate 1: char& String::operator[](unsigned int)
char& operator [] (unsigned int index);
^
/src/GameFrameV2_WiFi.cpp:5750:12: note: candidate 2: operator[](const char*, int) <built-in>
if (c[0] == '#') number = (int) strtol( &c[1], NULL, 16);
^
/src/GameFrameV2_WiFi.cpp:5750:49: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: [enabled by default]
if (c[0] == '#') number = (int) strtol( &c[1], NULL, 16);
^
In file included from ../wiring/inc/spark_wiring_stream.h:30:0,
from ../wiring/inc/spark_wiring.h:38,
from ./inc/application.h:36,
from lib/SdFat/src/SysCall.h:27,
from lib/SdFat/src/SystemInclude.h:23,
from lib/SdFat/src/SdSpiCard.h:26,
from lib/SdFat/src/SdFat.h:26,
from /src/GameFrameV2_WiFi.cpp:16:
../wiring/inc/spark_wiring_string.h:162:8: note: candidate 1: char& String::operator[](unsigned int)
char& operator [] (unsigned int index);
^
/src/GameFrameV2_WiFi.cpp:5750:49: note: candidate 2: operator[](const char*, int) <built-in>
if (c[0] == '#') number = (int) strtol( &c[1], NULL, 16);
^
/src/GameFrameV2_WiFi.cpp:5751:37: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: [enabled by default]
else number = (int) strtol( &c[0], NULL, 16);
^
In file included from ../wiring/inc/spark_wiring_stream.h:30:0,
from ../wiring/inc/spark_wiring.h:38,
from ./inc/application.h:36,
from lib/SdFat/src/SysCall.h:27,
from lib/SdFat/src/SystemInclude.h:23,
from lib/SdFat/src/SdSpiCard.h:26,
from lib/SdFat/src/SdFat.h:26,
from /src/GameFrameV2_WiFi.cpp:16:
../wiring/inc/spark_wiring_string.h:162:8: note: candidate 1: char& String::operator[](unsigned int)
char& operator [] (unsigned int index);
^
/src/GameFrameV2_WiFi.cpp:5751:37: note: candidate 2: operator[](const char*, int) <built-in>
else number = (int) strtol( &c[0], NULL, 16);
^
/src/GameFrameV2_WiFi.cpp:5759:12: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: [enabled by default]
if (c[0] == 'r' || c[0] == 'R')
^
In file included from ../wiring/inc/spark_wiring_stream.h:30:0,
from ../wiring/inc/spark_wiring.h:38,
from ./inc/application.h:36,
from lib/SdFat/src/SysCall.h:27,
from lib/SdFat/src/SystemInclude.h:23,
from lib/SdFat/src/SdSpiCard.h:26,
from lib/SdFat/src/SdFat.h:26,
from /src/GameFrameV2_WiFi.cpp:16:
../wiring/inc/spark_wiring_string.h:162:8: note: candidate 1: char& String::operator[](unsigned int)
char& operator [] (unsigned int index);
^
/src/GameFrameV2_WiFi.cpp:5759:12: note: candidate 2: operator[](const char*, int) <built-in>
if (c[0] == 'r' || c[0] == 'R')
^
/src/GameFrameV2_WiFi.cpp:5759:27: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: [enabled by default]
if (c[0] == 'r' || c[0] == 'R')
^
In file included from ../wiring/inc/spark_wiring_stream.h:30:0,
from ../wiring/inc/spark_wiring.h:38,
from ./inc/application.h:36,
from lib/SdFat/src/SysCall.h:27,
from lib/SdFat/src/SystemInclude.h:23,
from lib/SdFat/src/SdSpiCard.h:26,
from lib/SdFat/src/SdFat.h:26,
from /src/GameFrameV2_WiFi.cpp:16:
../wiring/inc/spark_wiring_string.h:162:8: note: candidate 1: char& String::operator[](unsigned int)
char& operator [] (unsigned int index);
^
/src/GameFrameV2_WiFi.cpp:5759:27: note: candidate 2: operator[](const char*, int) <built-in>
if (c[0] == 'r' || c[0] == 'R')
^
/src/GameFrameV2_WiFi.cpp:5772:17: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: [enabled by default]
else if (c[0] == 'o' || c[0] == 'O')
^
In file included from ../wiring/inc/spark_wiring_stream.h:30:0,
from ../wiring/inc/spark_wiring.h:38,
from ./inc/application.h:36,
from lib/SdFat/src/SysCall.h:27,
from lib/SdFat/src/SystemInclude.h:23,
from lib/SdFat/src/SdSpiCard.h:26,
from lib/SdFat/src/SdFat.h:26,
from /src/GameFrameV2_WiFi.cpp:16:
../wiring/inc/spark_wiring_string.h:162:8: note: candidate 1: char& String::operator[](unsigned int)
char& operator [] (unsigned int index);
^
/src/GameFrameV2_WiFi.cpp:5772:17: note: candidate 2: operator[](const char*, int) <built-in>
else if (c[0] == 'o' || c[0] == 'O')
^
/src/GameFrameV2_WiFi.cpp:5772:32: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: [enabled by default]
else if (c[0] == 'o' || c[0] == 'O')
^
In file included from ../wiring/inc/spark_wiring_stream.h:30:0,
from ../wiring/inc/spark_wiring.h:38,
from ./inc/application.h:36,
from lib/SdFat/src/SysCall.h:27,
from lib/SdFat/src/SystemInclude.h:23,
from lib/SdFat/src/SdSpiCard.h:26,
from lib/SdFat/src/SdFat.h:26,
from /src/GameFrameV2_WiFi.cpp:16:
../wiring/inc/spark_wiring_string.h:162:8: note: candidate 1: char& String::operator[](unsigned int)
char& operator [] (unsigned int index);
^
/src/GameFrameV2_WiFi.cpp:5772:32: note: candidate 2: operator[](const char*, int) <built-in>
else if (c[0] == 'o' || c[0] == 'O')
^
/src/GameFrameV2_WiFi.cpp: In function 'void downloadIndex()':
/src/GameFrameV2_WiFi.cpp:5812:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if(doFTP("download")) Serial.println("FTP OK");
^
/src/GameFrameV2_WiFi.cpp: In function 'void downloadMode2()':
/src/GameFrameV2_WiFi.cpp:5833:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if(doFTP("download")) Serial.println("FTP OK");
^
/src/GameFrameV2_WiFi.cpp: In function 'byte doFTP(char*)':
/src/GameFrameV2_WiFi.cpp:5849:17: warning: comparison with string literal results in unspecified behaviour [-Waddress]
if (action == "upload")
^
/src/GameFrameV2_WiFi.cpp:5867:17: warning: comparison with string literal results in unspecified behaviour [-Waddress]
if (action == "download")
^
/src/GameFrameV2_WiFi.cpp:5935:17: warning: comparison with string literal results in unspecified behaviour [-Waddress]
if (action == "upload")
^
/src/GameFrameV2_WiFi.cpp:5952:17: warning: comparison with string literal results in unspecified behaviour [-Waddress]
if (action == "upload")
^
/src/GameFrameV2_WiFi.cpp: In function 'byte eRcv()':
/src/GameFrameV2_WiFi.cpp:6007:33: warning: 'Spark' is deprecated (declared at ../wiring/inc/spark_wiring_cloud.h:390): Spark is now Particle. [-Wdeprecated-declarations]
while(!ftpClient.available()) Spark.process();
^
/src/GameFrameV2_WiFi.cpp:6018:22: warning: array subscript has type 'char' [-Wchar-subscripts]
outBuf[outCount] = thisByte;
^
/src/GameFrameV2_WiFi.cpp:6020:22: warning: array subscript has type 'char' [-Wchar-subscripts]
outBuf[outCount] = 0;
^
/src/GameFrameV2_WiFi.cpp: In function 'void efail()':
/src/GameFrameV2_WiFi.cpp:6039:33: warning: 'Spark' is deprecated (declared at ../wiring/inc/spark_wiring_cloud.h:390): Spark is now Particle. [-Wdeprecated-declarations]
while(!ftpClient.available()) Spark.process();
^
/src/GameFrameV2_WiFi.cpp: In function 'boolean winCheck()':
/src/GameFrameV2_WiFi.cpp:4057:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/src/GameFrameV2_WiFi.cpp: In function 'int cloudBrightness(String)':
/src/GameFrameV2_WiFi.cpp:5616:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/src/GameFrameV2_WiFi.cpp: In function 'int cloudPlayFolder(String)':
/src/GameFrameV2_WiFi.cpp:5675:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/src/GameFrameV2_WiFi.cpp: In function 'int cloudAlert(String)':
/src/GameFrameV2_WiFi.cpp:5737:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/src/GameFrameV2_WiFi.cpp: In function 'int cloudColor(String)':
/src/GameFrameV2_WiFi.cpp:5800:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
In file included from lib/FastLED/src/led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/FastLED.cpp:2:
lib/FastLED/src/led_sysdefs_arm_stm32.h:26:0: warning: "cli" redefined [enabled by default]
#define cli() __disable_irq(); __disable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from lib/FastLED/src/led_sysdefs_arm_stm32.h:4,
from lib/FastLED/src/led_sysdefs.h:16,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/FastLED.cpp:2:
../wiring/inc/spark_wiring_arduino.h:141:0: note: this is the location of the previous definition
#define cli() (void)HAL_disable_irq()
^
In file included from lib/FastLED/src/led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/FastLED.cpp:2:
lib/FastLED/src/led_sysdefs_arm_stm32.h:27:0: warning: "sei" redefined [enabled by default]
#define sei() __enable_irq(); __enable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from lib/FastLED/src/led_sysdefs_arm_stm32.h:4,
from lib/FastLED/src/led_sysdefs.h:16,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/FastLED.cpp:2:
../wiring/inc/spark_wiring_arduino.h:136:0: note: this is the location of the previous definition
#define sei() HAL_enable_irq(0)
^
In file included from lib/FastLED/src/led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/colorpalettes.cpp:4:
lib/FastLED/src/led_sysdefs_arm_stm32.h:26:0: warning: "cli" redefined [enabled by default]
#define cli() __disable_irq(); __disable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from lib/FastLED/src/led_sysdefs_arm_stm32.h:4,
from lib/FastLED/src/led_sysdefs.h:16,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/colorpalettes.cpp:4:
../wiring/inc/spark_wiring_arduino.h:141:0: note: this is the location of the previous definition
#define cli() (void)HAL_disable_irq()
^
In file included from lib/FastLED/src/led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/colorpalettes.cpp:4:
lib/FastLED/src/led_sysdefs_arm_stm32.h:27:0: warning: "sei" redefined [enabled by default]
#define sei() __enable_irq(); __enable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from lib/FastLED/src/led_sysdefs_arm_stm32.h:4,
from lib/FastLED/src/led_sysdefs.h:16,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/colorpalettes.cpp:4:
../wiring/inc/spark_wiring_arduino.h:136:0: note: this is the location of the previous definition
#define sei() HAL_enable_irq(0)
^
In file included from lib/FastLED/src/led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/colorutils.cpp:8:
lib/FastLED/src/led_sysdefs_arm_stm32.h:26:0: warning: "cli" redefined [enabled by default]
#define cli() __disable_irq(); __disable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from lib/FastLED/src/led_sysdefs_arm_stm32.h:4,
from lib/FastLED/src/led_sysdefs.h:16,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/colorutils.cpp:8:
../wiring/inc/spark_wiring_arduino.h:141:0: note: this is the location of the previous definition
#define cli() (void)HAL_disable_irq()
^
In file included from lib/FastLED/src/led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/colorutils.cpp:8:
lib/FastLED/src/led_sysdefs_arm_stm32.h:27:0: warning: "sei" redefined [enabled by default]
#define sei() __enable_irq(); __enable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from lib/FastLED/src/led_sysdefs_arm_stm32.h:4,
from lib/FastLED/src/led_sysdefs.h:16,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/colorutils.cpp:8:
../wiring/inc/spark_wiring_arduino.h:136:0: note: this is the location of the previous definition
#define sei() HAL_enable_irq(0)
^
In file included from lib/FastLED/src/led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/hsv2rgb.cpp:4:
lib/FastLED/src/led_sysdefs_arm_stm32.h:26:0: warning: "cli" redefined [enabled by default]
#define cli() __disable_irq(); __disable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from lib/FastLED/src/led_sysdefs_arm_stm32.h:4,
from lib/FastLED/src/led_sysdefs.h:16,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/hsv2rgb.cpp:4:
../wiring/inc/spark_wiring_arduino.h:141:0: note: this is the location of the previous definition
#define cli() (void)HAL_disable_irq()
^
In file included from lib/FastLED/src/led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/hsv2rgb.cpp:4:
lib/FastLED/src/led_sysdefs_arm_stm32.h:27:0: warning: "sei" redefined [enabled by default]
#define sei() __enable_irq(); __enable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from lib/FastLED/src/led_sysdefs_arm_stm32.h:4,
from lib/FastLED/src/led_sysdefs.h:16,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/hsv2rgb.cpp:4:
../wiring/inc/spark_wiring_arduino.h:136:0: note: this is the location of the previous definition
#define sei() HAL_enable_irq(0)
^
In file included from lib/FastLED/src/led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/lib8tion.cpp:3:
lib/FastLED/src/led_sysdefs_arm_stm32.h:26:0: warning: "cli" redefined [enabled by default]
#define cli() __disable_irq(); __disable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from lib/FastLED/src/led_sysdefs_arm_stm32.h:4,
from lib/FastLED/src/led_sysdefs.h:16,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/lib8tion.cpp:3:
../wiring/inc/spark_wiring_arduino.h:141:0: note: this is the location of the previous definition
#define cli() (void)HAL_disable_irq()
^
In file included from lib/FastLED/src/led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/lib8tion.cpp:3:
lib/FastLED/src/led_sysdefs_arm_stm32.h:27:0: warning: "sei" redefined [enabled by default]
#define sei() __enable_irq(); __enable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from lib/FastLED/src/led_sysdefs_arm_stm32.h:4,
from lib/FastLED/src/led_sysdefs.h:16,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/lib8tion.cpp:3:
../wiring/inc/spark_wiring_arduino.h:136:0: note: this is the location of the previous definition
#define sei() HAL_enable_irq(0)
^
In file included from lib/FastLED/src/led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/noise.cpp:2:
lib/FastLED/src/led_sysdefs_arm_stm32.h:26:0: warning: "cli" redefined [enabled by default]
#define cli() __disable_irq(); __disable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from lib/FastLED/src/led_sysdefs_arm_stm32.h:4,
from lib/FastLED/src/led_sysdefs.h:16,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/noise.cpp:2:
../wiring/inc/spark_wiring_arduino.h:141:0: note: this is the location of the previous definition
#define cli() (void)HAL_disable_irq()
^
In file included from lib/FastLED/src/led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/noise.cpp:2:
lib/FastLED/src/led_sysdefs_arm_stm32.h:27:0: warning: "sei" redefined [enabled by default]
#define sei() __enable_irq(); __enable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from lib/FastLED/src/led_sysdefs_arm_stm32.h:4,
from lib/FastLED/src/led_sysdefs.h:16,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/noise.cpp:2:
../wiring/inc/spark_wiring_arduino.h:136:0: note: this is the location of the previous definition
#define sei() HAL_enable_irq(0)
^
In file included from lib/FastLED/src/led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/power_mgt.cpp:2:
lib/FastLED/src/led_sysdefs_arm_stm32.h:26:0: warning: "cli" redefined [enabled by default]
#define cli() __disable_irq(); __disable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from lib/FastLED/src/led_sysdefs_arm_stm32.h:4,
from lib/FastLED/src/led_sysdefs.h:16,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/power_mgt.cpp:2:
../wiring/inc/spark_wiring_arduino.h:141:0: note: this is the location of the previous definition
#define cli() (void)HAL_disable_irq()
^
In file included from lib/FastLED/src/led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/power_mgt.cpp:2:
lib/FastLED/src/led_sysdefs_arm_stm32.h:27:0: warning: "sei" redefined [enabled by default]
#define sei() __enable_irq(); __enable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from lib/FastLED/src/led_sysdefs_arm_stm32.h:4,
from lib/FastLED/src/led_sysdefs.h:16,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/power_mgt.cpp:2:
../wiring/inc/spark_wiring_arduino.h:136:0: note: this is the location of the previous definition
#define sei() HAL_enable_irq(0)
^
In file included from lib/FastLED/src/led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/wiring.cpp:2:
lib/FastLED/src/led_sysdefs_arm_stm32.h:26:0: warning: "cli" redefined [enabled by default]
#define cli() __disable_irq(); __disable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from lib/FastLED/src/led_sysdefs_arm_stm32.h:4,
from lib/FastLED/src/led_sysdefs.h:16,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/wiring.cpp:2:
../wiring/inc/spark_wiring_arduino.h:141:0: note: this is the location of the previous definition
#define cli() (void)HAL_disable_irq()
^
In file included from lib/FastLED/src/led_sysdefs.h:16:0,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/wiring.cpp:2:
lib/FastLED/src/led_sysdefs_arm_stm32.h:27:0: warning: "sei" redefined [enabled by default]
#define sei() __enable_irq(); __enable_fault_irq();
^
In file included from ./inc/application.h:92:0,
from lib/FastLED/src/led_sysdefs_arm_stm32.h:4,
from lib/FastLED/src/led_sysdefs.h:16,
from lib/FastLED/src/FastLED.h:34,
from lib/FastLED/src/wiring.cpp:2:
../wiring/inc/spark_wiring_arduino.h:136:0: note: this is the location of the previous definition
#define sei() HAL_enable_irq(0)
^
lib/SparkIntervalTimer/src/SparkIntervalTimer.cpp: In member function 'void IntervalTimer::interrupt_SIT(action)':
lib/SparkIntervalTimer/src/SparkIntervalTimer.cpp:360:15: warning: variable 'TIMx' set but not used [-Wunused-but-set-variable]
TIM_TypeDef* TIMx;
^
lib/SparkIntervalTimer/src/SparkIntervalTimer.cpp: In member function 'void IntervalTimer::start_SIT(intPeriod, bool)':
lib/SparkIntervalTimer/src/SparkIntervalTimer.cpp:276:23: warning: 'TIMx' may be used uninitialized in this function [-Wmaybe-uninitialized]
TIM_Cmd(TIMx, ENABLE);
^
lib/SparkIntervalTimer/src/SparkIntervalTimer.cpp: In member function 'void IntervalTimer::stop_SIT()':
lib/SparkIntervalTimer/src/SparkIntervalTimer.cpp:346:18: warning: 'TIMx' may be used uninitialized in this function [-Wmaybe-uninitialized]
TIM_DeInit(TIMx);
^
lib/SparkIntervalTimer/src/SparkIntervalTimer.cpp: In member function 'void IntervalTimer::resetPeriod_SIT(intPeriod, bool)':
lib/SparkIntervalTimer/src/SparkIntervalTimer.cpp:476:23: warning: 'TIMx' may be used uninitialized in this function [-Wmaybe-uninitialized]
TIMx->PSC = prescaler;
^
../../../build/target/user/platform-6/libuser.a(ds1307.o): In function `DateTime::DateTime(unsigned long)':
lib/ds1307/src/ds1307.cpp:29: multiple definition of `DateTime::DateTime(unsigned long)'
../../../build/target/user/platform-6/libuser.a(DS1307.o):lib/DS1307/src/DS1307.cpp:31: first defined here
../../../build/target/user/platform-6/libuser.a(ds1307.o): In function `DateTime::DateTime(unsigned long)':
lib/ds1307/src/ds1307.cpp:29: multiple definition of `DateTime::DateTime(unsigned long)'
../../../build/target/user/platform-6/libuser.a(DS1307.o):lib/DS1307/src/DS1307.cpp:31: first defined here
../../../build/target/user/platform-6/libuser.a(ds1307.o): In function `DateTime::DateTime(unsigned short, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':
lib/ds1307/src/ds1307.cpp:60: multiple definition of `DateTime::DateTime(unsigned short, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
../../../build/target/user/platform-6/libuser.a(DS1307.o):lib/DS1307/src/DS1307.cpp:62: first defined here
../../../build/target/user/platform-6/libuser.a(ds1307.o): In function `DateTime::DateTime(unsigned short, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':
lib/ds1307/src/ds1307.cpp:60: multiple definition of `DateTime::DateTime(unsigned short, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
../../../build/target/user/platform-6/libuser.a(DS1307.o):lib/DS1307/src/DS1307.cpp:62: first defined here
../../../build/target/user/platform-6/libuser.a(ds1307.o): In function `DateTime::DateTime(char const*, char const*)':
lib/ds1307/src/ds1307.cpp:76: multiple definition of `DateTime::DateTime(char const*, char const*)'
../../../build/target/user/platform-6/libuser.a(DS1307.o):lib/DS1307/src/DS1307.cpp:78: first defined here
../../../build/target/user/platform-6/libuser.a(ds1307.o): In function `DateTime::DateTime(char const*, char const*)':
lib/ds1307/src/ds1307.cpp:76: multiple definition of `DateTime::DateTime(char const*, char const*)'
../../../build/target/user/platform-6/libuser.a(DS1307.o):lib/DS1307/src/DS1307.cpp:78: first defined here
../../../build/target/user/platform-6/libuser.a(ds1307.o): In function `DateTime::dayOfWeek() const':
lib/ds1307/src/ds1307.cpp:96: multiple definition of `DateTime::dayOfWeek() const'
../../../build/target/user/platform-6/libuser.a(DS1307.o):lib/DS1307/src/DS1307.cpp:98: first defined here
../../../build/target/user/platform-6/libuser.a(ds1307.o): In function `DateTime::unixtime() const':
lib/ds1307/src/ds1307.cpp:101: multiple definition of `DateTime::unixtime() const'
../../../build/target/user/platform-6/libuser.a(DS1307.o):lib/DS1307/src/DS1307.cpp:103: first defined here
../../../build/target/user/platform-6/libuser.a(ds1307.o): In function `RTC_DS1307::begin()':
lib/ds1307/src/ds1307.cpp:122: multiple definition of `RTC_DS1307::begin()'
../../../build/target/user/platform-6/libuser.a(DS1307.o):lib/DS1307/src/DS1307.cpp:124: first defined here
../../../build/target/user/platform-6/libuser.a(ds1307.o): In function `RTC_DS1307::isrunning()':
lib/ds1307/src/ds1307.cpp:124: multiple definition of `RTC_DS1307::isrunning()'
../../../build/target/user/platform-6/libuser.a(DS1307.o):lib/DS1307/src/DS1307.cpp:126: first defined here
../../../build/target/user/platform-6/libuser.a(ds1307.o): In function `RTC_DS1307::adjust(DateTime const&)':
lib/ds1307/src/ds1307.cpp:134: multiple definition of `RTC_DS1307::adjust(DateTime const&)'
../../../build/target/user/platform-6/libuser.a(DS1307.o):lib/DS1307/src/DS1307.cpp:136: first defined here
../../../build/target/user/platform-6/libuser.a(ds1307.o): In function `RTC_DS1307::now()':
lib/ds1307/src/ds1307.cpp:148: multiple definition of `RTC_DS1307::now()'
../../../build/target/user/platform-6/libuser.a(DS1307.o):lib/DS1307/src/DS1307.cpp:150: first defined here
../../../build/target/user/platform-6/libuser.a(ds1307.o): In function `RTC_Millis::adjust(DateTime const&)':
lib/ds1307/src/ds1307.cpp:170: multiple definition of `RTC_Millis::adjust(DateTime const&)'
../../../build/target/user/platform-6/libuser.a(DS1307.o):lib/DS1307/src/DS1307.cpp:172: first defined here
../../../build/target/user/platform-6/libuser.a(ds1307.o): In function `RTC_Millis::now()':
lib/ds1307/src/ds1307.cpp:174: multiple definition of `RTC_Millis::now()'
../../../build/target/user/platform-6/libuser.a(DS1307.o):lib/DS1307/src/DS1307.cpp:176: first defined here
../../../build/target/user/platform-6/libuser.a(ds1307.o): In function `RTC_DS1307::begin()':
lib/ds1307/src/ds1307.cpp:9: multiple definition of `RTC_Millis::offset'
../../../build/target/user/platform-6/libuser.a(DS1307.o):lib/DS1307/src/DS1307.cpp:11: first defined here
collect2: error: ld returned 1 exit status
make: *** [cdaed489cd56ab95ae64a322679ec8a0944524b3e0b084d776d22b9db6a4.elf] Error 1
D:\Work\Spark>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.