diff options
author | Rich Megginson <rmeggins@redhat.com> | 2010-08-31 21:17:30 -0600 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2010-09-01 17:08:30 -0600 |
commit | ea408efe551ad837b08423f6d32b5433ab8dfe2b (patch) | |
tree | 0e8d7a4132d9973498e7746cefdfcfb3f97a386f /lib/base | |
parent | 19c62472381cf72bc7bd20694bbd672edde7f94f (diff) | |
download | ds-ea408efe551ad837b08423f6d32b5433ab8dfe2b.tar.gz ds-ea408efe551ad837b08423f6d32b5433ab8dfe2b.tar.xz ds-ea408efe551ad837b08423f6d32b5433ab8dfe2b.zip |
fix compiler warnings - unused vars/funcs, invalid casts
This commit fixes many compiler warnings, mostly for things like unused
variables, functions, goto labels.
One place was using csngen_free instead of csn_free. A couple of places
were using casts incorrectly, and several places needed some casts added.
Tested on: RHEL5 x86_64, Fedora 14 x86_64
Reviewed by: nkinder (Thanks!)
Diffstat (limited to 'lib/base')
-rw-r--r-- | lib/base/crit.cpp | 6 | ||||
-rw-r--r-- | lib/base/ereport.cpp | 2 | ||||
-rw-r--r-- | lib/base/util.cpp | 3 |
3 files changed, 0 insertions, 11 deletions
diff --git a/lib/base/crit.cpp b/lib/base/crit.cpp index 1a1286c2..2aa9b5ac 100644 --- a/lib/base/crit.cpp +++ b/lib/base/crit.cpp @@ -56,13 +56,7 @@ #include "crit.h" #include "pool.h" -#include "base/dbtbase.h" - #ifdef USE_NSPR -/* -#include "prmon.h" -#include "private/primpl.h" -*/ #include "nspr.h" #include "prthread.h" diff --git a/lib/base/ereport.cpp b/lib/base/ereport.cpp index ba3df4e5..e6b77685 100644 --- a/lib/base/ereport.cpp +++ b/lib/base/ereport.cpp @@ -54,8 +54,6 @@ #include "ereport.h" #include "slapi-plugin.h" -#include "base/dbtbase.h" - #include <stdarg.h> #include <stdio.h> /* vsprintf */ #include <string.h> /* strcpy */ diff --git a/lib/base/util.cpp b/lib/base/util.cpp index d3a7c330..b198154e 100644 --- a/lib/base/util.cpp +++ b/lib/base/util.cpp @@ -56,9 +56,6 @@ #include "base/util.h" -#include "base/dbtbase.h" - - #ifdef XP_UNIX #include <sys/types.h> #endif /* WIN32 */ |