cmake: use extra compiler warnings only on gcc6+
authorPetr Štetiar <ynezz@true.cz>
Tue, 26 Nov 2019 07:32:57 +0000 (08:32 +0100)
committerPetr Štetiar <ynezz@true.cz>
Sun, 1 Dec 2019 11:26:41 +0000 (12:26 +0100)
commiteb216a952407cae6cb8c456e1178721d4e6b36da
tree7a5700d6e037bf9815940f83f34d2e8f01019c1a
parent07413cce72e19520af55dfcbc765484f5ab41dd9
cmake: use extra compiler warnings only on gcc6+

gcc version 4.8.4 (Ubuntu 14.04) and -Wextra produces following:

 json_script.c:124:3: error: missing initializer for field 'name' of 'struct blobmsg_policy' [-Werror=missing-field-initializers]

Reported-by: Jonas Gorski <jonas.gorski@gmail.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
CMakeLists.txt