2 ms·
Instead of -Wextra and -Wall , use a (long) list of specified warnings. This way you won't be bitten by changes in the defaults by different compiler versions.
by actionfromafar 3y ago
Instead of -Wextra and -Wall , use a (long) list of specified warnings. This way you won't be bitten by changes in the defaults by different compiler versions.
Also, for clang, make use of the static analyzer.
https://clang-analyzer.llvm.org/ https://clang-analyzer.llvm.org/
If you really mean to use the PS1 devkit, it probably uses a very old compiler. Make sure to compile your core code wit it. (It doesn't have to be the full game, or even really run on the PS1.)
If you have written a large chunk of code and only then try to compile on the old compiler, you may be in for a lot of tiny surprises. If you use plain C, this problem will be smaller than if you use C++.
C has changed just a little since the PS1 times. Modern C++ examples is another language altogether.