common: fix compile warnings. 20/240420/1
authorHermet Park <chuneon.park@samsung.com>
Thu, 6 Aug 2020 07:24:24 +0000 (16:24 +0900)
committerHermet Park <chuneon.park@samsung.com>
Thu, 6 Aug 2020 07:24:24 +0000 (16:24 +0900)
--Werror=unused-parameter

Change-Id: I180464d770b1aa04afd39c30a3223a7cd48c78a4

src/lib/tvgCommon.h
src/lib/tvgRender.h
src/meson.build

index dddac62..87c7581 100644 (file)
@@ -35,6 +35,8 @@ using namespace tvg;
 #define FILL_ID_LINEAR 0
 #define FILL_ID_RADIAL 1
 
+#define TVG_UNUSED __attribute__ ((__unused__))
+
 #include "tvgBezier.h"
 #include "tvgLoader.h"
 #include "tvgLoaderMgr.h"
index 6a0897e..63f920e 100644 (file)
@@ -51,10 +51,10 @@ class RenderMethod
 {
 public:
     virtual ~RenderMethod() {}
-    virtual void* prepare(const Shape& shape, void* data, const RenderTransform* transform, RenderUpdateFlag flags) { return nullptr; }
-    virtual bool dispose(const Shape& shape, void *data) { return false; }
+    virtual void* prepare(TVG_UNUSED const Shape& shape, TVG_UNUSED void* data, TVG_UNUSED const RenderTransform* transform, TVG_UNUSED RenderUpdateFlag flags) { return nullptr; }
+    virtual bool dispose(TVG_UNUSED const Shape& shape, TVG_UNUSED void *data) { return false; }
     virtual bool preRender() { return false; }
-    virtual bool render(const Shape& shape, void *data) { return false; }
+    virtual bool render(TVG_UNUSED const Shape& shape, TVG_UNUSED void *data) { return false; }
     virtual bool postRender() { return false; }
     virtual bool clear() { return false; }
     virtual bool flush() { return false; }
index ced59a5..40d85ce 100644 (file)
@@ -12,7 +12,6 @@ endif
 subdir('lib')
 subdir('loaders')
 subdir('bindings')
-subdir('examples')
 
 thread_dep = meson.get_compiler('cpp').find_library('pthread')
 thorvg_lib_dep = [common_dep, loader_dep, binding_dep, thread_dep]