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

MinGW warning: inline function declared as dllimport: attribute ignored [-Wattributes] #272

Closed
kmilos opened this issue Nov 8, 2022 · 0 comments · Fixed by #275
Closed
Labels
bug Something isn't working

Comments

@kmilos
Copy link

kmilos commented Nov 8, 2022

This is with GCC 12.2.0 on MSYS2 UCRT64/MINGW64/MINGW32:

  In file included from C:/_/mingw-w64-imath/src/Imath-3.1.6/src/python/PyImath/PyImathFixedArrayTraits.h:13,
                   from C:/_/mingw-w64-imath/src/Imath-3.1.6/src/python/PyImath/PyImathBufferProtocol.cpp:12:
  C:/_/mingw-w64-imath/src/Imath-3.1.6/src/Imath/half.h:623:37: warning: inline function 'constexpr uint16_t Imath_3_1::half::bits() const' declared as dllimport: attribute ignored [-Wattributes]
    623 |     IMATH_EXPORT constexpr uint16_t bits() const IMATH_NOEXCEPT;
        |                                     ^~~~
  C:/_/mingw-w64-imath/src/Imath-3.1.6/src/Imath/half.h:626:41: warning: inline function 'constexpr void Imath_3_1::half::setBits(uint16_t)' declared as dllimport: attribute ignored [-Wattributes]
    626 |     IMATH_EXPORT IMATH_CONSTEXPR14 void setBits (uint16_t bits) IMATH_NOEXCEPT;
        |                                         ^~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants