-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
bugBehaving differently as it should behaveBehaving differently as it should behavelang: c++Done in C++ codeDone in C++ codeos: macosmacOS-specific issuemacOS-specific issue
Description
Karens-MacBook-Pro:SFTtech-openage-db976c0` thomas$ make
[ 0%] Automatic moc for target libopenage
Scanning dependencies of target libopenage
[ 0%] Building CXX object libopenage/CMakeFiles/libopenage.dir/assetmanager.cpp.o
In file included from /Users/thomas/Downloads/SFTtech-openage-db976c0/libopenage/assetmanager.cpp:16:
In file included from /Users/thomas/Downloads/SFTtech-openage-db976c0/libopenage/texture.h:12:
In file included from /Users/thomas/Downloads/SFTtech-openage-db976c0/libopenage/coord/tile.h:9:
/Users/thomas/Downloads/SFTtech-openage-db976c0/libopenage/coord/../util/misc.h:146:25: error: constexpr function never produces a constant expression [-Winvalid-constexpr]
inline constexpr size_t array64_size(size_t count) {
^
/Users/thomas/Downloads/SFTtech-openage-db976c0/libopenage/coord/../util/misc.h:147:9: note: non-constexpr function 'ceil' cannot be used in a constant expression
return std::ceil(static_cast<double>(count) / static_cast<double>(uint64_s));
^
/usr/include/math.h:470:15: note: declared here
extern double ceil(double);
^
1 error generated.
make[3]: *** [libopenage/CMakeFiles/libopenage.dir/assetmanager.cpp.o] Error 1
make[2]: *** [libopenage/CMakeFiles/libopenage.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [build] Error 2
Karens-MacBook-Pro:SFTtech-openage-db976c0 thomas$
Metadata
Metadata
Assignees
Labels
bugBehaving differently as it should behaveBehaving differently as it should behavelang: c++Done in C++ codeDone in C++ codeos: macosmacOS-specific issuemacOS-specific issue