From 34fba6e21e58edbbba421c8802ce3ac075b4c9c7 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sun, 12 Nov 2023 23:55:50 +0100 Subject: [PATCH] Fix audio warning with Arduino core 3 (#20000) * silence warning Core 3 * Update add_c_flags_ard3.py * Update library.json --- pio-tools/add_c_flags_ard3.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pio-tools/add_c_flags_ard3.py b/pio-tools/add_c_flags_ard3.py index 2871ac5ce..3c9acc66a 100644 --- a/pio-tools/add_c_flags_ard3.py +++ b/pio-tools/add_c_flags_ard3.py @@ -2,3 +2,6 @@ Import("env") # General options that are passed to the C++ compiler env.Append(CXXFLAGS=["-Wno-volatile"]) + +# General options that are passed to the C compiler (C only; not C++). +env.Append(CFLAGS=["-Wno-incompatible-pointer-types"])