Commit e6309723 authored by Arnaud Blanchard's avatar Arnaud Blanchard
Browse files

Fix compilation error and warning

parent cd0c932a
......@@ -16,9 +16,9 @@ project(i_keyboard)
find_package(blc_channel REQUIRED)
find_package(blc_program REQUIRED)
add_definitions(${BL_DEFINITIONS} -Wno-multichar)
add_executable(i_keyboard src/main.cpp)
add_executable(i_keyboard src/i_keyboard.cpp)
target_link_libraries(i_keyboard ${BL_LIBRARIES})
......@@ -231,7 +231,7 @@ int main(int argc, char** argv){
uchar answer;
blc_array array_select;
asprintf(&default_output, "/%s%d", basename(argv[0]), getpid()); //This will not be free but it is only allocate once
SYSTEM_ERROR_CHECK(asprintf(&default_output, "/%s%d", basename(argv[0]), getpid()), -1, NULL); //This will not be free but it is only allocate once
blc_program_set_description("Get keyboard inputs");
blc_program_add_option(&display, 'd', "display", NULL, "Display a text graph", NULL);
blc_program_add_option(&filename, 'f', "file", "filename", "Initialize the values with a tsv file", NULL);
......@@ -300,9 +300,7 @@ int main(int argc, char** argv){
if (memchr(key_list, quitting_key, keys_nb)) EXIT_ON_ERROR("The quitting key '%c' is in your key list %.*s, you need to select an other one with --quitting_key=...", quitting_key, keys_nb, key_list);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment