From 7cf3943381f1660927e9a7eef5aef62e2aed441c Mon Sep 17 00:00:00 2001 From: Willian Galvani Date: Fri, 14 Aug 2026 15:36:17 -0300 Subject: [PATCH] waf: extend compiler warning suppression to include gcc 16.2 --- Tools/ardupilotwaf/boards.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index b9f4652a22d..b728233943e 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -481,10 +481,10 @@ class Board: env.CFLAGS += [ '-Werror=use-after-free', ] - if self.cc_version_gte(cfg, 14, 0) and self.cc_version_lte(cfg, 16, 1): + if self.cc_version_gte(cfg, 14, 0) and self.cc_version_lte(cfg, 16, 2): # the following warnings appear to be buggy in later compiler versions # https://github.com/ArduPilot/ardupilot/issues/33206 - # TODO: readdress following a 16.2+ release + # TODO: readdress following a 16.3+ release env.CXXFLAGS += [ '-Wno-error=maybe-uninitialized', '-Wno-error=format-truncation',