diff --git a/BitcodeEmitter.cpp b/BitcodeEmitter.cpp index 54aef2e..2cee78b 100644 --- a/BitcodeEmitter.cpp +++ b/BitcodeEmitter.cpp @@ -481,7 +481,7 @@ bool BitcodeEmitter::emit(FunctionPrototype const& node) { if (argsSet.find(name) != argsSet.end()) { return reportError({ "Two arguments with same name to function", - node.getName().getValue(), ":", name + node.getName().getValue() + "()", ":", name }); } argsSet.insert(name); diff --git a/CMakeLists.txt b/CMakeLists.txt index 238c2ee..e5680d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,7 +86,8 @@ include_directories( ) add_definitions( - -Wall -Wextra -Werror -Wno-unused-parameter -Wno-deprecated-register -std=c++0x -DYYDEBUG=0 -O2 + -Wall -Wextra -Werror -Wno-unused-parameter -Wno-deprecated-register + -std=c++0x -DYYDEBUG=0 -O2 ) bison_target(Parser Monicelli.ypp ${CMAKE_CURRENT_BINARY_DIR}/Parser.cpp)