I added {}'s around an if block of code to prevent gcc from saying
authorKent Mein <mein@cs.umn.edu>
Thu, 5 Jan 2006 20:52:51 +0000 (20:52 +0000)
committerKent Mein <mein@cs.umn.edu>
Thu, 5 Jan 2006 20:52:51 +0000 (20:52 +0000)
this else is ambiguous...
code was
if (blah) if (blah2) stuff; else stuff2;
its now
if (blah) { if (blah2) stuff; else stuff2; }

Kent

source/blender/python/api2_2x/Bone.c

index d4f59e67ee594eb9f03db9e6caae94e60e800196..b4f8af4fe12ea5c5d311fa0ebbdac88f3d0ce143 100644 (file)
@@ -460,11 +460,12 @@ static int EditBone_setOptions(BPy_EditBone *self, PyObject *value, void *closur
                //set the options
                if(self->editbone){
                        //make sure the 'connected' property is set up correctly
-                       if (new_flag & BONE_CONNECTED)
+                       if (new_flag & BONE_CONNECTED) {
                                if(!self->editbone->parent)
                                        goto AttributeError3;
                                else
                                        VECCOPY(self->editbone->head, self->editbone->parent->tail);
+                       }
                        self->editbone->flag = new_flag;
                }else{
                        self->flag = new_flag;
@@ -479,11 +480,12 @@ static int EditBone_setOptions(BPy_EditBone *self, PyObject *value, void *closur
 
                        if(self->editbone){
                                //make sure the 'connected' property is set up correctly
-                               if (numeric_value & BONE_CONNECTED)
+                               if (numeric_value & BONE_CONNECTED) {
                                        if(!self->editbone->parent)
                                                goto AttributeError3;
                                        else
                                                VECCOPY(self->editbone->head, self->editbone->parent->tail);
+                               }
                                self->editbone->flag = numeric_value;
                        }else{
                                self->flag = numeric_value;