[ 54%] Building CXX object sql/CMakeFiles/sql.dir/gcalc_tools.cc.o
/home/sveta/src/percona-server-laurynas/sql/gcalc_tools.cc: In member function ‘int Gcalc_function::count_internal()’:
/home/sveta/src/percona-server-laurynas/sql/gcalc_tools.cc:225:18: error: suggest parentheses around operand of ‘!’ or change ‘&’ to ‘&&’ or ‘!’ to ‘~’ [-Werror=parentheses]
result= !result & next_res;
^
cc1plus: all warnings being treated as errors
sql/CMakeFiles/sql.dir/build.make:385: recipe for target 'sql/CMakeFiles/sql.dir/gcalc_tools.cc.o' failed
make[2]: *** [sql/CMakeFiles/sql.dir/gcalc_tools.cc.o] Error 1
CMakeFiles/Makefile2:5638: recipe for target 'sql/CMakeFiles/sql.dir/all' failed
make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
With gcc 5.4.1-2:
[ 54%] Building CXX object sql/CMakeFiles/ sql.dir/ gcalc_tools. cc.o src/percona- server- laurynas/ sql/gcalc_ tools.cc: In member function ‘int Gcalc_function: :count_ internal( )’: src/percona- server- laurynas/ sql/gcalc_ tools.cc: 225:18: error: suggest parentheses around operand of ‘!’ or change ‘&’ to ‘&&’ or ‘!’ to ‘~’ [-Werror= parentheses] sql.dir/ build.make: 385: recipe for target 'sql/CMakeFiles /sql.dir/ gcalc_tools. cc.o' failed /sql.dir/ gcalc_tools. cc.o] Error 1 Makefile2: 5638: recipe for target 'sql/CMakeFiles /sql.dir/ all' failed /sql.dir/ all] Error 2
/home/sveta/
/home/sveta/
result= !result & next_res;
^
cc1plus: all warnings being treated as errors
sql/CMakeFiles/
make[2]: *** [sql/CMakeFiles
CMakeFiles/
make[1]: *** [sql/CMakeFiles
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2