elementary / wingpanel-indicator-power

Wingpanel Power Indicator
GNU General Public License v3.0
26 stars 15 forks source link

Fix compiler warning #244

Closed lenemter closed 1 year ago

jeremypw commented 1 year ago

This works, but the more recommended solution when dealing with enums is to explicitly deal with all possible cases. You can then put assert_not_reached () or at least an explicit warning in the default section so any additions to the enum are flagged up.