[Bf-blender-cvs] [b496c1c721a] blender-v3.0-release: Cleanup: compiler warnings

Brecht Van Lommel noreply at git.blender.org
Tue Nov 16 22:38:52 CET 2021


Commit: b496c1c721a38589220d5a2916b4738af91312b6
Author: Brecht Van Lommel
Date:   Tue Nov 16 22:29:50 2021 +0100
Branches: blender-v3.0-release
https://developer.blender.org/rBb496c1c721a38589220d5a2916b4738af91312b6

Cleanup: compiler warnings

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

M	source/blender/blenkernel/intern/action_test.cc

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

diff --git a/source/blender/blenkernel/intern/action_test.cc b/source/blender/blenkernel/intern/action_test.cc
index c0d9a4c6055..8423bc923f3 100644
--- a/source/blender/blenkernel/intern/action_test.cc
+++ b/source/blender/blenkernel/intern/action_test.cc
@@ -181,7 +181,7 @@ TEST(action_assets, BKE_action_has_single_frame)
 
   /* No FCurves. */
   {
-    const bAction empty = {nullptr};
+    const bAction empty = {{nullptr}};
     EXPECT_FALSE(BKE_action_has_single_frame(&empty))
         << "Action without FCurves cannot have a single frame.";
   }
@@ -192,7 +192,7 @@ TEST(action_assets, BKE_action_has_single_frame)
     std::unique_ptr<BezTriple[]> bezt = allocate_keyframes(&fcu, 1);
     add_keyframe(&fcu, 1.0f, 2.0f);
 
-    bAction action = {nullptr};
+    bAction action = {{nullptr}};
     BLI_addtail(&action.curves, &fcu);
 
     EXPECT_TRUE(BKE_action_has_single_frame(&action))
@@ -208,7 +208,7 @@ TEST(action_assets, BKE_action_has_single_frame)
     add_keyframe(&fcu1, 1.0f, 327.0f);
     add_keyframe(&fcu2, 1.0f, 47.0f); /* Same X-coordinate as the other one. */
 
-    bAction action = {nullptr};
+    bAction action = {{nullptr}};
     BLI_addtail(&action.curves, &fcu1);
     BLI_addtail(&action.curves, &fcu2);
 
@@ -228,7 +228,7 @@ TEST(action_assets, BKE_action_has_single_frame)
     add_keyframe(&fcu, 1.0f, 2.0f);
     add_keyframe(&fcu, 2.0f, 2.5f);
 
-    bAction action = {nullptr};
+    bAction action = {{nullptr}};
     BLI_addtail(&action.curves, &fcu);
 
     EXPECT_FALSE(BKE_action_has_single_frame(&action))



More information about the Bf-blender-cvs mailing list