Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hacking_again
on Oct 5, 2017
|
parent
|
context
|
favorite
| on:
Useful GCC warning options not enabled by -Wall -W...
> What if you just don't have meaningful things to do for that enum value?
Then you use:
default: break;
It's a small price to pay for the consistency checks elsewhere when you don't have a default.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Then you use:
It's a small price to pay for the consistency checks elsewhere when you don't have a default.