Loading CMakeLists.txt +3 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,9 @@ set(EXECUTABLE_OUTPUT_PATH bin/${CMAKE_BUILD_TYPE}) set(CMAKE_CXX_FLAGS "-pedantic -Wall -std=c++11 -Wextra") set(CMAKE_LD_FLAGS "-lpthread") add_executable(cppack src/core/statsgen.cpp src/cli/main.cpp) add_executable(cppack src/core/statsgen.cpp src/cli/main.cpp) target_link_libraries(cppack ${CMAKE_THREAD_LIBS_INIT}) # Création des exécutables. Loading include/statsgen.h +0 −1 Original line number Diff line number Diff line Loading @@ -305,5 +305,4 @@ void * generate_stats_thread(void * threadarg); */ void * generate_stats_thread_queue(void * threadarg); #endif src/core/statsgen.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -193,7 +193,7 @@ int Statsgen::generate_stats() { if (!total_counter) { wcerr << "Empty file or not existing file" << endl; wcerr << "[ERROR] Empty file or not existing file" << endl; return 0; } Loading Loading @@ -555,7 +555,7 @@ uint64_t nbline_file(const string & filename) { } // we have not read the whole file if (readfile.fail() && !readfile.eof()){ cerr << "There was an error reading the file at line " << nb << endl; cerr << "[ERROR]" << " There was an error reading the file at line " << nb << endl; return 0; } Loading Loading
CMakeLists.txt +3 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,9 @@ set(EXECUTABLE_OUTPUT_PATH bin/${CMAKE_BUILD_TYPE}) set(CMAKE_CXX_FLAGS "-pedantic -Wall -std=c++11 -Wextra") set(CMAKE_LD_FLAGS "-lpthread") add_executable(cppack src/core/statsgen.cpp src/cli/main.cpp) add_executable(cppack src/core/statsgen.cpp src/cli/main.cpp) target_link_libraries(cppack ${CMAKE_THREAD_LIBS_INIT}) # Création des exécutables. Loading
include/statsgen.h +0 −1 Original line number Diff line number Diff line Loading @@ -305,5 +305,4 @@ void * generate_stats_thread(void * threadarg); */ void * generate_stats_thread_queue(void * threadarg); #endif
src/core/statsgen.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -193,7 +193,7 @@ int Statsgen::generate_stats() { if (!total_counter) { wcerr << "Empty file or not existing file" << endl; wcerr << "[ERROR] Empty file or not existing file" << endl; return 0; } Loading Loading @@ -555,7 +555,7 @@ uint64_t nbline_file(const string & filename) { } // we have not read the whole file if (readfile.fail() && !readfile.eof()){ cerr << "There was an error reading the file at line " << nb << endl; cerr << "[ERROR]" << " There was an error reading the file at line " << nb << endl; return 0; } Loading