From ceac787a4f5d20ca6b0358bf4dd35f47509b2427 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Sun, 19 Mar 2017 20:12:43 +0100 Subject: inteltool: Add hint for compiler to avoid fall-through warning Falling through is intended here, so add a comment that GCC will notice and stop warning about this. Change-Id: I12637b6bc18844a3bc47f06208df7fee7a4feb3b Found-by: gcc-7 (Debian 7-20170316-1) 7.0.1 20170316 (experimental) [trunk revision 246203] Signed-off-by: Paul Menzel Reviewed-on: https://review.coreboot.org/18906 Tested-by: build bot (Jenkins) Reviewed-by: Omar Pakker Reviewed-by: Felix Held --- util/inteltool/pcie.c | 1 + 1 file changed, 1 insertion(+) (limited to 'util') diff --git a/util/inteltool/pcie.c b/util/inteltool/pcie.c index 541d9cadc8..78d69feda3 100644 --- a/util/inteltool/pcie.c +++ b/util/inteltool/pcie.c @@ -363,6 +363,7 @@ int print_dmibar(struct pci_dev *nb) case PCI_DEVICE_ID_INTEL_CORE_2ND_GEN_E3: dmi_registers = sandybridge_dmi_registers; size = ARRAY_SIZE(sandybridge_dmi_registers); + /* fall through */ case PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_D: /* pretty printing not implemented yet */ case PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_M: case PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_E3: -- cgit v1.2.3