Open-Source-Digital-Twin / furuta-pendulum-controller

MIT License
2 stars 1 forks source link

Enable all compiler warnings #6

Closed caiopiccirillo closed 1 year ago

caiopiccirillo commented 1 year ago

We can take the advantage of compiler warning to educate ourselves. We can turn warnings into errors by doing something like:

set(EXTRA_COMPILER_FLAGS -Wall -Wextra -Wpedantic -Werror)
target_compile_options(${NAME_OF_EXE_OR_LIB} PRIVATE ${EXTRA_COMPILER_FLAGS})

With this, we'll break the current main branch because there's some warnings. But it's a good opportunity to improve 😄