Open jsrivaya opened 2 years ago
Unfortunately no-one has raised the issue before since 2017 when it was created.
To make the change you suggest now would be an interface change - application programs which used the header would have to change. I wouldn't want to do that without a major version update.
An alternative would be to change the union to a struct and remove the anonymous struct, but that would introduce a binary backward incompatiblity.
Describe the bug ISO C++ prohibits anonymous structs. There are anonymous struct definitions in MQTTProperties header
It can be fixed by giving it a type and name
It can be silent by using -fms-extensions flag, but this is probably not the right thing to do.
To Reproduce Take a library trace as outlined in the README, and/or have a program or describe the steps to reproduce the behavior: Build your application source using -Werror=pedantic
Expected behavior I would expect ISO C++ and avoid this Warnings which can be errors for some of us
Screenshots If applicable, add screenshots to help explain your problem.
Log files Please try to attach log files rather than pasting the log contents. It makes the issues easier to read.
Environment (please complete the following information):
Additional context Add any other context about the problem here.