Skip to content

Commit

Permalink
fixed some compile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandervanrenen committed Feb 12, 2017
1 parent ca1f124 commit bf52d3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ GTEST_INCLUDE := libs/gtest/include
GTEST_LIB := libs/gtest/libgtest.a
TARGET_DIR := bin

CF := -g0 -O2 -std=c++11 -Werror -Wextra -Wall -funroll-all-loops -ffast-math -Iinclude $(addprefix -I,$(GTEST_INCLUDE))
LF := -g0 -O2 -Werror -Wextra -Wall -funroll-all-loops -ffast-math
CF := -g0 -O2 -std=c++11 -Werror -Wextra -Wall -ffast-math -Iinclude $(addprefix -I,$(GTEST_INCLUDE))
LF := -g0 -O2 -Werror -Wextra -Wall -ffast-math

CCCACHE_USE?=
CXX?= g++
Expand Down
2 changes: 1 addition & 1 deletion src/fs/File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ string File::loadFileToString() const throw(InvalidFileSystemRequest)
in.read(&data[0], length);
if (!in.good() || !in.is_open())
throw InvalidFileSystemRequest("Can not read '" + path + "'");
return move(data);
return data;
}
// -------------------------------------------------------------------------------------------------
vector<char> File::loadFileToVector() const throw(InvalidFileSystemRequest)
Expand Down

0 comments on commit bf52d3c

Please sign in to comment.