quiet -Wempty-body and unused warnings
authorCampbell Barton <ideasman42@gmail.com>
Wed, 26 Oct 2011 21:30:08 +0000 (21:30 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 26 Oct 2011 21:30:08 +0000 (21:30 +0000)
source/blender/blenkernel/intern/particle_system.c
source/blender/makesrna/intern/rna_context.c
source/blender/makesrna/intern/rna_fluidsim.c
source/blender/makesrna/intern/rna_key.c
source/blender/makesrna/intern/rna_scene.c
source/blender/makesrna/intern/rna_sequencer.c
source/blender/makesrna/intern/rna_wm.c
source/blender/windowmanager/intern/wm_event_system.c

index c28bbfa..f904f24 100644 (file)
@@ -3853,8 +3853,9 @@ static void update_children(ParticleSimulationData *sim)
        else if(sim->psys->part->childtype) {
                if(sim->psys->totchild != get_psys_tot_child(sim->scene, sim->psys))
                        distribute_particles(sim, PART_FROM_CHILD);
-               else
-                       ; /* Children are up to date, nothing to do. */
+               else {
+                       /* Children are up to date, nothing to do. */
+               }
        }
        else
                psys_free_children(sim->psys);
index 15facd3..f041d3e 100644 (file)
@@ -112,7 +112,7 @@ static PointerRNA rna_Context_tool_settings_get(PointerRNA *ptr)
        return rna_pointer_inherit_refine(ptr, &RNA_ToolSettings, CTX_data_tool_settings(C));
 }
 
-static PointerRNA rna_Context_user_preferences_get(PointerRNA *ptr)
+static PointerRNA rna_Context_user_preferences_get(PointerRNA *UNUSED(ptr))
 {
        PointerRNA newptr;
        RNA_pointer_create(NULL, &RNA_UserPreferences, &U, &newptr);
index df32359..d2d24e0 100644 (file)
@@ -75,7 +75,7 @@ static StructRNA* rna_FluidSettings_refine(struct PointerRNA *ptr)
        }
 }
 
-static void rna_fluid_update(Main *bmain, Scene *scene, PointerRNA *ptr)
+static void rna_fluid_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
 {
        Object *ob= ptr->id.data;
 
index 16d7dd1..65dcbc6 100644 (file)
@@ -351,7 +351,7 @@ static char *rna_ShapeKey_path(PointerRNA *ptr)
                return BLI_sprintfN("key_blocks[\"%s\"]", kb->name);
 }
 
-static void rna_Key_update_data(Main *bmain, Scene *scene, PointerRNA *ptr)
+static void rna_Key_update_data(Main *bmain, Scene *UNUSED(scene), PointerRNA *ptr)
 {
        Key *key= ptr->id.data;
        Object *ob;
index fc3e7d9..7bdaa0a 100644 (file)
@@ -1051,7 +1051,7 @@ static KeyingSet *rna_Scene_keying_set_new(Scene *sce, ReportList *reports, cons
  * is not for general use and only for the few cases where changing scene
  * settings and NOT for general purpose updates, possibly this should be
  * given its own notifier. */
-static void rna_Scene_update_active_object_data(Main *UNUSED(bmain), Scene *scene, PointerRNA *ptr)
+static void rna_Scene_update_active_object_data(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNUSED(ptr))
 {
        Object *ob= OBACT;
        if(ob) {
index 625a378..f3b158f 100644 (file)
@@ -541,7 +541,7 @@ static void rna_SequenceElement_filename_set(PointerRNA *ptr, const char *value)
        BLI_split_file_part(value, elem->name, sizeof(elem->name));
 }*/
 
-static void rna_Sequence_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *ptr)
+static void rna_Sequence_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNUSED(ptr))
 {
        Editing *ed= seq_give_editing(scene, FALSE);
 
index 7e2bef9..c7f7fe5 100644 (file)
@@ -1179,7 +1179,7 @@ static void rna_Operator_bl_description_set(PointerRNA *ptr, const char *value)
        else            assert(!"setting the bl_description on a non-builtin operator");
 }
 
-static void rna_KeyMapItem_update(Main *bmain, Scene *scene, PointerRNA *ptr)
+static void rna_KeyMapItem_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
 {
        wmKeyMapItem *kmi= ptr->data;
        WM_keyconfig_update_tag(NULL, kmi);
index e1670a6..65e6545 100644 (file)
@@ -1953,8 +1953,9 @@ void wm_event_do_handlers(bContext *C)
                                        win->eventstate->prevy= event->y;
                                        //printf("win->eventstate->prev = %d %d\n", event->x, event->y);
                                }
-                               else
-                                       ;//printf("not setting prev to %d %d\n", event->x, event->y);
+                               else {
+                                       //printf("not setting prev to %d %d\n", event->x, event->y);
+                               }
                        }
                        
                        /* store last event for this window */