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

building failed #26

@wengzuyang

Description

@wengzuyang
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions