diff options
author | info@mobile-stream.com <info@mobile-stream.com> | 2018-11-20 22:10:57 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-11-26 09:00:20 +0000 |
commit | e80509f7f18aacc5bef852ce4791ba49aaa10fa4 (patch) | |
tree | d1e44ae560bd1d0bbe9cfd359afd01b8d9a6281d /main/arpon/arpon-gcc8.patch | |
parent | de367a37dd04af7e574d764ac4028712e46516e0 (diff) | |
download | aports-e80509f7f18aacc5bef852ce4791ba49aaa10fa4.tar.bz2 aports-e80509f7f18aacc5bef852ce4791ba49aaa10fa4.tar.xz |
main/arpon: fix build with gcc8 (useful -Werror)
gcc8 reports one -Werror=pointer-compare case with the actual problem and
several harmless -Werror=implicit-fallthrough so fix everything with a patch.
Diffstat (limited to 'main/arpon/arpon-gcc8.patch')
-rw-r--r-- | main/arpon/arpon-gcc8.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/main/arpon/arpon-gcc8.patch b/main/arpon/arpon-gcc8.patch new file mode 100644 index 0000000000..87c4cf8843 --- /dev/null +++ b/main/arpon/arpon-gcc8.patch @@ -0,0 +1,37 @@ +--- a/src/opt.c ++++ b/src/opt.c +@@ -222,6 +222,7 @@ + /* Print the version command option, cleanup and exit. */ + std_version(); + exit_cleanup(true); ++ break; + + case 'h': + MSG_DEBUG("-h or --help command option"); +@@ -229,6 +230,7 @@ + /* Print the help screen command option, cleanup and exit. */ + std_help(); + exit_cleanup(true); ++ break; + + case '?': + case ':': +@@ -285,7 +287,7 @@ + } + + /* Re-initialize the interface name command option to no interface? */ +- if (opt->interface != '\0') ++ if (*opt->interface != '\0') + memset(opt->interface, '\0', (size_t)IF_NAMESIZE); + + /* Set the value of the interface name command option. */ +--- a/src/sig.c ++++ b/src/sig.c +@@ -204,6 +204,7 @@ + case SIGINT: + /* Remove ^C symbol from the output terminal. */ + printf("\r"); ++ /* fallthrough */ + + case SIGTERM: + MSG_DEBUG("Caught %s (%d)..", SIG_ITOA(sig), sig); |