Render96 / Render96ex

Fork of https://github.com/sm64-port/sm64-port with additional features.
239 stars 43 forks source link

Fix previous implicit declaration #33

Closed sgiraudot closed 2 years ago

sgiraudot commented 3 years ago

I run into some errors while trying to compile on Linux Mint 20:

src/game/behaviors/got_milk.inc.c:85:6: error: conflicting types for 'bhv_milk_end'
void bhv_milk_end() {
     ^
src/game/behaviors/got_milk.inc.c:77:9: note: previous implicit declaration is here
        bhv_milk_end();

And 2 similar errors on other files.

I fixed them by moving the functions before they were called so there are no implicit declarations, and I now manage to compile without errors. I'm not sure why I'm getting these errors while others don't (as I doubt I am the first one to compile that on Linux), but in case someone else might run into the same problem, I figured I might as well do a pull request.