Adafruit "getEvent()" error

I'm using the HMC5883 magnetic sensor. This sketch compiled, no problem, a year ago but now returns these two errors:

In file included from Z:\01-Arduino projects\Driveway\magsensor2\magsensor2.ino:18:0:
C:\Users\biz-1\OneDrive\Documents\Arduino\libraries\Adafruit_HMC5883_U-master/Adafruit_HMC5883_U.h:105:10: error: conflicting return type specified for 'virtual void Adafruit_HMC5883_Unified::getEvent(sensors_event_t*)'
     void getEvent(sensors_event_t*);
          ^~~~~~~~
In file included from Z:\01-Arduino projects\Driveway\magsensor2\magsensor2.ino:17:0:
C:\Users\biz-1\OneDrive\Documents\Arduino\libraries\Adafruit_Unified_Sensor/Adafruit_Sensor.h:180:16: error:   overriding 'virtual bool Adafruit_Sensor::getEvent(sensors_event_t*)'
   virtual bool getEvent(sensors_event_t *) = 0;
                ^~~~~~~~

It looks to me like this is in the Adafruit library code and I don't know how to resolve it. I'm using IDE 1.8.16. thanks.

You forgot to post it :joy:

Have you tried updating both libraries in the library manager?

Looks like a mismatch between the version of Adafruit_HMC5883_U-master and Adafruit_Unified_Sensor on which it depends. I'd go into Tools -> Manage Libraries... and see if there are updates available for either of those libraries.

Thanks. These libraries were downloaded a year ago (or more) and I believe they were the ones that worked at the time. I'll do an update and report back.
...
That did the trick. I had to go find all the stray libraries and delete these, then download and add the .zip libraries. I still get some C++ warnings, but the compile is OK.

Solved