Skip to content
This repository has been archived by the owner on Sep 21, 2024. It is now read-only.

building failed #26

Open
wengzuyang opened this issue Mar 4, 2020 · 1 comment
Open

building failed #26

wengzuyang opened this issue Mar 4, 2020 · 1 comment

Comments

@wengzuyang
Copy link

cage@cage-virtual-machine:~/odata/odatacpp-server$ make 
Scanning dependencies of target odata-library
[  1%] Building CXX object src/CMakeFiles/odata-library.dir/common/asyncrt_utils.cpp.o
In file included from /home/cage/odata/odatacpp-server/include/odata/common/compat/linux_compat.h:70:0,
                 from /home/cage/odata/odatacpp-server/include/odata/common/platform.h:68,
                 from /home/cage/odata/odatacpp-server/src/common/asyncrt_utils.cpp:7:
/home/cage/odata/odatacpp-server/include/odata/common/compat/SafeInt3.hpp: In static member function ‘static SafeIntError DivisionHelper<T, U, 3>::Divide(const T&, const long long unsigned int&, T&)’:
/home/cage/odata/odatacpp-server/include/odata/common/compat/SafeInt3.hpp:3249:9: error: this ‘else’ clause does not guard... [-Werror=misleading-indentation]
         else // Corner case
         ^~~~
/home/cage/odata/odatacpp-server/include/odata/common/compat/SafeInt3.hpp:3259:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
             return SafeIntNoError;
             ^~~~~~
cc1plus: all warnings being treated as errors
src/CMakeFiles/odata-library.dir/build.make:62: recipe for target 'src/CMakeFiles/odata-library.dir/common/asyncrt_utils.cpp.o' failed
make[2]: *** [src/CMakeFiles/odata-library.dir/common/asyncrt_utils.cpp.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'src/CMakeFiles/odata-library.dir/all' failed
make[1]: *** [src/CMakeFiles/odata-library.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2
@recolic
Copy link

recolic commented Oct 13, 2020

removing all -Werror from CMakeLists.txt and src/CMakeLists.txt solves this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants