New (?) OpenAudio library error message

I am using IDE 2.1.1 under Win 10. I've been using the Teensy 4.1 with the Audio Hat from PJRC for several years now. However, I am getting a warning from the Open Audio library that I have not seen before. This just started to appear in the last 10 days or so. Looking at the library on Github, I see that it has not been changed for several months, which begs the question: "Why the new warning if the library source hasn't been changed in months?" Any ideas would be welcomed.

C:\Users\User\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\libraries\OpenAudio_ArduinoLibrary\output_spdif3_f32.cpp: In member function 'void AudioOutputSPDIF3_F32::begin()':
C:\Users\User\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\libraries\OpenAudio_ArduinoLibrary\output_spdif3_f32.cpp:77:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class audio_block_f32_t' with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
   77 |         memset(&block_silent, 0, sizeof(block_silent));
      |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\User\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\libraries\OpenAudio_ArduinoLibrary\output_spdif3_f32.h:27,
                 from C:\Users\User\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\libraries\OpenAudio_ArduinoLibrary\output_spdif3_f32.cpp:28:
C:\Users\User\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\libraries\OpenAudio_ArduinoLibrary\AudioStream_F32.h:34:7: note: 'class audio_block_f32_t' declared here
   34 | class audio_block_f32_t {
      |       ^~~~~~~~~~~~~~~~~

It's not an error, it's a warning:

warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class audio_block_f32_t' with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]

The way to find info for these messages is to google the control - given in square brackets at the end of the message (omit the leading '-'):

-Wclass-memaccess (C++ and Objective-C++ only)

More:

https://www.google.com/search?q=Wclass-memaccess

Hi awneil: Yes, I know it was a warning; otherwise I would not be able to run the application. And I did know about the additional info, as well. My real purpose was to see if others have received this warning and, if so, to prod the author of the library to fix the code. I don't like plowing around in someone else's library code, as that would not solve a problem that might be shared by others.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.