Skip to content
Snippets Groups Projects
Commit 071c3f70 authored by Marc-Olivier Andrez's avatar Marc-Olivier Andrez
Browse files

build: fix GCC compilation error because of call of deprecated function `siginterrupt`

Error message:

> main_eventmon.cpp:109:17: error: ‘int siginterrupt(int, int)’ is deprecated: Use sigaction with SA_RESTART instead [-Werror=deprecated-declarations]

The current fix consists in ignoring the error message at the moment,
but we should replace `siginterrupt` with `sigaction` in the future.
parent 23a0a67f
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,9 @@ int main (int argc, char* argv[]) {
stop_signal = 0;
std::signal(SIGINT, SignalHandler);
std::signal(SIGTERM, SignalHandler);
#if defined(__linux__) || defined (__APPLE__)
#if defined(__linux__) || defined(__APPLE__)
// FIXME
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
siginterrupt(SIGINT, 1);
#endif
......
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