nesbox / TIC-80

TIC-80 is a fantasy computer for making, playing and sharing tiny games.
https://tic80.com
MIT License
4.93k stars 479 forks source link

C Compilation Warnings #1038

Open RobLoach opened 4 years ago

RobLoach commented 4 years ago

These don't have any negative impact on compilation, but it's always good to clean them up....

You can get them through compiling Lakka's TIC-80 core...

git clone https://github.com/libretro/Lakka-LibreELEC.git
cd Lakka-LibreELEC
./scripts/build tic80
nesbox commented 4 years ago

what compiler are you using here?

RobLoach commented 4 years ago

I think LibreELEC is using gcc behind the scenes on my machine, but you can get the warnings passed through cmake by adding...

add_definitions ("-Wall -Wextra")

https://gist.github.com/RobLoach/bbe7d0c3f6a6aca7315cbc20d873ca0f