eez-open / eez-framework

Library for EEZ Flow and EEZ-GUI
MIT License
18 stars 10 forks source link

Compiler error on new warning fix #14

Closed fietser28 closed 1 week ago

fietser28 commented 1 week ago

With the latest commit getting getting the the following compile errors:

image

Using:

mvladic commented 1 week ago

Can you try the following?

#if __GNUC__ && defined( __has_warning )
#   if __has_warning( "-Wdangling-pointer" )
#       define SUPPRESSING
#       pragma GCC diagnostic push
#       pragma GCC diagnostic ignored "-Wdangling-pointer"
#   endif
#endif

...

#ifdef SUPPRESSING
#   undef SUPPRESSING
#   pragma GCC diagnostic pop
#endif
fietser28 commented 1 week ago

Works, no warnings or errors.

image

mvladic commented 1 week ago

Fixed.