We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The code sections (in span and util)
// Turn off clang unsafe buffer warnings as all accessed are guarded by runtime checks #if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage") #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunsafe-buffer-usage" #endif // defined(__clang__) && __has_warning("-Wunsafe-buffer-usage")
and (similarly)
#if defined(__clang__) && __has_warning("-Wunsafe-buffer-usage") #pragma clang diagnostic pop #endif
fails when compiling with a GCC-based compiler (the STM compiler for an STM32 microcontroller in this case). The generated error is:
missing binary operator before token "("
I solved this by separating the checks:
// Turn off clang unsafe buffer warnings as all accessed are guarded by runtime checks #if defined(__clang__) # if __has_warning("-Wunsafe-buffer-usage") # pragma clang diagnostic push # pragma clang diagnostic ignored "-Wunsafe-buffer-usage" # endif // __has_warning("-Wunsafe-buffer-usage") #endif // defined(__clang__)
There are 4 points that need to be modified:
Thanks for your attention
The text was updated successfully, but these errors were encountered:
Fix gcc build problem
aa4fd1f
Closes issue microsoft#1148 by fixing problems introduced in PR microsoft#1140.
I am having the same issue, it even shows up now in godbolt:
https://godbolt.org/z/cEb1481Yd
The last commit that works for me with gcc is caae4dd.
caae4dd
I also can confirm that the pull request from @beinhaerter fixes the issue for me
Sorry, something went wrong.
Confirmed to be working for me as well.
344ec5c
No branches or pull requests
The code sections (in span and util)
and (similarly)
fails when compiling with a GCC-based compiler (the STM compiler for an STM32 microcontroller in this case).
The generated error is:
missing binary operator before token "("
I solved this by separating the checks:
There are 4 points that need to be modified:
Thanks for your attention
The text was updated successfully, but these errors were encountered: