cmake: use extra compiler warnings only on gcc6+ master
authorPetr Štetiar <ynezz@true.cz>
Tue, 12 Nov 2019 06:03:08 +0000 (07:03 +0100)
committerPetr Štetiar <ynezz@true.cz>
Thu, 14 Nov 2019 21:34:27 +0000 (22:34 +0100)
commit8f7fe925ca205c8e8e2d0d1b16218c1e148d5173
treeb1b0834dbba2453ff867018feb5d054544ebf580
parent9d9d4c2847862adec2f474d4126213c17f98e024
cmake: use extra compiler warnings only on gcc6+

gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) and -Wextra produces
following:

 fwtool.c:288:9: error: missing initializer for field 'cur' of 'struct data_buf' [-Werror=missing-field-initializers]
  struct data_buf dbuf = {};
         ^
 fwtool.c:37:8: note: 'cur' declared here
  char *cur;
        ^

Ref: https://github.com/openwrt/openwrt/commit/4ba8f7b1ef1e4c0607185a41c06b51928c625d8b#commitcomment-35906526
Ref: http://lists.infradead.org/pipermail/openwrt-devel/2019-November/020039.html
Signed-off-by: Petr Štetiar <ynezz@true.cz>
CMakeLists.txt