Skip to content

Commit c539742

Browse files
Disable ignored-qualifier warning in SDK (earlephilhower#238)
The Pico SDK has some magic with const pointers that generates lots of "ignored qualifer" warnings on the more pedantic modes. To clean the normal builds up, disable this warning for now. At some point a PR to the PICO-SDK may be indicated.
1 parent ebd2289 commit c539742

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ compiler.path={runtime.tools.pqt-gcc.path}/bin/
3535
compiler.warning_flags=-Werror=return-type
3636
compiler.warning_flags.none=-Werror=return-type
3737
compiler.warning_flags.default=-Werror=return-type
38-
compiler.warning_flags.more=-Wall -Werror=return-type
39-
compiler.warning_flags.all=-Wall -Wextra -Werror=return-type
38+
compiler.warning_flags.more=-Wall -Werror=return-type -Wno-ignored-qualifiers
39+
compiler.warning_flags.all=-Wall -Wextra -Werror=return-type -Wno-ignored-qualifiers
4040

4141
compiler.defines={build.led} {build.usbstack_flags} -DCFG_TUSB_MCU=OPT_MCU_RP2040 -DUSB_VID={build.vid} -DUSB_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'
4242
compiler.includes="-iprefix{runtime.platform.path}/" "@{runtime.platform.path}/lib/platform_inc.txt"

0 commit comments

Comments
 (0)