mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-27 07:31:35 +00:00
8f68ffd203
Specify parameters for all C functions. Not specifying parameters is the same as specifying "void" in C++ and in C23 and later but that's not the case in C prior to C23. Compile C files with the same warnings as C++ files, additionally making the strict prototypes warning an error to catch such problems in the future. This commit isn't intended to address all the other warnings now being emitted.
17 lines
207 B
C
17 lines
207 B
C
#include <FixMath.h>
|
|
#include "Test.h"
|
|
|
|
short calc(void)
|
|
{
|
|
return FixRound(FixRatio(42,5));
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
if(calc() == 8)
|
|
TEST_LOG_OK();
|
|
else
|
|
TEST_LOG_NO();
|
|
return 0;
|
|
}
|