[Bf-blender-cvs] [5ebe74e7790] master: GPencil: Fix compiler warning when HARU and PUGIXML are disabled

Antonio Vazquez noreply at git.blender.org
Thu Mar 25 16:06:36 CET 2021


Commit: 5ebe74e77903dc97472cbee3f708044da6329102
Author: Antonio Vazquez
Date:   Thu Mar 25 16:06:24 2021 +0100
Branches: master
https://developer.blender.org/rB5ebe74e77903dc97472cbee3f708044da6329102

GPencil: Fix compiler warning when HARU and PUGIXML are disabled

The function only must be included if Haru or Pugixml is enabled.

===================================================================

M	source/blender/editors/io/io_gpencil_export.c

===================================================================

diff --git a/source/blender/editors/io/io_gpencil_export.c b/source/blender/editors/io/io_gpencil_export.c
index 98e30f51116..10e4e598bad 100644
--- a/source/blender/editors/io/io_gpencil_export.c
+++ b/source/blender/editors/io/io_gpencil_export.c
@@ -50,6 +50,7 @@
 
 #include "gpencil_io.h"
 
+#if defined(WITH_PUGIXML) || defined(WITH_HARU)
 /* Definition of enum elements to export. */
 /* Common props for exporting. */
 static void gpencil_export_common_props_definition(wmOperatorType *ot)
@@ -102,6 +103,7 @@ static void set_export_filepath(bContext *C, wmOperator *op, const char *extensi
     RNA_string_set(op->ptr, "filepath", filepath);
   }
 }
+#endif
 
 /* <-------- SVG single frame export. --------> */
 #ifdef WITH_PUGIXML



More information about the Bf-blender-cvs mailing list