commit | a6115068cde719142eb394db88612c185cabd05b | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Thu May 24 00:47:05 2012 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Thu May 24 00:47:05 2012 +0000 |
tree | d3c190622f3f760f42ea9ae036c381eb9d8f3fe1 | |
parent | 587de5be6bc8b9d046015b20079d45ac4b98bc14 [diff] |
Add a warning to diagnose statements in C++ like "*(volatile int*)x;". Conceptually, this is part of -Wunused-value, but I added a separate flag -Wunused-volatile-lvalue so it doesn't get turned off by accident with -Wno-unused-value. I also made a few minor improvements to existing unused value warnings in the process. <rdar://problem/11516811>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157362 91177308-0d34-0410-b5e6-96231b3b80d8