Skip to content

Commit

Permalink
Fix Werror=reorder for idf.py build (#2707)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhynes authored and me-no-dev committed Apr 25, 2019
1 parent 619568d commit 271e5cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions libraries/EEPROM/src/EEPROM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,31 @@
#include <esp_log.h>

EEPROMClass::EEPROMClass(void)
: _data(0)
: _handle(NULL)
, _data(0)
, _size(0)
, _dirty(false)
, _handle(NULL)
, _name("eeprom")
, _user_defined_size(0)
{
}

EEPROMClass::EEPROMClass(uint32_t sector)
// Only for compatiility, no sectors in nvs!
: _data(0)
: _handle(NULL)
, _data(0)
, _size(0)
, _dirty(false)
, _handle(NULL)
, _name("eeprom")
, _user_defined_size(0)
{
}

EEPROMClass::EEPROMClass(const char* name, uint32_t user_defined_size)
: _data(0)
: _handle(NULL)
, _data(0)
, _size(0)
, _dirty(false)
, _handle(NULL)
, _name(name)
, _user_defined_size(user_defined_size)
{
Expand Down
3 changes: 2 additions & 1 deletion tools/platformio-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
"-Wno-unused-parameter",
"-Wno-sign-compare",
"-fstack-protector",
"-fexceptions"
"-fexceptions",
"-Werror=reorder"
],

CXXFLAGS=[
Expand Down

0 comments on commit 271e5cd

Please sign in to comment.