diff options
| author | Eric Fiselier <eric@efcs.ca> | 2015-07-18 20:40:46 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2015-07-18 20:40:46 +0000 |
| commit | 87a82490fc6b89fd3dfe033054e1bdc6b87fd9f4 (patch) | |
| tree | a46ba3cd7c970a70e9b3dd8c5c7cc40b7aada192 /libcxx/include/__std_stream | |
| parent | a1e0aa5020209dad9c03a4dfa704a138e9ce89b5 (diff) | |
| download | bcm5719-llvm-87a82490fc6b89fd3dfe033054e1bdc6b87fd9f4.tar.gz bcm5719-llvm-87a82490fc6b89fd3dfe033054e1bdc6b87fd9f4.zip | |
Enable and fix warnings during the build.
Although CMake adds warning flags, they are ignored in the libc++ headers
because the headers '#pragma system header' themselves.
This patch disables the system header pragma when building libc++ and fixes
the warnings that arose.
The warnings fixed were:
1. <memory> - anonymous structs are a GNU extension
2. <functional> - anonymous structs are a GNU extension.
3. <__hash_table> - Embedded preprocessor directives have undefined behavior.
4. <string> - Definition is missing noexcept from declaration.
5. <__std_stream> - Unused variable.
llvm-svn: 242623
Diffstat (limited to 'libcxx/include/__std_stream')
| -rw-r--r-- | libcxx/include/__std_stream | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libcxx/include/__std_stream b/libcxx/include/__std_stream index 5403adabc34..f867cd23bdd 100644 --- a/libcxx/include/__std_stream +++ b/libcxx/include/__std_stream @@ -276,7 +276,6 @@ __stdoutbuf<_CharT>::overflow(int_type __c) codecvt_base::result __r; char_type* pbase = &__1buf; char_type* pptr = pbase + 1; - char_type* epptr = pptr; do { const char_type* __e; |

