8000 Fix Werror=reorder for idf.py build (#2707) · Jason-Cooke/arduino-esp32@271e5cd · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 271e5cd

Browse files
nhynesme-no-dev
authored andcommitted
Fix Werror=reorder for idf.py build (espressif#2707)
1 parent 619568d commit 271e5cd

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

libraries/EEPROM/src/EEPROM.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,31 +28,31 @@
2828
#include <esp_log.h>
2929

3030
EEPROMClass::EEPROMClass(void)
31-
: _data(0)
31+
: _handle(NULL)
32+
, _data(0)
3233
, _size(0)
3334
, _dirty(false)
34-
, _handle(NULL)
3535
, _name("eeprom")
3636
, _user_defined_size(0)
3737
{
3838
}
3939

4040
EEPROMClass::EEPROMClass(uint32_t sector)
4141
// Only for compatiility, no sectors in nvs!
42-
: _data(0)
42+
: _handle(NULL)
43+
, _data(0)
4344
, _size(0)
4445
, _dirty(false)
45-
, _handle(NULL)
4646
, _name("eeprom")
4747
, _user_defined_size(0)
4848
{
4949
}
5050

5151
EEPROMClass::EEPROMClass(const char* name, uint32_t user_defined_size)
52-
: _data(0)
52+
: _handle(NULL)
53+
, _data(0)
5354
, _size(0)
5455
, _dirty(false)
55-
, _handle(NULL)
5656
, _name(name)
5757
, _user_defined_size(user_defined_size)
5858
{

tools/platformio-build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959
"-Wno-unused-parameter",
6060
"-Wno-sign-compare",
6161
"-fstack-protector",
62-
"-fexceptions"
62+
"-fexceptions",
63+
"-Werror=reorder"
6364
],
6465

6566
CXXFLAGS=[

0 commit comments

Comments
 (0)
0