summaryrefslogtreecommitdiffstats
path: root/remote-processor
diff options
context:
space:
mode:
authorSebastien Gonzalve <sebastien.gonzalve@intel.com>2013-03-12 14:30:27 +0100
committerDavid Wagner <david.wagner@intel.com>2014-02-12 17:03:56 +0100
commitd7e4844d85db591a2ea235dd1b081c76e2f5cb9d (patch)
tree0fbd5a53da81d69d8e43739777016b9391a5b3e0 /remote-processor
parenta4c39f1a12cad5239c92387eef26d1d3b38f3a43 (diff)
downloadexternal_parameter-framework-d7e4844d85db591a2ea235dd1b081c76e2f5cb9d.zip
external_parameter-framework-d7e4844d85db591a2ea235dd1b081c76e2f5cb9d.tar.gz
external_parameter-framework-d7e4844d85db591a2ea235dd1b081c76e2f5cb9d.tar.bz2
Remove no-non-virtual-dtor flag
BZ: 111473 The warning non-virtual-dtor should not be ignored for the whole project, but only in the few cases where it it necessary. Change-Id: I0ede82a30f2cd055b789f7fb56104fb227934e6f Signed-off-by: Sebastien Gonzalve <sebastien.gonzalve@intel.com> Signed-off-by: Guilhem IMBERTON <guilhem.imberton@intel.com> Reviewed-on: http://android.intel.com:8080/110191 Reviewed-by: buildbot <buildbot@intel.com> Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'remote-processor')
-rw-r--r--remote-processor/Android.mk3
-rw-r--r--remote-processor/RemoteCommand.h3
-rw-r--r--remote-processor/RemoteCommandHandler.h3
-rw-r--r--remote-processor/RemoteCommandHandlerTemplate.h1
-rw-r--r--remote-processor/RemoteProcessorServerInterface.h3
5 files changed, 10 insertions, 3 deletions
diff --git a/remote-processor/Android.mk b/remote-processor/Android.mk
index 7da064a..2a79297 100644
--- a/remote-processor/Android.mk
+++ b/remote-processor/Android.mk
@@ -16,10 +16,7 @@ COMMON_SRC_FILES := \
COMMON_MODULE := libremote-processor
COMMON_MODULE_TAGS := optional
-COMMON_CFLAGS := -Wno-non-virtual-dtor
-
COMMON_LDLIBS := -lpthread
-
#############################
# Target build
diff --git a/remote-processor/RemoteCommand.h b/remote-processor/RemoteCommand.h
index df3d5a4..ffcbcfc 100644
--- a/remote-processor/RemoteCommand.h
+++ b/remote-processor/RemoteCommand.h
@@ -38,4 +38,7 @@ public:
virtual uint32_t getArgumentCount() const = 0;
virtual const std::string& getArgument(uint32_t uiArgument) const = 0;
virtual const std::string packArguments(uint32_t uiStartArgument, uint32_t uiNbArguments) const = 0;
+
+protected:
+ virtual ~IRemoteCommand() {}
};
diff --git a/remote-processor/RemoteCommandHandler.h b/remote-processor/RemoteCommandHandler.h
index 97aa04f..fcd98a9 100644
--- a/remote-processor/RemoteCommandHandler.h
+++ b/remote-processor/RemoteCommandHandler.h
@@ -32,4 +32,7 @@ class IRemoteCommandHandler
public:
// Return true on success, fill result in any cases
virtual bool remoteCommandProcess(const IRemoteCommand& remoteCommand, std::string& strResult) = 0;
+
+protected:
+ virtual ~IRemoteCommandHandler() {}
};
diff --git a/remote-processor/RemoteCommandHandlerTemplate.h b/remote-processor/RemoteCommandHandlerTemplate.h
index 5d9817e..6223b9c 100644
--- a/remote-processor/RemoteCommandHandlerTemplate.h
+++ b/remote-processor/RemoteCommandHandlerTemplate.h
@@ -217,3 +217,4 @@ private:
std::vector<CRemoteCommandParserItem*> _remoteCommandParserVector;
uint32_t _uiMaxCommandUsageLength;
};
+
diff --git a/remote-processor/RemoteProcessorServerInterface.h b/remote-processor/RemoteProcessorServerInterface.h
index 11ceb10..fdc97cc 100644
--- a/remote-processor/RemoteProcessorServerInterface.h
+++ b/remote-processor/RemoteProcessorServerInterface.h
@@ -34,4 +34,7 @@ public:
virtual bool start() = 0;
virtual void stop() = 0;
virtual bool isStarted() const = 0;
+
+ /* FIXME this was missing but is explicitly called */
+ virtual ~IRemoteProcessorServerInterface() {}
};