Description:
Unable to build MySQL Server version 5.5.49 on CentOS 5.11 32-bit when target architecture is set to "i686" due to "value computed is not used" warnings treated as errors.
[ 33%] Building C object storage/innobase/CMakeFiles/innobase.dir/ibuf/ibuf0ibuf.c.o
cc1: warnings being treated as errors
/home/yura/ws/mysql-server/storage/innobase/ibuf/ibuf0ibuf.c: In function ‘ibuf_add_ops’:
/home/yura/ws/mysql-server/storage/innobase/ibuf/ibuf0ibuf.c:1480: warning: value computed is not used
/home/yura/ws/mysql-server/storage/innobase/ibuf/ibuf0ibuf.c: In function ‘ibuf_merge_or_delete_for_page’:
/home/yura/ws/mysql-server/storage/innobase/ibuf/ibuf0ibuf.c:4817: warning: value computed is not used
make[2]: *** [storage/innobase/CMakeFiles/innobase.dir/ibuf/ibuf0ibuf.c.o] Error 1
make[1]: *** [storage/innobase/CMakeFiles/innobase.dir/all] Error 2
make: *** [all] Error 2
How to repeat:
git clone -b 5.5 https://github.com/mysql/mysql-server.git
mkdir mysql-server-build-5.5
cd mysql-server-build-5.5
CFLAGS='-march=i686' CXXFLAGS='-march=i686' cmake \
../mysql-server \
-DCMAKE_BUILD_TYPE=Debug \
-DBUILD_CONFIG=mysql_release \
-DFEATURE_SET=community \
-DWITH_EMBEDDED_SERVER=OFF \
-DENABLE_DTRACE=OFF \
-DWITH_EXAMPLE_STORAGE_ENGINE=ON \
-DWITH_SSL=system
make