diff options
| author | Daniel Malea <daniel.malea@intel.com> | 2012-12-07 20:51:09 +0000 |
|---|---|---|
| committer | Daniel Malea <daniel.malea@intel.com> | 2012-12-07 20:51:09 +0000 |
| commit | 89660bf7959ea4d2aeab12e934c60fc0cc18e2ec (patch) | |
| tree | 3b37f1cb961ac1cb59d265b94e9ba1bf80f2d6eb /lldb/source/Plugins/Process/POSIX | |
| parent | 4ec32d3d90a725234f6ea5b426673cd1a8f69971 (diff) | |
| download | bcm5719-llvm-89660bf7959ea4d2aeab12e934c60fc0cc18e2ec.tar.gz bcm5719-llvm-89660bf7959ea4d2aeab12e934c60fc0cc18e2ec.zip | |
More Linux warnings fixes (remove default labels as needed):
- as per http://llvm.org/docs/CodingStandards.html#don-t-use-default-labels-in-fully-covered-switches-over-enumerations
Patch by Matt Kopec!
llvm-svn: 169633
Diffstat (limited to 'lldb/source/Plugins/Process/POSIX')
| -rw-r--r-- | lldb/source/Plugins/Process/POSIX/ProcessMessage.cpp | 8 | ||||
| -rw-r--r-- | lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp | 4 |
2 files changed, 0 insertions, 12 deletions
diff --git a/lldb/source/Plugins/Process/POSIX/ProcessMessage.cpp b/lldb/source/Plugins/Process/POSIX/ProcessMessage.cpp index 2e72b592a0d..a8b8e959387 100644 --- a/lldb/source/Plugins/Process/POSIX/ProcessMessage.cpp +++ b/lldb/source/Plugins/Process/POSIX/ProcessMessage.cpp @@ -102,10 +102,6 @@ ProcessMessage::PrintCrashReason(CrashReason reason) switch (reason) { - default: - assert(false && "invalid CrashReason"); - break; - case eInvalidCrashReason: str = "eInvalidCrashReason"; break; @@ -204,10 +200,6 @@ ProcessMessage::PrintKind(Kind kind) switch (kind) { - default: - assert(false && "invalid Kind"); - break; - case eInvalidMessage: str = "eInvalidMessage"; break; diff --git a/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp b/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp index 56cf4007892..8001db20a72 100644 --- a/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp +++ b/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp @@ -322,10 +322,6 @@ ProcessPOSIX::SendMessage(const ProcessMessage &message) switch (message.GetKind()) { - default: - assert(false && "Unexpected process message!"); - break; - case ProcessMessage::eInvalidMessage: return; |

