bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/6] fixup acpi base table search


From: Samuel Thibault
Subject: Re: [PATCH 2/6] fixup acpi base table search
Date: Sun, 28 Mar 2021 23:14:52 +0200
User-agent: NeoMutt/20170609 (1.8.3)

I applied it, except:

Damien Zammit, le dim. 28 mars 2021 17:03:16 +1100, a ecrit:
> @@ -421,6 +414,9 @@ acpi_apic_parse_table(struct acpi_apic *apic)
>              acpi_apic_add_irq_override(irq_override_entry);
>              break;
>  
> +        default:
> +            /* FIXME: There is another unhandled case */
> +            break;
>          }
>  
>          /* Get next APIC entry. */

You don't actually want "default: break;", since that'll precisely bury
the fact that there are unhandled cases: you're telling the compiler
that all other cases don't need anything, and prevent it from emitting a
warning that not all values of the enum are handled. Here we don't have
an enum so it doesn't matter, but if anybody was to invent one, we would
miss the warning.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]