diff options
author | Shawn Landden <slandden@gmail.com> | 2017-11-19 10:06:10 -0800 |
---|---|---|
committer | Shawn Landden <slandden@gmail.com> | 2017-11-20 13:06:25 -0800 |
commit | 4831981d89c628606c825779c75afb03b4839618 (patch) | |
tree | 7e35cbb6e0f1fedb3e543dc14d9ac2553e8ed39e /src/udev/generate-keyboard-keys-gperf.sh | |
parent | d8bd96ab54ab60de5b12aa767eeea94a4cca685c (diff) | |
download | systemd-4831981d89c628606c825779c75afb03b4839618.tar.gz |
tree-wide: adjust fall through comments so that gcc is happy
Distcc removes comments, making the comment silencing
not work.
I know there was a decision against a macro in commit
ec251fe7d5bc24b5d38b0853bc5969f3a0ba06e2
Diffstat (limited to 'src/udev/generate-keyboard-keys-gperf.sh')
-rwxr-xr-x | src/udev/generate-keyboard-keys-gperf.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/udev/generate-keyboard-keys-gperf.sh b/src/udev/generate-keyboard-keys-gperf.sh index 5724e4e3dc..eb977447e3 100755 --- a/src/udev/generate-keyboard-keys-gperf.sh +++ b/src/udev/generate-keyboard-keys-gperf.sh @@ -1,5 +1,10 @@ #!/bin/sh -eu awk ' BEGIN { + print "%{\n\ +#if __GNUC__ >= 7\n\ +_Pragma(\"GCC diagnostic ignored \\\"-Wimplicit-fallthrough\\\"\")\n\ +#endif\n\ +%}" print "struct key_name { const char* name; unsigned short id; };" print "%null-strings" print "%%" |