Skip to content

Commit

Permalink
Fix undefined behaviour in C code problem
Browse files Browse the repository at this point in the history
Without the return, this code would core dump, depending
on compiler version. The compiler was generating a warning
too about the missing return.

Part of eclipse-cdt#816
  • Loading branch information
jonahgraham committed Dec 28, 2024
1 parent 908d854 commit 4238b89
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ int laterLineNotHitTest() {
int laterLineDifferentFileTest() {
int b = 0;
value(); // LATER_LINE_DIFFERENT_FILE_LINE
return 0;
}

int differentFileTest() {
Expand Down

0 comments on commit 4238b89

Please sign in to comment.