Skip to content

Commit 074d53f

Browse files
committed
Fix a few compiler warnings
1 parent a839ec4 commit 074d53f

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

platformio.ini

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ build_flags =
125125
-Wno-unused-but-set-variable
126126
-Wno-return-type
127127
-Wno-sequence-point
128+
-Wno-narrowing
129+
-Wno-reorder
130+
-Wno-unused-local-typedefs
128131
-DMQTT_MAX_PACKET_SIZE=1024
129132
-DSECURE_CLIENT=SECURE_CLIENT_BEARSSL
130133
-DBEARSSL_SSL_BASIC
@@ -322,9 +325,10 @@ lib_ignore =
322325

323326
[env:esp32_poe]
324327
board = esp32-poe
325-
platform = espressif32@1.12.4
328+
platform = espressif32@2.0
326329
upload_speed = 921600
327-
build_flags = ${common.build_flags_esp32} ${common.debug_flags} -D RLYPIN=-1 -D WLED_USE_ETHERNET
330+
build_unflags = ${common.build_unflags}
331+
build_flags = ${common.build_flags_esp32} -D RLYPIN=-1 -D WLED_USE_ETHERNET
328332
lib_ignore =
329333
ESPAsyncTCP
330334
ESPAsyncUDP

wled00/FX.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@
4040
#define DEFAULT_INTENSITY (uint8_t)128
4141
#define DEFAULT_COLOR (uint32_t)0xFFAA00
4242

43+
#ifndef MIN
4344
#define MIN(a,b) ((a)<(b)?(a):(b))
45+
#endif
46+
#ifndef MAX
4447
#define MAX(a,b) ((a)>(b)?(a):(b))
48+
#endif
4549

4650
/* Not used in all effects yet */
4751
#define WLED_FPS 42

wled00/src/dependencies/espalexa/Espalexa.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ class Espalexa {
583583
return perc / 255;
584584
}
585585

586-
~Espalexa(){delete devices;} //note: Espalexa is NOT meant to be destructed
586+
~Espalexa(){} //note: Espalexa is NOT meant to be destructed
587587
};
588588

589589
#endif

wled00/src/dependencies/espalexa/EspalexaDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "Arduino.h"
55
#include <functional>
66

7-
typedef class EspalexaDevice;
7+
class EspalexaDevice;
88

99
typedef std::function<void(uint8_t b)> BrightnessCallbackFunction;
1010
typedef std::function<void(EspalexaDevice* d)> DeviceCallbackFunction;

0 commit comments

Comments
 (0)