[Bf-blender-cvs] [a5a35aecd14] soc-2020-info-editor: Add comment, silence warning

Mateusz Grzeliński noreply at git.blender.org
Thu Jul 30 23:54:10 CEST 2020


Commit: a5a35aecd14b64c29ba4a6303881c300eff4d7ed
Author: Mateusz Grzeliński
Date:   Thu Jul 30 23:53:45 2020 +0200
Branches: soc-2020-info-editor
https://developer.blender.org/rBa5a35aecd14b64c29ba4a6303881c300eff4d7ed

Add comment, silence warning

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

M	intern/clog/CLG_log.h
M	source/blender/makesrna/intern/rna_userdef.c

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

diff --git a/intern/clog/CLG_log.h b/intern/clog/CLG_log.h
index af65febc59a..cf94cf8a82c 100644
--- a/intern/clog/CLG_log.h
+++ b/intern/clog/CLG_log.h
@@ -212,6 +212,7 @@ void CLG_logref_init(CLG_LogRef *clg_ref);
   ((void)CLOG_ENSURE(clg_ref), \
    ((clg_ref)->type->flag & CLG_FLAG_USE) && ((clg_ref)->type->verbosity_level >= verbose_level))
 
+/** log at severity WARNING or higher is always logged, even if not in use */
 #define CLOG_AT_SEVERITY(clg_ref, severity, verbose_level, ...) \
   { \
     CLG_LogType *_lg_ty = CLOG_ENSURE(clg_ref); \
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c
index ea914cb1021..97dac6b4adf 100644
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@ -1097,12 +1097,14 @@ static void rna_clog_log_verbosity_set(PointerRNA *UNUSED(ptr), int value)
   CLG_verbosity_level_set(value);
 }
 
-static void rna_Userdef_log_filter_update(struct Main *main,
-                                          struct Scene *scene,
-                                          struct PointerRNA *ptr)
+/*
+static void rna_Userdef_log_filter_update(struct Main *UNUSED(main),
+                                          struct Scene *UNUSED(scene),
+                                          struct PointerRNA *UNUSED(ptr))
 {
   printf("Update!\n");
 }
+*/
 
 static void rna_clog_log_filter_get(PointerRNA *ptr, char *value)
 {



More information about the Bf-blender-cvs mailing list