[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 169/254: examples: fix Wimplicit-fallthrough warnin
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 169/254: examples: fix Wimplicit-fallthrough warnings |
Date: |
Sat, 17 Jun 2017 16:53:21 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to annotated tag gnurl-7.54.1
in repository gnurl.
commit b4d87f54d60711e936fefae388d741b281eecdf0
Author: Marcel Raad <address@hidden>
AuthorDate: Wed May 24 11:56:38 2017 +0200
examples: fix Wimplicit-fallthrough warnings
This is contained in -Wextra with GCC 7.
---
docs/examples/debug.c | 1 +
docs/examples/http2-download.c | 1 +
docs/examples/http2-serverpush.c | 1 +
docs/examples/http2-upload.c | 1 +
docs/examples/multi-debugcallback.c | 1 +
5 files changed, 5 insertions(+)
diff --git a/docs/examples/debug.c b/docs/examples/debug.c
index cbf1c1106..e8a87ea4c 100644
--- a/docs/examples/debug.c
+++ b/docs/examples/debug.c
@@ -91,6 +91,7 @@ int my_trace(CURL *handle, curl_infotype type,
switch(type) {
case CURLINFO_TEXT:
fprintf(stderr, "== Info: %s", data);
+ /* FALLTHROUGH */
default: /* in case a new one is introduced to shock us */
return 0;
diff --git a/docs/examples/http2-download.c b/docs/examples/http2-download.c
index 8c0b0876e..8e28eaa73 100644
--- a/docs/examples/http2-download.c
+++ b/docs/examples/http2-download.c
@@ -117,6 +117,7 @@ int my_trace(CURL *handle, curl_infotype type,
switch(type) {
case CURLINFO_TEXT:
fprintf(stderr, "== %d Info: %s", num, data);
+ /* FALLTHROUGH */
default: /* in case a new one is introduced to shock us */
return 0;
diff --git a/docs/examples/http2-serverpush.c b/docs/examples/http2-serverpush.c
index 5aae6afdc..b497e76a9 100644
--- a/docs/examples/http2-serverpush.c
+++ b/docs/examples/http2-serverpush.c
@@ -96,6 +96,7 @@ int my_trace(CURL *handle, curl_infotype type,
switch(type) {
case CURLINFO_TEXT:
fprintf(stderr, "== Info: %s", data);
+ /* FALLTHROUGH */
default: /* in case a new one is introduced to shock us */
return 0;
diff --git a/docs/examples/http2-upload.c b/docs/examples/http2-upload.c
index 01dfc0b3d..43809ab69 100644
--- a/docs/examples/http2-upload.c
+++ b/docs/examples/http2-upload.c
@@ -136,6 +136,7 @@ int my_trace(CURL *handle, curl_infotype type,
switch(type) {
case CURLINFO_TEXT:
fprintf(stderr, "%s [%d] Info: %s", timebuf, num, data);
+ /* FALLTHROUGH */
default: /* in case a new one is introduced to shock us */
return 0;
diff --git a/docs/examples/multi-debugcallback.c
b/docs/examples/multi-debugcallback.c
index be241fc72..07f044b4e 100644
--- a/docs/examples/multi-debugcallback.c
+++ b/docs/examples/multi-debugcallback.c
@@ -99,6 +99,7 @@ int my_trace(CURL *handle, curl_infotype type,
switch(type) {
case CURLINFO_TEXT:
fprintf(stderr, "== Info: %s", data);
+ /* FALLTHROUGH */
default: /* in case a new one is introduced to shock us */
return 0;
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 244/254: RELEASE-PROCEDURE: updated future release dates, (continued)
- [GNUnet-SVN] [gnurl] 244/254: RELEASE-PROCEDURE: updated future release dates, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 249/254: urlglob: fix division by zero, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 175/254: opts: more examples added in option man pages, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 251/254: libressl: OCSP and intermediate certs workaround no longer needed, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 80/254: typecheck-gcc: add support for CURLINFO_SOCKET, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 104/254: tftp: silence bad-function-cast warning, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 107/254: sendrecv: fix MinGW-w64 warning, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 152/254: ssh: ignore timeouts during disconnect, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 211/254: dedotdot: fixed output for ".." and "." only input, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 206/254: curl_endian: remove unused functions, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 169/254: examples: fix Wimplicit-fallthrough warnings,
gnunet <=
- [GNUnet-SVN] [gnurl] 158/254: cmake: remove CURL_CA_BUNDLE from cmake TODO, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 178/254: RELEASE-NOTES: synced with 3aaac8c2f, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 202/254: typecheck-gcc.h: check CURLINFO_CERTINFO, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 230/254: test1521: make the code < 80 columns wide, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 72/254: ssh: fix compiler warning from e40e9d7f0de, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 50/254: curl_setup: Ensure no more than one IDN lib is enabled, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 120/254: formboundary: convert assert into run-time check, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 114/254: tool_msgs: remove wrong cast, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 98/254: tests: fix -Wcast-qual warnings, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 228/254: typecheck-gcc: allow CURLOPT_STDERR to be NULL too, gnunet, 2017/06/17