-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make check fails with gcc7 #202
Comments
Seems like |
That, or adding From: https://developers.redhat.com/blog/2017/03/10/wimplicit-fallthrough-in-gcc-7/
|
I'm for |
Does #204 solve this issue? |
Sorry to report, Anton, it does not ... ( |
Is diff --git a/compat.h b/compat.h
index 6d2cfee..99ef9f9 100644
--- a/compat.h
+++ b/compat.h
@@ -6,6 +6,7 @@
#endif
#ifndef __dead
+#error "__dead is not defined"
#define __dead
#endif |
No ... seems that |
This commit 7f5694a might have been a bad idea after all then... |
Please give #204 another try. |
Still no luck ... the following works here: --- pick-test.c.orig 2017-07-04 06:53:01.730489953 +0200
+++ pick-test.c 2017-07-04 06:54:00.510488670 +0200
@@ -12,7 +12,7 @@
#include <string.h>
#include <unistd.h>
-static void child(int, int);
+static void child(int, int) __attribute__((noreturn));
static void parent(int, int, const char *);
static char *parsekeys(const char *);
static void sighandler(int); |
My bad, forgot to actually declare the functions as dead. Please give #204 another try. |
For me the fallthrough branch is working now. |
Confirmed for working with |
Your proposed solutions are sure valid options in order to silence the |
Fixes #202, an issue discovered while compiling pick-test with GCC 7.
Thanks to both of you for compiling pick using modern compilers! The fix |
Due to the new
implicit-fallthrough
warning and-Werror
make check fails with gcc7.The text was updated successfully, but these errors were encountered: