cmake: fix build by reordering the cflags definitions
authorPetr Štetiar <ynezz@true.cz>
Wed, 29 Mar 2023 07:29:54 +0000 (09:29 +0200)
committerPetr Štetiar <ynezz@true.cz>
Wed, 31 May 2023 16:42:59 +0000 (18:42 +0200)
commit9d68f398635cc18b83c5b30927e916532bbe535d
tree4f8a159cff060074b513cc4486cae5b30d5c6470
parent1fe1d4f5e8c2e235a1ab4e0df8baa734142fe994
cmake: fix build by reordering the cflags definitions

I've noticed bunch of build errors being emitted by clang-15/gcc-10:

 netifd.h:83:33: error: unused parameter 'level' [-Werror,-Wunused-parameter]

and it seems, that the order of definitions matters as -Wextra probably
enables previously disabled warnings like -Wno-unused-parameter.

So lets fix it, by reordering the cflags definitions.

Fixes: 463a1207f076 ("netifd: Activate -Wextra compile warnings")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
CMakeLists.txt