Blame SOURCES/v1.6.1-implicit-fallthrough.patch

e1d87d
gcc-7.1.1-1.fc27.x86_64
e1d87d
/home/jkratoch/redhat/fedora/libipt/master/processor-trace-1.6.1/libipt/src/pt_block_decoder.c: In function ‘pt_blk_proceed_no_event_cached’:
e1d87d
/home/jkratoch/redhat/fedora/libipt/master/processor-trace-1.6.1/libipt/src/pt_block_decoder.c:2282:6: error: this statement may fall through [-Werror=implicit-fallthrough=]
e1d87d
   if (bce.isize) {
e1d87d
      ^
e1d87d
/home/jkratoch/redhat/fedora/libipt/master/processor-trace-1.6.1/libipt/src/pt_block_decoder.c:2328:2: note: here
e1d87d
  case ptbq_decode: {
e1d87d
  ^~~~
e1d87d
e1d87d
diff --git a/libipt/src/pt_block_decoder.c b/libipt/src/pt_block_decoder.c
e1d87d
index 21783a6..91d5bb3 100644
e1d87d
--- a/libipt/src/pt_block_decoder.c
e1d87d
+++ b/libipt/src/pt_block_decoder.c
e1d87d
@@ -2095,6 +2095,9 @@ static int pt_blk_proceed_no_event_cached(struct pt_block_decoder *decoder,
e1d87d
 		}
e1d87d
 
e1d87d
 		/* Fall through to ptbq_decode. */
e1d87d
+#if __GNUC__ >= 7
e1d87d
+		__attribute__ ((fallthrough));
e1d87d
+#endif
e1d87d
 
e1d87d
 	case ptbq_decode: {
e1d87d
 		struct pt_insn_ext iext;