nsimplex / ktools

Cross-platform (but Unix oriented) tools for modding Klei Entertainment's game Don't Starve.
GNU General Public License v2.0
158 stars 45 forks source link

error: return-statement with a value, in function returning 'void' [-fpermissive] #12

Open oxr463 opened 4 years ago

oxr463 commented 4 years ago
[  3%] Building CXX object CMakeFiles/ktool_common.dir/src/common/ktools_common.cpp.o
[  6%] Building CXX object CMakeFiles/ktool_common.dir/src/common/file_abstraction.cpp.o
[ 10%] Building CXX object CMakeFiles/ktool_common.dir/src/common/ktex/ktex.cpp.o
[ 13%] Building CXX object CMakeFiles/ktool_common.dir/src/common/ktex/specs.cpp.o
[ 16%] Building CXX object CMakeFiles/ktool_common.dir/src/common/atlas.cpp.o
In file included from /opt/ktools-4.4.0/src/common/atlas.hpp:24,
                 from /opt/ktools-4.4.0/src/common/atlas.cpp:18:
/opt/ktools-4.4.0/src/common/algebra.hpp: In function 'void KTools::inverseOf(const KTools::ProjectiveMatrix<2, T>&)':
/opt/ktools-4.4.0/src/common/algebra.hpp:405:10: error: return-statement with a value, in function returning 'void' [-fpermissive]
  405 |   return N;
      |          ^
make[2]: *** [CMakeFiles/ktool_common.dir/build.make:115: CMakeFiles/ktool_common.dir/src/common/atlas.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/ktool_common.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Mhynlo commented 4 years ago

Thanks for the pull request! This has help me build ktools. :)