While it is good practice to always have a default: in switch, I believe this is a case where it is not.
Do not provide a default switch so that the default return statement is always false.
This prevents having to return f_unknown at the end of the function as it is now possible to get to the end of the function.
case f_none_on_stop:
return f_true;
#endif // _di_f_errors_buffers_
-
- default:
- return f_false;
}
- return f_unknown;
+ return f_false;
}
#endif // _di_fl_errors_is_warning_
case f_greater_than:
return f_true;
#endif // _di_fl_errors_non_
-
- default:
- return f_false;
}
- return f_unknown;
+ return f_false;
}
#endif // _di_fl_errors_is_okay_
case f_none_on_stop:
return f_true;
#endif // _di_f_errors_buffers_
-
- default:
- return f_false;
}
- return f_unknown;
+ return f_false;
}
#endif // _di_fll_fss_errors_is_warning_
case f_greater_than:
return f_true;
#endif // _di_fll_fss_errors_non_
-
- default:
- return f_false;
}
- return f_unknown;
+ return f_false;
}
#endif // _di_fll_fss_errors_is_okay_