Fix clang warnings and crashes

This commit is contained in:
aurhat
2020-11-02 22:42:00 +01:00
parent c2e09cac76
commit 9b41c110c6
+4 -1
View File
@@ -129,9 +129,12 @@ clean:
# -$(MAKE) -C ../enet/ clean
%.h.gch: %.h
$(CXX) $(CXXFLAGS) -o $@.tmp $(subst .h.gch,.h,$@)
$(CXX) $(CXXFLAGS) -x c++-header -o $@.tmp $(subst .h.gch,.h,$@)
$(MV) $@.tmp $@
rendermodel.o: rendermodel.cpp
$(CXX) $(CXXFLAGS) -fno-strict-aliasing -c -o $@ $(subst .o,.cpp,$@)
%-standalone.o: %.cpp
$(CXX) $(CXXFLAGS) -c -o $@ $(subst -standalone.o,.cpp,$@)