summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp
diff options
context:
space:
mode:
authorDaniel Malea <daniel.malea@intel.com>2012-12-07 22:21:08 +0000
committerDaniel Malea <daniel.malea@intel.com>2012-12-07 22:21:08 +0000
commita85e6b6c323d97c3c5b3c2b45f15ef3066aa9e79 (patch)
tree31449c19dec1fb8ed688c82c056fc1dc880ba6ae /lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp
parent84b2a795705d994d2a333d49a00ff7132627cbe3 (diff)
downloadbcm5719-llvm-a85e6b6c323d97c3c5b3c2b45f15ef3066aa9e79.tar.gz
bcm5719-llvm-a85e6b6c323d97c3c5b3c2b45f15ef3066aa9e79.zip
Fix a few more clang (3.2) warnings on Linux:
- remove unused members - add NO_PEDANTIC to selected Makefiles - fix return values (removed NULL as needed) - disable warning about four-char-constants - remove unneeded const from operator*() declaration - add missing lambda function return types - fix printf() with no format string - change sizeof to use a type name instead of variable name - fix Linux ProcessMonitor.cpp to be 32/64 bit friendly - disable warnings emitted by swig-generated C++ code Patch by Matt Kopec! llvm-svn: 169645
Diffstat (limited to 'lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp')
-rw-r--r--lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp b/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp
index 7f7ac203df9..668799c35e4 100644
--- a/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp
+++ b/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp
@@ -178,7 +178,7 @@ bool
OperatingSystemPython::UpdateThreadList (ThreadList &old_thread_list, ThreadList &new_thread_list)
{
if (!m_interpreter || !m_python_object)
- return NULL;
+ return false;
LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_PROCESS));
@@ -193,7 +193,7 @@ OperatingSystemPython::UpdateThreadList (ThreadList &old_thread_list, ThreadList
auto object_sp = m_interpreter->OSPlugin_QueryForThreadsInfo(m_interpreter->MakeScriptObject(m_python_object));
if (!object_sp)
- return NULL;
+ return false;
PythonDataObject pyobj((PyObject*)object_sp->GetObject());
PythonDataArray threads_array (pyobj.GetArrayObject());
if (threads_array)
OpenPOWER on IntegriCloud