Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blink application with -Wpedantic flag produces myriad warnings #249

Open
zfields opened this issue Jan 25, 2024 · 3 comments
Open

Blink application with -Wpedantic flag produces myriad warnings #249

zfields opened this issue Jan 25, 2024 · 3 comments
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@zfields
Copy link

zfields commented Jan 25, 2024

I added -Wpedantic to the platform.txt file, and there are too many warnings to paste in this issue.

These should be addressed to ensure the stability of the platform.

FQBN: arduino:renesas_portenta:portenta_c33
Using board 'portenta_c33' from platform in folder: /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5
Using core 'arduino' from platform in folder: /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5

Detecting libraries used...
...
Generating function prototypes...
...
Compiling sketch...
...
Compiling libraries...
Compiling core...
...
/home/zak/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -Wextra -Wpedantic -Og -g3 -fno-use-cxa-atexit -fno-rtti -fno-exceptions -MMD -nostdlib -DF_CPU=200000000 -MMD -std=gnu++17 -mcpu=cortex-m33 -mfloat-abi=hard -mfpu=fpv5-sp-d16 -fsigned-char -ffunction-sections -fdata-sections -fmessage-length=0 -fno-builtin -DARDUINO=10607 "-DPROJECT_NAME=\"/tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA/BlinkDebug.ino\"" -DARDUINO_PORTENTA_C33 -DARDUINO_ARCH_RENESAS_PORTENTA -DARDUINO_ARCH_RENESAS -DARDUINO_FSP -D_XOPEN_SOURCE=700 -mthumb @/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/defines.txt -DLWIP_DNS=1 -DCFG_TUSB_MCU=OPT_MCU_RAXXX -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/deprecated -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/deprecated-avr-comp -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33 -iprefix/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5 @/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/includes.txt /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/variant.cpp -o /tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA/core/variant.cpp.o
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/includes/ra/fsp/inc/instances/r_lpm.h:34:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/includes/ra_gen/hal_data.h:30,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/tmp_gen_c_files/main.c:2:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/includes/ra/fsp/inc/api/r_lpm_api.h:97:41: warning: ISO C restricts enumerator values to range of 'int' [-Wpedantic]
     LPM_SNOOZE_REQUEST_AGT3_UNDERFLOW = 0x100000000ULL, ///< Enable AGT3 underflow snooze request
                                         ^~~~~~~~~~~~~~
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/includes/ra/fsp/inc/api/r_lpm_api.h:98:41: warning: ISO C restricts enumerator values to range of 'int' [-Wpedantic]
     LPM_SNOOZE_REQUEST_AGT3_COMPARE_A = 0x200000000ULL, ///< Enable AGT3 compare match A snooze request
                                         ^~~~~~~~~~~~~~
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/includes/ra/fsp/inc/api/r_lpm_api.h:99:41: warning: ISO C restricts enumerator values to range of 'int' [-Wpedantic]
     LPM_SNOOZE_REQUEST_AGT3_COMPARE_B = 0x400000000ULL, ///< Enable AGT3 compare match B snooze request
                                         ^~~~~~~~~~~~~~
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/includes/ra/fsp/inc/api/r_lpm_api.h:184:39: warning: ISO C restricts enumerator values to range of 'int' [-Wpedantic]
     LPM_STANDBY_WAKE_SOURCE_IIC0    = 0x80000000ULL,  ///< I2C 0 interrupt
                                       ^~~~~~~~~~~~~
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/includes/ra/fsp/inc/api/r_lpm_api.h:185:39: warning: ISO C restricts enumerator values to range of 'int' [-Wpedantic]
     LPM_STANDBY_WAKE_SOURCE_AGT3UD  = 0x100000000ULL, ///< AGT3 underflow interrupt
                                       ^~~~~~~~~~~~~~
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/includes/ra/fsp/inc/api/r_lpm_api.h:186:39: warning: ISO C restricts enumerator values to range of 'int' [-Wpedantic]
     LPM_STANDBY_WAKE_SOURCE_AGT3CA  = 0x200000000ULL, ///< AGT3 compare match A interrupt
                                       ^~~~~~~~~~~~~~
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/includes/ra/fsp/inc/api/r_lpm_api.h:187:39: warning: ISO C restricts enumerator values to range of 'int' [-Wpedantic]
     LPM_STANDBY_WAKE_SOURCE_AGT3CB  = 0x400000000ULL, ///< AGT3 compare match B interrupt
                                       ^~~~~~~~~~~~~~
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/PluggableUSB.h:23:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:33,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/variant.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/USBAPI.h:38:5: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
     };
     ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:54:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/variant.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:8:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:12:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:16:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/variant.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/usb/SerialUSB.h:77:2: warning: extra ';' [-Wpedantic]
 };
  ^
...
/home/zak/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-gcc -c -Wall -Wextra -Wpedantic -Og -g3 -nostdlib -DF_CPU=200000000 -MMD -std=gnu11 -mcpu=cortex-m33 -mfloat-abi=hard -mfpu=fpv5-sp-d16 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fmessage-length=0 -fno-builtin -DARDUINO=10607 -DARDUINO_PORTENTA_C33 -DARDUINO_ARCH_RENESAS_PORTENTA -DARDUINO_ARCH_RENESAS -DARDUINO_FSP -D_XOPEN_SOURCE=700 -mthumb @/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/defines.txt -DLWIP_DNS=1 -DCFG_TUSB_MCU=OPT_MCU_RAXXX -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/deprecated -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/deprecated-avr-comp -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33 -iprefix/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5 @/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/includes.txt -o /tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA/core/cortex_handlers.c.o /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/cortex_handlers.c
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/PluggableUSB.cpp:20:0:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/USBAPI.h:38:5: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
     };
     ^
...
/home/zak/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-gcc -c -Wall -Wextra -Wpedantic -Og -g3 -nostdlib -DF_CPU=200000000 -MMD -std=gnu11 -mcpu=cortex-m33 -mfloat-abi=hard -mfpu=fpv5-sp-d16 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fmessage-length=0 -fno-builtin -DARDUINO=10607 -DARDUINO_PORTENTA_C33 -DARDUINO_ARCH_RENESAS_PORTENTA -DARDUINO_ARCH_RENESAS -DARDUINO_FSP -D_XOPEN_SOURCE=700 -mthumb @/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/defines.txt -DLWIP_DNS=1 -DCFG_TUSB_MCU=OPT_MCU_RAXXX -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/deprecated -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/deprecated-avr-comp -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33 -iprefix/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5 @/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/includes.txt -o /tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA/core/itoa.c.o /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/itoa.c
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/cm_backtrace/cm_backtrace.c: In function 'cm_backtrace_init':
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/cm_backtrace/cm_backtrace.c:144:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     fw_name = firmware_name;
             ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/cm_backtrace/cm_backtrace.c:145:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     hw_ver = hardware_ver;
            ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/cm_backtrace/cm_backtrace.c:146:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     sw_ver = software_ver;
            ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/cm_backtrace/cmb_def.h:32:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/cm_backtrace/cm_backtrace.h:32,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/cm_backtrace/cm_backtrace.c:29:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/cm_backtrace/cm_backtrace.c: In function 'cm_backtrace_assert':
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/cm_backtrace/cmb_def.h:300:57: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     cmb_println("(%s) has assert failed at %s.", #EXPR, __FUNCTION__);         \
                                                         ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/cm_backtrace/cmb_cfg.h:33:47: note: in definition of macro 'cmb_println'
 #define cmb_println(...)               printf(__VA_ARGS__);printf("\r\n")
                                               ^~~~~~~~~~~
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/cm_backtrace/cm_backtrace.c:394:5: note: in expansion of macro 'CMB_ASSERT'
     CMB_ASSERT(init_ok);
     ^~~~~~~~~~
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/cm_backtrace/cm_backtrace.c: In function 'cm_backtrace_fault':
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/cm_backtrace/cmb_def.h:300:57: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     cmb_println("(%s) has assert failed at %s.", #EXPR, __FUNCTION__);         \
                                                         ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/cm_backtrace/cmb_cfg.h:33:47: note: in definition of macro 'cmb_println'
 #define cmb_println(...)               printf(__VA_ARGS__);printf("\r\n")
                                               ^~~~~~~~~~~
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/cm_backtrace/cm_backtrace.c:581:5: note: in expansion of macro 'CMB_ASSERT'
     CMB_ASSERT(init_ok);
     ^~~~~~~~~~
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/cm_backtrace/cmb_def.h:300:57: warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
     cmb_println("(%s) has assert failed at %s.", #EXPR, __FUNCTION__);         \
                                                         ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/cm_backtrace/cmb_cfg.h:33:47: note: in definition of macro 'cmb_println'
 #define cmb_println(...)               printf(__VA_ARGS__);printf("\r\n")
                                               ^~~~~~~~~~~
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/cm_backtrace/cm_backtrace.c:583:5: note: in expansion of macro 'CMB_ASSERT'
     CMB_ASSERT(!on_fault);
     ^~~~~~~~~~
...
/home/zak/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-gcc -c -Wall -Wextra -Wpedantic -Og -g3 -nostdlib -DF_CPU=200000000 -MMD -std=gnu11 -mcpu=cortex-m33 -mfloat-abi=hard -mfpu=fpv5-sp-d16 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fmessage-length=0 -fno-builtin -DARDUINO=10607 -DARDUINO_PORTENTA_C33 -DARDUINO_ARCH_RENESAS_PORTENTA -DARDUINO_ARCH_RENESAS -DARDUINO_FSP -D_XOPEN_SOURCE=700 -mthumb @/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/defines.txt -DLWIP_DNS=1 -DCFG_TUSB_MCU=OPT_MCU_RAXXX -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/deprecated -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/deprecated-avr-comp -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33 -iprefix/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5 @/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/includes.txt -o /tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA/core/tinyusb/class/msc/msc_host.c.o /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/class/msc/msc_host.c
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/device/usbd.h:30:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/class/hid/hid_device.c:34:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/common/tusb_common.h:55:31: warning: ISO C restricts enumerator values to range of 'int' [-Wpedantic]
 #define TU_BIT(n)             (1UL << (n))
                               ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/class/hid/hid.h:241:23: note: in expansion of macro 'TU_BIT'
   GAMEPAD_BUTTON_31 = TU_BIT(31),
                       ^~~~~~
...
(add'l truncated errors)
...
/home/zak/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-gcc -c -Wall -Wextra -Wpedantic -Og -g3 -nostdlib -DF_CPU=200000000 -MMD -std=gnu11 -mcpu=cortex-m33 -mfloat-abi=hard -mfpu=fpv5-sp-d16 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fmessage-length=0 -fno-builtin -DARDUINO=10607 -DARDUINO_PORTENTA_C33 -DARDUINO_ARCH_RENESAS_PORTENTA -DARDUINO_ARCH_RENESAS -DARDUINO_FSP -D_XOPEN_SOURCE=700 -mthumb @/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/defines.txt -DLWIP_DNS=1 -DCFG_TUSB_MCU=OPT_MCU_RAXXX -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/deprecated -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/deprecated-avr-comp -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33 -iprefix/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5 @/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/includes.txt -o /tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA/core/tinyusb/common/tusb_fifo.c.o /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/common/tusb_fifo.c
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/PluggableUSB.h:23:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:33,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Serial.h:27,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/SerialObj1.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/USBAPI.h:38:5: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
     };
     ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:54:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Serial.h:27,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/SerialObj1.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:8:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:12:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:16:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Serial.h:27,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/SerialObj1.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/usb/SerialUSB.h:77:2: warning: extra ';' [-Wpedantic]
 };
  ^
...
/home/zak/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-gcc -c -Wall -Wextra -Wpedantic -Og -g3 -nostdlib -DF_CPU=200000000 -MMD -std=gnu11 -mcpu=cortex-m33 -mfloat-abi=hard -mfpu=fpv5-sp-d16 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fmessage-length=0 -fno-builtin -DARDUINO=10607 -DARDUINO_PORTENTA_C33 -DARDUINO_ARCH_RENESAS_PORTENTA -DARDUINO_ARCH_RENESAS -DARDUINO_FSP -D_XOPEN_SOURCE=700 -mthumb @/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/defines.txt -DLWIP_DNS=1 -DCFG_TUSB_MCU=OPT_MCU_RAXXX -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/deprecated -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/deprecated-avr-comp -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33 -iprefix/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5 @/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/includes.txt -o /tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA/core/tinyusb/host/usbh.c.o /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/host/usbh.c
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/PluggableUSB.h:23:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:33,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/main.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/USBAPI.h:38:5: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
     };
     ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:54:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/main.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:8:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:12:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:16:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/main.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/usb/SerialUSB.h:77:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/device/dcd.h:30:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/device/usbd_control.c:31:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/common/tusb_common.h:55:31: warning: ISO C restricts enumerator values to range of 'int' [-Wpedantic]
 #define TU_BIT(n)             (1UL << (n))
                               ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/class/hid/hid.h:241:23: note: in expansion of macro 'TU_BIT'
   GAMEPAD_BUTTON_31 = TU_BIT(31),
                       ^~~~~~
...
/home/zak/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-gcc -c -Wall -Wextra -Wpedantic -Og -g3 -nostdlib -DF_CPU=200000000 -MMD -std=gnu11 -mcpu=cortex-m33 -mfloat-abi=hard -mfpu=fpv5-sp-d16 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fmessage-length=0 -fno-builtin -DARDUINO=10607 -DARDUINO_PORTENTA_C33 -DARDUINO_ARCH_RENESAS_PORTENTA -DARDUINO_ARCH_RENESAS -DARDUINO_FSP -D_XOPEN_SOURCE=700 -mthumb @/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/defines.txt -DLWIP_DNS=1 -DCFG_TUSB_MCU=OPT_MCU_RAXXX -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/deprecated -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/deprecated-avr-comp -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino -I/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33 -iprefix/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5 @/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/includes.txt -o /tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA/core/vector_table.c.o /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/vector_table.c
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/PluggableUSB.h:23:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:33,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Serial.cpp:23:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/USBAPI.h:38:5: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
     };
     ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:54:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Serial.cpp:23:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:8:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:12:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:16:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Serial.cpp:23:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/usb/SerialUSB.h:77:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/PluggableUSB.h:23:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:33,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/pulse.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/USBAPI.h:38:5: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
     };
     ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:54:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/pulse.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:8:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:12:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:16:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/pulse.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/usb/SerialUSB.h:77:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/PluggableUSB.h:23:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:33,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Tone.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/USBAPI.h:38:5: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
     };
     ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:54:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Tone.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:8:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:12:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:16:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Tone.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/usb/SerialUSB.h:77:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Tone.cpp:90:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Tone.cpp:98:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/PluggableUSB.h:23:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:33,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Serial.h:27,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/SerialObj2.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/USBAPI.h:38:5: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
     };
     ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:54:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Serial.h:27,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/SerialObj2.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:8:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:12:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:16:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Serial.h:27,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/SerialObj2.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/usb/SerialUSB.h:77:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/device/dcd.h:30:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/device/usbd.c:31:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/common/tusb_common.h:55:31: warning: ISO C restricts enumerator values to range of 'int' [-Wpedantic]
 #define TU_BIT(n)             (1UL << (n))
                               ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/class/hid/hid.h:241:23: note: in expansion of macro 'TU_BIT'
   GAMEPAD_BUTTON_31 = TU_BIT(31),
                       ^~~~~~
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/PluggableUSB.h:23:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:33,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/digital.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/USBAPI.h:38:5: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
     };
     ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:54:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/digital.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:8:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:12:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:16:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/digital.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/usb/SerialUSB.h:77:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/PluggableUSB.h:23:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:33,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/pinDefinitions.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/USBAPI.h:38:5: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
     };
     ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:54:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/pinDefinitions.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:8:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:12:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:16:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/pinDefinitions.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/usb/SerialUSB.h:77:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/PluggableUSB.h:23:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:33,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/dac.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/dac.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/USBAPI.h:38:5: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
     };
     ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:54:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/dac.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/dac.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:8:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:12:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:16:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/dac.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/dac.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/usb/SerialUSB.h:77:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/PluggableUSB.h:23:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:33,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/pwm.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/USBAPI.h:38:5: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
     };
     ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:54:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/pwm.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:8:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:12:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:16:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/pwm.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/usb/SerialUSB.h:77:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/tusb.h:37:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/tusb.c:31:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/common/tusb_common.h:55:31: warning: ISO C restricts enumerator values to range of 'int' [-Wpedantic]
 #define TU_BIT(n)             (1UL << (n))
                               ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/class/hid/hid.h:241:23: note: in expansion of macro 'TU_BIT'
   GAMEPAD_BUTTON_31 = TU_BIT(31),
                       ^~~~~~
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/PluggableUSB.h:23:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:33,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Interrupts.cpp:19:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/USBAPI.h:38:5: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
     };
     ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:54:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Interrupts.cpp:19:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:8:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:12:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:16:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Interrupts.cpp:19:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/usb/SerialUSB.h:77:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Interrupts.cpp: In function 'int pin2IrqChannel(int)':
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Interrupts.cpp:78:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if(pin < 0 || pin >= PINS_COUNT) {
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/PluggableUSB.h:23:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:33,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/analog.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/IRQManager.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/IRQManager.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/USBAPI.h:38:5: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
     };
     ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:54:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/analog.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/IRQManager.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/IRQManager.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:8:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:12:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:16:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/analog.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/IRQManager.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/IRQManager.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/usb/SerialUSB.h:77:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/IRQManager.cpp: In member function 'bool IRQManager::addPeripheral(Peripheral_t, void*)':
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/IRQManager.cpp:345:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (irqcfg->first_irq_number != FSP_INVALID_VECTOR) {
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/IRQManager.cpp:408:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (irqcfg->first_irq_number != FSP_INVALID_VECTOR) {
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/IRQManager.cpp: In member function 'void IRQManager::set_can_error_link_event(int, int)':
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/IRQManager.cpp:1632:47: warning: unused parameter 'li' [-Wunused-parameter]
 void IRQManager::set_can_error_link_event(int li, int ch)
                                               ^~
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/IRQManager.cpp:1632:55: warning: unused parameter 'ch' [-Wunused-parameter]
 void IRQManager::set_can_error_link_event(int li, int ch)
                                                       ^~
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/IRQManager.cpp: In member function 'void IRQManager::set_can_rx_link_event(int, int)':
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/IRQManager.cpp:1642:44: warning: unused parameter 'li' [-Wunused-parameter]
 void IRQManager::set_can_rx_link_event(int li, int ch)
                                            ^~
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/IRQManager.cpp:1642:52: warning: unused parameter 'ch' [-Wunused-parameter]
 void IRQManager::set_can_rx_link_event(int li, int ch)
                                                    ^~
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/IRQManager.cpp: In member function 'void IRQManager::set_can_tx_link_event(int, int)':
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/IRQManager.cpp:1652:44: warning: unused parameter 'li' [-Wunused-parameter]
 void IRQManager::set_can_tx_link_event(int li, int ch)
                                            ^~
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/IRQManager.cpp:1652:52: warning: unused parameter 'ch' [-Wunused-parameter]
 void IRQManager::set_can_tx_link_event(int li, int ch)
                                                    ^~
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/PluggableUSB.h:23:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:33,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/analog.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/USBAPI.h:38:5: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
     };
     ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:54:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/analog.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:8:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:12:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:16:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/analog.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/usb/SerialUSB.h:77:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/analog.cpp:63:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/analog.cpp:561:14: warning: 'aref' defined but not used [-Wunused-variable]
 static float aref = 0;
              ^~~~
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/PluggableUSB.h:23:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:33,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/FspTimer.h:3,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/FspTimer.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/USBAPI.h:38:5: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
     };
     ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:54:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/FspTimer.h:3,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/FspTimer.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:8:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:12:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:16:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/FspTimer.h:3,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/FspTimer.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/usb/SerialUSB.h:77:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/host/hcd.h:30:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/host/usbh.c:31:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/common/tusb_common.h:55:31: warning: ISO C restricts enumerator values to range of 'int' [-Wpedantic]
 #define TU_BIT(n)             (1UL << (n))
                               ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/class/hid/hid.h:241:23: note: in expansion of macro 'TU_BIT'
   GAMEPAD_BUTTON_31 = TU_BIT(31),
                       ^~~~~~
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/rusb2/dcd_rusb2.c: In function 'wait_pipe_fifo_empty':
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/rusb2/dcd_rusb2.c:289:3: warning: 'return' with a value, in function returning void
   TU_ASSERT(num);
   ^~~~~~~~~
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/tinyusb/rusb2/dcd_rusb2.c:288:13: note: declared here
 static void wait_pipe_fifo_empty(rusb2_reg_t* rusb, uint8_t num) {
             ^~~~~~~~~~~~~~~~~~~~
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/PluggableUSB.h:23:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:33,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/time.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/USBAPI.h:38:5: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
     };
     ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:54:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/time.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:8:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:12:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:16:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/time.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/usb/SerialUSB.h:77:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/PluggableUSB.h:23:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:33,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/shift.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/USBAPI.h:38:5: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
     };
     ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:54:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/shift.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:8:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:12:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:16:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/shift.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/usb/SerialUSB.h:77:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/PluggableUSB.h:23:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:33,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/variant_helper.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/USBAPI.h:38:5: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
     };
     ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/ArduinoAPI.h:54:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:4,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/variant_helper.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:8:2: warning: extra ';' [-Wpedantic]
 };
  ^
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/api/Compat.h:12:2: warning: extra ';' [-Wpedantic]
 };
  ^
In file included from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/Arduino.h:16:0,
                 from /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/variant_helper.cpp:1:
/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/cores/arduino/usb/SerialUSB.h:77:2: warning: extra ';' [-Wpedantic]
 };
  ^
(add'l truncated errors)
...
Archiving built core (caching) in: /tmp/arduino/cores/arduino_renesas_portenta_portenta_c33_900317c43c2d112a1e3b9c135e50b3a9/core.a
Linking everything together...
/home/zak/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -Wl,--gc-sections --specs=nosys.specs -Wall -Wextra -Wpedantic -mcpu=cortex-m33 -mfloat-abi=hard -mfpu=fpv5-sp-d16 -o /tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA/BlinkDebug.ino.elf -L/tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA -L/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33 -T/home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/fsp.ld /tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA/sketch/BlinkDebug.ino.cpp.o /tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA/core/tmp_gen_c_files/common_data.c.o /tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA/core/tmp_gen_c_files/main.c.o /tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA/core/tmp_gen_c_files/pin_data.c.o /tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA/core/variant.cpp.o -Wl,--whole-archive -Wl,--start-group /home/zak/.arduino15/packages/arduino/hardware/renesas_portenta/1.0.5/variants/PORTENTA_C33/libs/libfsp.a /tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA/core/core.a -Wl,--no-whole-archive -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -Wl,--end-group -Wl,-Map,/tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA/BlinkDebug.ino.map
/home/zak/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-objcopy -O binary -j .text -j .data /tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA/BlinkDebug.ino.elf /tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA/BlinkDebug.ino.bin
/home/zak/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-objcopy -O ihex -j .text -j .data /tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA/BlinkDebug.ino.elf /tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA/BlinkDebug.ino.hex

/home/zak/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-size -A /tmp/arduino/sketches/6E18701710D06A6EAAFD2F664971D8EA/BlinkDebug.ino.elf
Sketch uses 103852 bytes (4%) of program storage space. Maximum is 2097152 bytes.
Global variables use 20736 bytes (3%) of dynamic memory, leaving 502888 bytes for local variables. Maximum is 523624 bytes.
@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Jan 25, 2024
@aentinger
Copy link
Contributor

Well, in such a large application consisting of quite some 3rd party code this is a bit of a pointless exercise. If you take a look at the error messages you'll see that quite some originate i.e. from the Renesas FSP layer. They would have to be fixed there first. As for -Wpedantic errors originating from code under our control please feel free to provide a PR to address them. Just understand that if you enable -Wpedantic -Werror there will very likely always be failing code pieces due to 3rd party software.

@zfields
Copy link
Author

zfields commented Jan 26, 2024

I'm not trying to point the finger at anyone, or make "pedantic" warnings seem super important. Furthermore, I fully understand that -Wpedantic is an extreme configuration, and I understand many of them have to do with third-party code. That being said, it's is still worth cleaning up the things that can be cleaned, and may be under the scope of your control.

I'm more than happy to contribute and I will try to create PRs as I can 👍, but to provide completely candid feedback -- my urge is to switch platforms entirely. I offer this only to say, when other people see such a significant amount of warnings generated, they may have a similar reaction.

Now that I know you are open to it, I will try to send PRs your way.

@aentinger
Copy link
Contributor

Now that I know you are open to it, I will try to send PRs your way.

Absolutely. Looking forward to getting those PRs 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

3 participants