mirror of
https://github.com/autc04/Retro68.git
synced 2024-08-31 09:29:37 +00:00
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.
13 lines
138 B
C
13 lines
138 B
C
extern int variable;
|
|
#include <SegLoad.h>
|
|
void Foo(void)
|
|
{
|
|
variable *= 9;
|
|
}
|
|
|
|
void Bar(void)
|
|
{
|
|
variable /= 9;
|
|
variable *= 7;
|
|
}
|