This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] Fix _LIBCPP_NO_EXCEPTIONS redefined warning
ClosedPublic

Authored by jasonl220 on Jul 30 2018, 11:37 AM.

Details

Summary

Fix GCC 7.2.0 redefinition warning when LIBCXX_ENABLE_EXCEPTIONS cmake option is not set.

llvm/projects/libcxx/include/__config:514:0: warning: "_LIBCPP_NO_EXCEPTIONS" redefined
#define _LIBCPP_NO_EXCEPTIONS

<command-line>:0:0: note: this is the location of the previous definition

This warning fires every time __config is included, 33 in total.

Diff Detail

Event Timeline

jasonl220 created this revision.Jul 30 2018, 11:37 AM
mclow.lists accepted this revision.Jul 31 2018, 7:03 PM

I'm fine with this; it matches the pattern used on line #354 of this file. (which is in the 'clang' block).

We don't do anything like this for the IBM or MS compilers - yet.

This revision is now accepted and ready to land.Jul 31 2018, 7:03 PM

Can you commit this for me, I don't have access. Thanks

ldionne closed this revision.EditedAug 1 2018, 6:13 AM

Committed as r338531.