When I compile @unity_fixture.c@ with gcc 4.4.3 and @-O0@, it compiles cleanly. However, when I compile it with @-O1@ or greater, I get the following warning:
gcc -IUnity/src -IUnity/extras/fixture/src -O1 -c Unity/extras/fixture/src/unity_fixture.c -o test/build/unity_fixture.o Unity/extras/fixture/src/unity_fixture.c: In function ‘unity_malloc’: Unity/extras/fixture/src/unity_fixture.c:202: warning: incompatible implicit declaration of built-in function ‘malloc'
@unity_fixture.c@ includes @@ before any reference to @malloc@, so I can't see why this would be happening, let alone only happening at some optimization levels.
It’s causing trouble for me because I’d like to use @-Werror@ on my builds.