Unverified Commit b4d87f54 authored by Marcel Raad's avatar Marcel Raad
Browse files

examples: fix Wimplicit-fallthrough warnings

This is contained in -Wextra with GCC 7.
parent df45f2c3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;

+1 −0
Original line number Diff line number Diff line
@@ -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;

+1 −0
Original line number Diff line number Diff line
@@ -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;

+1 −0
Original line number Diff line number Diff line
@@ -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;

+1 −0
Original line number Diff line number Diff line
@@ -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;