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

Please correct FMT_LOCALE_THROW for Elbrus architecture. #2252

Closed
ilyakurdyukov opened this issue Apr 24, 2021 · 0 comments
Closed

Please correct FMT_LOCALE_THROW for Elbrus architecture. #2252

ilyakurdyukov opened this issue Apr 24, 2021 · 0 comments

Comments

@ilyakurdyukov
Copy link
Contributor

ilyakurdyukov commented Apr 24, 2021

Warning at posix-mock-test, you need to add __THROW for Elbrus.

[ 19%] Building CXX object test/CMakeFiles/test-main.dir/gtest-extra.cc.o
lcc: "fmt-master/test/posix-mock-test.cc", line 506: warning #541:
          allowing all exceptions is incompatible with previous function
          "freelocale" (declared at line 180 of "/usr/include/locale.h")
  FreeLocaleResult freelocale(locale_type locale) FMT_LOCALE_THROW {

lcc: "fmt-master/test/posix-mock-test.cc", line 512: warning #541:
          allowing all exceptions is incompatible with previous function
          "strtod_l" (declared at line 295 of "/usr/include/stdlib.h")
                  locale_type locale) FMT_LOCALE_THROW {

This works for me to suppress this warning (you might do it differently):

test/posix-mock-test.cc

-#  if defined(__THROW) && FMT_GCC_VERSION > 0 && FMT_GCC_VERSION <= 408
+#  if defined(__THROW) && ((FMT_GCC_VERSION > 0 && FMT_GCC_VERSION <= 408) || defined (__e2k__))

The Elbrus compiler declares GNUC version as 7.3.0.

@vitaut vitaut closed this as completed Apr 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants