Blame gcc7-implict-fallthrough-fix.patch
|
Yunying Sun |
908b33 |
diff -ru tpm2.0-tools-2.1.0-orig/tools/main.c tpm2.0-tools-2.1.0/tools/main.c
|
|
Yunying Sun |
908b33 |
--- tpm2.0-tools-2.1.0-orig/tools/main.c 2017-07-31 14:26:37.436505592 +0800
|
|
Yunying Sun |
908b33 |
+++ tpm2.0-tools-2.1.0/tools/main.c 2017-07-31 14:27:12.999707128 +0800
|
|
Yunying Sun |
908b33 |
@@ -61,7 +61,7 @@
|
|
Yunying Sun |
908b33 |
execute_man (argv[0], envp);
|
|
Yunying Sun |
908b33 |
fprintf (stderr,
|
|
Yunying Sun |
908b33 |
"failed to load manpage, check your environment / PATH\n");
|
|
Yunying Sun |
908b33 |
- /* no break */
|
|
Yunying Sun |
908b33 |
+ exit (1);
|
|
Yunying Sun |
908b33 |
case 2:
|
|
Yunying Sun |
908b33 |
exit (1);
|
|
Yunying Sun |
908b33 |
}
|
|
Yunying Sun |
908b33 |
diff -ru tpm2.0-tools-2.1.0-orig/tools/tpm2_dump_capability.c tpm2.0-tools-2.1.0/tools/tpm2_dump_capability.c
|
|
Yunying Sun |
908b33 |
--- tpm2.0-tools-2.1.0-orig/tools/tpm2_dump_capability.c 2017-07-31 14:26:37.436505592 +0800
|
|
Yunying Sun |
908b33 |
+++ tpm2.0-tools-2.1.0/tools/tpm2_dump_capability.c 2017-07-31 14:29:30.831488212 +0800
|
|
Yunying Sun |
908b33 |
@@ -595,7 +595,7 @@
|
|
Yunying Sun |
908b33 |
case TPM_CAP_COMMANDS:
|
|
Yunying Sun |
908b33 |
dump_command_attr_array (capabilities->command.commandAttributes,
|
|
Yunying Sun |
908b33 |
capabilities->command.count);
|
|
Yunying Sun |
908b33 |
- /* no break */
|
|
Yunying Sun |
908b33 |
+ break;
|
|
Yunying Sun |
908b33 |
default:
|
|
Yunying Sun |
908b33 |
return 1;
|
|
Yunying Sun |
908b33 |
}
|