Closed caiopiccirillo closed 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 😄
main
We can take the advantage of compiler warning to educate ourselves. We can turn warnings into errors by doing something like:
With this, we'll break the current
main
branch because there's some warnings. But it's a good opportunity to improve 😄