Clang fails on compiling oomtestutil
Using the CMake branch (see !1 (merged)) and use Clang++ 11, I get an error when building test-stopmotion
. With GCC it works fine.
Scanning dependencies of target oomtestutil
[ 2%] Building CXX object src/test/CMakeFiles/oomtestutil.dir/oomtestutil_autogen/mocs_compilation.cpp.o
[ 2%] Building CXX object src/test/CMakeFiles/oomtestutil.dir/oomtestutil.cpp.o
/home/gruech/linuxstopmotion-code/src/test/oomtestutil.cpp:230:5: error: 'ferror' is missing exception specification 'throw()'
int ferror(FILE* fh) {
^
throw()
/home/gruech/linuxstopmotion-code/src/test/oomtestutil.cpp:46:5: note: previous declaration is here
int ferror(FILE* fh);
^
1 error generated.