Skip to content
Snippets Groups Projects
Commit 04ca34fb authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

-O2 (new default); corr

parent 1aa1407d
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ enable_testing() ...@@ -19,7 +19,7 @@ enable_testing()
#option(FRIDA_MAN "Build a user manual" OFF) #option(FRIDA_MAN "Build a user manual" OFF)
#option(BUILD_DEBIAN "Build a debian package" OFF) #option(BUILD_DEBIAN "Build a debian package" OFF)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g -pedantic -Wall -Wno-sign-compare -Wno-unused-result -Wno-parentheses -Wno-unknown-pragmas -Werror") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g -O2 -pedantic -Wall -Wno-sign-compare -Wno-unused-result -Wno-parentheses -Wno-unknown-pragmas -Werror")
# to use C99 _Complex, add -fext-numeric-literals to CXX_FLAGS # to use C99 _Complex, add -fext-numeric-literals to CXX_FLAGS
find_package(Boost REQUIRED) # used header-only modules: format algorithm find_package(Boost REQUIRED) # used header-only modules: format algorithm
......
...@@ -193,11 +193,11 @@ void CFrida::interactive() ...@@ -193,11 +193,11 @@ void CFrida::interactive()
void CFrida::execute_file( const string fnam ) void CFrida::execute_file( const string fnam )
{ {
int lineno; int lineno = 0;
try{ try{
cout << "executing " << fnam << "\n"; cout << "executing " << fnam << "\n";
std::ifstream F( fnam ); std::ifstream F( fnam );
for( lineno=0; ; ++lineno ){ for( ; ; ++lineno ){
string cmdline = NMacro::readln( "", &F ); string cmdline = NMacro::readln( "", &F );
if ( cmdline=="EOF" ) if ( cmdline=="EOF" )
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment