summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2018-05-05 14:58:15 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2018-05-05 14:58:15 -0700
commit4a3a9fc5271cd04ab9123e4713d00b161daf0b6a (patch)
tree34482c0c06da3da934d58e4133d0fda087331573
parent536d1003a5c4d5ac24cd3b8afd10492e4e6242df (diff)
downloadxorg-app-xauth-4a3a9fc5271cd04ab9123e4713d00b161daf0b6a.tar.gz
Change fall through comment in process.c to match gcc's requirements
Needs to match one of the regexps shown under https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/Warning-Options.html#index-Wimplicit-fallthrough Silences warning from gcc 7.3: process.c: In function ‘dump_entry’: process.c:1007:9: warning: this statement may fall through [-Wimplicit-fallthrough=] if (dpyname) { ^ process.c:1012:4: note: here default: ^~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/process.c b/process.c
index 5b12c92..12a1765 100644
--- a/process.c
+++ b/process.c
@@ -1008,7 +1008,7 @@ dump_entry(const char *inputfilename, int lineno, Xauth *auth, char *data)
fprintf (fp, "%s", dpyname);
break;
}
- /* else fall through to default */
+ /* else fall through */
default:
fprintf (fp, "#%04x#", auth->family);
fprintfhex (fp, auth->address_length, auth->address);