8

Every time a Segmentation fault is occuring because of a forgotten "return" or "break" I lose one week of life. Almost out of life right here.

Comments
  • 1
    Wow, you revived the undefined tag
  • 0
    That's why I write the "break" immediately after the case where it belongs and only then start to fill in code for the case.

    It's also why I crank up the warnings because GCC will warn on a non-empty case that doesn't have a fallthrough comment.

    Always use "-Wall -Wextra" and make sure your code compiles without any warnings because then you don't have to debug such shit manually.
  • 0
    @asgs undefined master race
Add Comment