Skip to content

Commit

Permalink
Fix warning in C code:
Browse files Browse the repository at this point in the history
This fixes the following warning:

```
stepping.c: In function ‘main’:
stepping.c:8:35: warning: implicit declaration of function ‘getFromElsewhere’ [-Wimplicit-function-declaration]
    8 |         int gottenFromElsewhere = getFromElsewhere(knownLocally); // main getFromElsewhere call
      |                                   ^~~~~~~~~~~~~~~~
```
  • Loading branch information
jonahgraham committed Nov 3, 2023
1 parent 8e964ea commit 510fcf7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/integration-tests/test-programs/stepping.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <stdio.h>

extern int getFromElsewhere(int start);

int main (int argc, char *argv[]) {
char knownLocally = 10;
int i;
Expand Down

0 comments on commit 510fcf7

Please sign in to comment.