diff options
author | Eric Fiselier <eric@efcs.ca> | 2015-10-01 07:05:38 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2015-10-01 07:05:38 +0000 |
commit | b4e2e7a2922229393d10a6de131f7f60e4ea0057 (patch) | |
tree | e98a1c68eb62049471c9d4df5ecfaa6338548dae /libcxx/test/support/disable_missing_braces_warning.h | |
parent | f74bb3b8b028904d3c05ba62c13c0c0d7ac329c6 (diff) | |
download | bcm5719-llvm-b4e2e7a2922229393d10a6de131f7f60e4ea0057.tar.gz bcm5719-llvm-b4e2e7a2922229393d10a6de131f7f60e4ea0057.zip |
Suppress array initialization warnings in std::experimental::apply tests
llvm-svn: 248987
Diffstat (limited to 'libcxx/test/support/disable_missing_braces_warning.h')
-rw-r--r-- | libcxx/test/support/disable_missing_braces_warning.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libcxx/test/support/disable_missing_braces_warning.h b/libcxx/test/support/disable_missing_braces_warning.h new file mode 100644 index 00000000000..967a87ab3a2 --- /dev/null +++ b/libcxx/test/support/disable_missing_braces_warning.h @@ -0,0 +1,8 @@ +#ifndef SUPPORT_DISABLE_MISSING_BRACES_WARNING_H +#define SUPPORT_DISABLE_MISSING_BRACES_WARNING_H + +// std::array is explicitly allowed to be initialized with A a = { init-list };. +// Disable the missing braces warning for this reason. +#pragma GCC diagnostic ignored "-Wmissing-braces" + +#endif // SUPPORT_DISABLE_MISSING_BRACES_WARNING_H |