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 c28bbfa055435451166892e8e5518677a8a0483c..f904f246b650b5a56b42118eaa285bdff405f357 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 15facd3606fa12f4fd234a01d1d160c121e0f5a1..f041d3efde4accdef47cdf14658a1f7095d13a67 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 df32359ef91134b1b6db1fd879598cf077721d48..d2d24e083b12f24552f3de3fa1a87461c9ff1173 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 16d7dd1638297dccb9e16a2a149b0cd2c7c82d28..65dcbc66624f3d535752b6596eb61b0483beb81b 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 fc3e7d96be70e5c0dc36fd26a530c7ef563c096e..7bdaa0a512ffae5c67f149b646b33f58ac978e18 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 625a37814cb25cdefbe328eea442df1e673c32e9..f3b158f84fe60995e22c39405650f268d8ee2206 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 7e2bef9c91f36541093d422391fa44baa14c37e8..c7f7fe5feea6126cfac922ad8f4408cb20dcff38 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 e1670a674e8b22e780abac931a27317831fad679..65e65450167c6b3fb04e41f8ad0800c06f47907b 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 */