[Debtags-commits] [svn] r706 - in libdebtags/trunk: . debtags tests
Enrico Zini
debtags-commits@lists.alioth.debian.org
Sat, 07 May 2005 20:27:43 +0000
Author: enrico
Date: Sat May 7 20:27:42 2005
New Revision: 706
Added:
libdebtags/trunk/tests/ex-showpkgs-grind (contents, props changed)
Modified:
libdebtags/trunk/ (props changed)
libdebtags/trunk/configure.ac
libdebtags/trunk/debtags/PackageImpl.cc
libdebtags/trunk/debtags/TagImpl.cc
Log:
r2882@viaza: enrico | 2005-05-06 12:10:32 +0200
Valgrind checked ex-showpkgs and fixed some resulting bug
Modified: libdebtags/trunk/configure.ac
==============================================================================
--- libdebtags/trunk/configure.ac (original)
+++ libdebtags/trunk/configure.ac Sat May 7 20:27:42 2005
@@ -53,7 +53,12 @@
AC_MSG_ERROR([
*** libz not found. Check 'config.log' for more details.]))
-CXXFLAGS="$CXXFLAGS -Wall"
+extra_warnings=""
+#extra_warnings="-W -Wsystem-headers -Wfloat-equal -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wpacked -Wpadded -Wredundant-decls -Wunreachable-code -Winline -Wlong-long -Wdisabled-optimization"
+dnl -Waggregate-return
+
+CXXFLAGS="$CXXFLAGS -Wall $extra_warnings -O0"
+dnl -Werror
AC_CONFIG_FILES([
Makefile
Modified: libdebtags/trunk/debtags/PackageImpl.cc
==============================================================================
--- libdebtags/trunk/debtags/PackageImpl.cc (original)
+++ libdebtags/trunk/debtags/PackageImpl.cc Sat May 7 20:27:42 2005
@@ -12,7 +12,7 @@
using namespace Debtags;
PackageImpl::PackageImpl(const PackageDB& pdb, const std::string& buf) throw ()
- : pdb(pdb), _buf(buf)
+ : _ref(0), pdb(pdb), _buf(buf)
{
data.Scan(_buf.data(), _buf.size());
Modified: libdebtags/trunk/debtags/TagImpl.cc
==============================================================================
--- libdebtags/trunk/debtags/TagImpl.cc (original)
+++ libdebtags/trunk/debtags/TagImpl.cc Sat May 7 20:27:42 2005
@@ -8,7 +8,7 @@
using namespace Debtags;
FacetImpl::FacetImpl(const Vocabulary& voc, const char* buf, unsigned int size) throw ()
- : voc(voc)
+ : _ref(0), voc(voc)
{
data.Scan(buf, size);
}
@@ -68,7 +68,7 @@
TagImpl::TagImpl(FacetImpl* facet, const char* buf, unsigned int size) throw ()
- : _facet(facet)
+ : _ref(0), _facet(facet)
{
_facet->ref();
data.Scan(buf, size);