mhulden / foma

Automatically exported from code.google.com/p/foma
117 stars 90 forks source link

Fix CMake build failing on std >c18, and add build files to gitignore #150

Closed scott-parkhill closed 11 months ago

scott-parkhill commented 1 year ago

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).

TinoDidriksen commented 12 months ago

Already filed as https://github.com/mhulden/foma/pull/148

TinoDidriksen commented 11 months ago

Er, what? I recommend rolling back and applying #148 instead, to future-proof the code.