Compilation was breaking using -std="c2x" because functions have been defined with implicit parameters, i.e. void foo();, and then defined as void foo(int bar), etc. Compiling on C18 works. Function declarations should be moved over to use function prototypes instead of implicit parameter declaration (obsolete since ANSI C was released in 1978).
Compilation was breaking using
-std="c2x"
because functions have been defined with implicit parameters, i.e.void foo();
, and then defined asvoid foo(int bar)
, etc. Compiling on C18 works. Function declarations should be moved over to use function prototypes instead of implicit parameter declaration (obsolete since ANSI C was released in 1978).