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

freelocale redeclaration problem #2744

Closed
seanbaxter opened this issue Feb 3, 2022 · 1 comment
Closed

freelocale redeclaration problem #2744

seanbaxter opened this issue Feb 3, 2022 · 1 comment

Comments

@seanbaxter
Copy link

FreeLocaleResult freelocale(locale_type locale) FMT_LOCALE_THROW {

error: /home/sean/projects/fmt/test/posix-mock-test.cc:507:18
cannot overload void freelocale(__locale_struct*) noexcept on noexcept-specifier
  previous declaration at /usr/include/locale.h:180:13
FreeLocaleResult freelocale(locale_type locale) FMT_LOCALE_THROW { 
                 ^

In /usr/include/locale.h it's defined as:

extern void freelocale (locale_t __dataset) __THROW;

I don't know how to make this right on Circle given the current __THROW definition:

#  if defined(__THROW) && \
      ((FMT_GCC_VERSION > 0 && FMT_GCC_VERSION <= 408) || defined(__e2k__))
#    define FMT_LOCALE_THROW __THROW
#  else
#    define FMT_LOCALE_THROW
#  endif
@vitaut
Copy link
Contributor

vitaut commented Feb 5, 2022

It is some old experimental code that we no longer need, removed in afbcf1e.

@vitaut vitaut closed this as completed Feb 5, 2022
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