From: Christophe CURIS <[email protected]> Hi,
The code was making use of '__attribute__((noreturn))' which is not compatible with all compilers; so the first patch is implementing a detection to see if the new ISO C11 noreturn attribute works, and if it does not it tries to find the proper syntax to be used. This done, the second patch fixes the declaration that could have been a source of problem and adds the attribute to another function that can use it. Regards, Christophe. Christophe CURIS (2): Configure: Added check for compiler attribute 'noreturn' wmaker: Added attribute 'noreturn' to appropriate functions configure.ac | 1 + m4/wm_attributes.m4 | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++ src/event.c | 2 +- src/event.h | 8 ++++- src/main.c | 4 +-- src/main.h | 10 ++++-- 6 files changed, 111 insertions(+), 6 deletions(-) create mode 100644 m4/wm_attributes.m4 -- 1.7.10.4 -- To unsubscribe, send mail to [email protected].
