Quantcast
Channel: SBFspot Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 360

Commented Unassigned: doesn't compile with gcc-c++ 6.1.1? [160]

$
0
0
after upgrading from fc23 to fc24, my sbfspot package doesn't compile.

g++ -Wall -O2 -DUSE_MYSQL -c TagDefs.cpp -o obj/Release_MySQL/TagDefs.o
db_MySQL_Export.cpp: In member function 'int db_SQL_Export::day_data(InverterData**)':
db_MySQL_Export.cpp:95:28: error: cannot convert 'bool' to 'my_bool* {aka char*}' in assignment
values[0].is_null = false;
^~~~~
db_MySQL_Export.cpp:102:28: error: cannot convert 'bool' to 'my_bool* {aka char*}' in assignment
values[1].is_null = false;
^~~~~
db_MySQL_Export.cpp:109:28: error: cannot convert 'bool' to 'my_bool* {aka char*}' in assignment
values[2].is_null = false;
^~~~~
db_MySQL_Export.cpp:116:28: error: cannot convert 'bool' to 'my_bool* {aka char*}' in assignment
values[3].is_null = false;
^~~~~
db_MySQL_Export.cpp: In member function 'int db_SQL_Export::month_data(InverterData**)':
db_MySQL_Export.cpp:181:27: error: cannot convert 'bool' to 'my_bool* {aka char*}' in assignment
values[0].is_null = false;
^~~~~
db_MySQL_Export.cpp:188:27: error: cannot convert 'bool' to 'my_bool* {aka char*}' in assignment
values[1].is_null = false;
^~~~~
db_MySQL_Export.cpp:195:27: error: cannot convert 'bool' to 'my_bool* {aka char*}' in assignment
values[2].is_null = false;
^~~~~
db_MySQL_Export.cpp:202:27: error: cannot convert 'bool' to 'my_bool* {aka char*}' in assignment
values[3].is_null = false;
^~~~~
db_MySQL_Export.cpp: In member function 'int db_SQL_Export::event_data(InverterData**, TagDefs&)':
db_MySQL_Export.cpp:339:26: error: cannot convert 'bool' to 'my_bool* {aka char*}' in assignment
values[0].is_null = false;
^~~~~
db_MySQL_Export.cpp:346:26: error: cannot convert 'bool' to 'my_bool* {aka char*}' in assignment
values[1].is_null = false;
^~~~~
db_MySQL_Export.cpp:353:26: error: cannot convert 'bool' to 'my_bool* {aka char*}' in assignment
values[2].is_null = false;
^~~~~
db_MySQL_Export.cpp:360:26: error: cannot convert 'bool' to 'my_bool* {aka char*}' in assignment
values[3].is_null = false;
^~~~~
db_MySQL_Export.cpp:367:26: error: cannot convert 'bool' to 'my_bool* {aka char*}' in assignment
values[4].is_null = false;
^~~~~
db_MySQL_Export.cpp:374:26: error: cannot convert 'bool' to 'my_bool* {aka char*}' in assignment
values[5].is_null = false;
^~~~~
db_MySQL_Export.cpp:381:26: error: cannot convert 'bool' to 'my_bool* {aka char*}' in assignment
values[6].is_null = false;
^~~~~
db_MySQL_Export.cpp:387:26: error: cannot convert 'bool' to 'my_bool* {aka char*}' in assignment
values[7].is_null = false;
^~~~~
db_MySQL_Export.cpp:393:26: error: cannot convert 'bool' to 'my_bool* {aka char*}' in assignment
values[8].is_null = false;
^~~~~
db_MySQL_Export.cpp:400:26: error: cannot convert 'bool' to 'my_bool* {aka char*}' in assignment
values[9].is_null = false;
^~~~~
db_MySQL_Export.cpp:407:27: error: cannot convert 'bool' to 'my_bool* {aka char*}' in assignment
values[10].is_null = false;
^~~~~
db_MySQL_Export.cpp:413:27: error: cannot convert 'bool' to 'my_bool* {aka char*}' in assignment
values[11].is_null = false;
^~~~~
cp TagList*.txt bin/Release_MySQL
cp date_time_zonespec.csv bin/Release_MySQL
makefile:221: recipe for target 'obj/Release_MySQL/db_MySQL_Export.o' failed
make: *** [obj/Release_MySQL/db_MySQL_Export.o] Error 1
make: *** Waiting for unfinished jobs....
SBFspot.cpp: In function 'E_SBFSPOT initialiseSMAConnection(InverterData*)':
SBFspot.cpp:1408:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (DEBUG_NORMAL)
^~
SBFspot.cpp:1413:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
do
^~
SBFspot.cpp: In function 'int GetConfig(Config*)':
SBFspot.cpp:2457:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (strlen(cfg->plantname) == 0)
^~
SBFspot.cpp:2460:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if (cfg->timezone.empty())
^~
SBFspot.cpp: In function 'E_SBFSPOT setDeviceData(InverterData*, LriDef, uint16_t, Rec40S32&)':
SBFspot.cpp:3252:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
else
^~~~
SBFspot.cpp:3255:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
return rc;
^~~~~~
SBFspot.cpp: In function 'E_SBFSPOT getDeviceData(InverterData*, LriDef, uint16_t, Rec40S32&)':
SBFspot.cpp:3280:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
else
^~~~
SBFspot.cpp:3283:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
int validPcktID = 0;
^~~
error: Bad exit status from /var/tmp/rpm-tmp.BeSRrb (%build)

Is this related to the gcc-c++ version (6.1.1) on fc24?

Comments: Same on Jessie? What version of gcc is installed? MySQL version?

Viewing all articles
Browse latest Browse all 360

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>