Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-05-04 03:56:33 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-04 03:56:47 +0300
commit2f79286453edc8c28e994e8a2ccf5f3dcfa9b054 (patch)
tree4860f7a2fed2874a0ddc362307cc76efe3ed9320
parentee0d8426ab6d301c0296496c25f9511b9a9768e9 (diff)
Cleanup: unused vars
-rw-r--r--source/blender/blenkernel/intern/sound.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/sound.c b/source/blender/blenkernel/intern/sound.c
index 978b287ba22..6ea384abdd6 100644
--- a/source/blender/blenkernel/intern/sound.c
+++ b/source/blender/blenkernel/intern/sound.c
@@ -175,7 +175,8 @@ void BKE_sound_free_audio(bSound *sound)
}
BKE_sound_free_waveform(sound);
-
+#else
+ UNUSED_VARS(sound);
#endif /* WITH_AUDASPACE */
}
@@ -313,7 +314,7 @@ void BKE_sound_init_main(Main *bmain)
AUD_setSynchronizerCallback(sound_sync_callback, bmain);
}
# else
- (void)bmain; /* unused */
+ UNUSED_VARS(bmain);
# endif
}
@@ -1263,7 +1264,7 @@ void BKE_sound_jack_sync_callback_set(SoundJackSyncCallback callback)
#if defined(WITH_AUDASPACE) && defined(WITH_JACK)
sound_jack_sync_callback = callback;
#else
- (void)callback;
+ UNUSED_VARS(callback);
#endif
}
@@ -1286,6 +1287,8 @@ void BKE_sound_jack_scene_update(Scene *scene, int mode, float time)
if (scene->playback_handle != NULL) {
AUD_Handle_setPosition(scene->playback_handle, time);
}
+#else
+ UNUSED_VARS(time);
#endif
}