in my last buildbot email I was essentially given this:
--- Testing category build --- ---> test compile Result: successful Additional info: Compilation successful
which is then immediately followed by a bunch of warnings which all look like this (note that there is no array called
someArray in my code; I changed the name of this array for this post, so I would not spoil anything):
src/wordle.c: In function classicalFeedback: src/wordle.c:155:14: warning: implicit declaration of function letterToIndex [-Wimplicit-function-declaration] 155 | someArray[letterToIndex(word[i])]++; | ^~~~~~~~~~~~~
And despite these warnings the buildbot reports:
Succesfully built binary bin/wordle_opt.
I do not get these errors (or any other error) if I run
make check on the VM. What is even stranger is that I pass all tests in the email even though the program should not be able to run if these functions were not defined.
The three functions that are affected (
meet) have their signatures defined in
util.h and are implemented in
util.c and of course I include
wordle.c so that the compiler and vscode are aware where they are defined.
What is the reason for these warnings?