From: Michael Andres Date: Fri, 5 Sep 2008 16:19:14 +0000 (+0000) Subject: Need a virtual dtor X-Git-Tag: BASE-SuSE-Code-11-Branch~455 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Flibzypp.git;a=commitdiff_plain;h=9296744595117e75f6e2d862a3d543f4ef7c5c17 Need a virtual dtor --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f89a5f4..88b8b2a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,7 @@ MATH( EXPR LIBZYPP_AGE "${LIBZYPP_MINOR} - ${LIBZYPP_COMPATMINOR}" ) MATH( EXPR LIBZYPP_SO_FIRST "${LIBZYPP_CURRENT}-${LIBZYPP_AGE}" ) SET( VERSION "${LIBZYPP_MAJOR}.${LIBZYPP_MINOR}.${LIBZYPP_PATCH}" ) -SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -Woverloaded-virtual" ) +SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -Woverloaded-virtual -Wnon-virtual-dtor" ) SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -Wall" ) set( CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -O3" ) set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O3" ) diff --git a/zypp/repo/RepoInfoBase.h b/zypp/repo/RepoInfoBase.h index 0792910..6407867 100644 --- a/zypp/repo/RepoInfoBase.h +++ b/zypp/repo/RepoInfoBase.h @@ -24,7 +24,7 @@ namespace zypp /////////////////////////////////////////////////////////////////// namespace repo { ///////////////////////////////////////////////////////////////// - + /////////////////////////////////////////////////////////////////// // // CLASS NAME : RepoInfoBase @@ -40,7 +40,7 @@ namespace zypp public: RepoInfoBase(); RepoInfoBase(const std::string & alias); - ~RepoInfoBase(); + virtual ~RepoInfoBase(); /** * unique identifier for this source. If not specified