The additional compiler flags were added for CI consistency.#13281
The additional compiler flags were added for CI consistency.#13281OleksiiZaderykhinCapgemini wants to merge 1 commit into
Conversation
…flags were added for GNUCC compiler also. So building errors on this CI check could be detected on ubuntu environment also.
bf60bd0 to
53b1441
Compare
Please, provide info where have you seen it.. |
|
|
||
| if(CMAKE_COMPILER_IS_GNUCC) | ||
| ie_add_compiler_flags(-Wno-all) | ||
| ie_add_compiler_flags(-Wno-all -Werror -Wundef -Wreturn-type -Wunused-variable -Wunused-value -Wswitch -Wformat -Wformat-security) |
There was a problem hiding this comment.
why not to just fix -Wall ?
There was a problem hiding this comment.
why not to just fix
-Wall?
With -Wall the project will not compile. There will be errors related to the -Werror=sign-compare and -Werror=reorder flags that are not set in other build configurations and CI checks.
Hi @ilya-lavrenov, I saw it while preparing the PR. I use Ubuntu 18.04 environment for development and have no build errors there, but there were errors on Here you could see these additional flags (see the second line). |
The build_macos_release CI check has additional compiler flags. These flags were added for the GNUCC compiler also. So building errors on this CI check could be detected on the ubuntu environment also.