[Bf-blender-cvs] [59e69fc2bd3] master: Fix strict compiler warnings

Sergey Sharybin noreply at git.blender.org
Wed Nov 9 09:51:38 CET 2022


Commit: 59e69fc2bd3b6f06f179d77acca7634968d15969
Author: Sergey Sharybin
Date:   Wed Nov 9 09:47:24 2022 +0100
Branches: master
https://developer.blender.org/rB59e69fc2bd3b6f06f179d77acca7634968d15969

Fix strict compiler warnings

Functions which are local to a translation unit should either be
marked as static, or be in an anonymous namespace.

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

M	source/blender/editors/space_graph/graph_edit.c

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

diff --git a/source/blender/editors/space_graph/graph_edit.c b/source/blender/editors/space_graph/graph_edit.c
index c605ba6776f..cb01b0d9dc8 100644
--- a/source/blender/editors/space_graph/graph_edit.c
+++ b/source/blender/editors/space_graph/graph_edit.c
@@ -2333,7 +2333,7 @@ static int graphkeys_snap_exec(bContext *C, wmOperator *op)
   return OPERATOR_FINISHED;
 }
 
-bool graph_has_selected_control_points(struct bContext *C)
+static bool graph_has_selected_control_points(struct bContext *C)
 {
   bAnimContext ac;
   ListBase anim_data = {NULL, NULL};
@@ -2363,9 +2363,9 @@ bool graph_has_selected_control_points(struct bContext *C)
   return has_selected_control_points;
 }
 
-int graphkeys_selected_control_points_invoke(struct bContext *C,
-                                             struct wmOperator *op,
-                                             const struct wmEvent *event)
+static int graphkeys_selected_control_points_invoke(struct bContext *C,
+                                                    struct wmOperator *op,
+                                                    const struct wmEvent *event)
 {
   if (!graph_has_selected_control_points(C)) {
     BKE_report(op->reports, RPT_ERROR, "No control points are selected");



More information about the Bf-blender-cvs mailing list