https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79172
--- Comment #3 from petschy at gmail dot com --- $ g++-7.0.1 -pthread -Werror -Wall -Wextra 20170123-Wunused-but-set-parameter.cpp 20170123-Wunused-but-set-parameter.cpp: In constructor ‘CRSARC4Base::CRSARC4Base(unsigned int, unsigned int)’: 20170123-Wunused-but-set-parameter.cpp:100:39: error: parameter ‘msends_’ set but not used [-Werror=unused-but-set-parameter] CRSARC4Base::CRSARC4Base(unsigned int msends_, unsigned int mrecvs_) : ^~~~~~~ 20170123-Wunused-but-set-parameter.cpp:100:61: error: parameter ‘mrecvs_’ set but not used [-Werror=unused-but-set-parameter] CRSARC4Base::CRSARC4Base(unsigned int msends_, unsigned int mrecvs_) : ^~~~~~~ $ g++-7.0.1 -v Using built-in specs. COLLECT_GCC=g++-7.0.1 COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/7.0.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../configure --enable-languages=c,c++ --disable-multilib --program-suffix=-7.0.1 --disable-bootstrap --enable-checking=release CFLAGS='-O2 -march=native' CXXFLAGS='-O2 -march=native' Thread model: posix gcc version 7.0.1 20170120 (experimental) (GCC) Tested on 64bit Debian Jessie, CPU is AMD FX-8150.