[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] alsa-mixer-path-test: Hide unused functions when building with Meson
Tanu Kaskinen
gitlab at gitlab.freedesktop.org
Fri Sep 20 14:17:56 UTC 2019
Tanu Kaskinen pushed to branch master at PulseAudio / pulseaudio
Commits:
3dff31e1 by Tanu Kaskinen at 2019-09-20T14:10:57Z
alsa-mixer-path-test: Hide unused functions when building with Meson
Silences these warnings:
[509/574] Compiling C object 'src/tests/a4ccf2d@@alsa-mixer-path-test at exe/alsa-mixer-path-test.c.o'.
../src/tests/alsa-mixer-path-test.c:24:20: warning: ‘load_makefile’ defined but not used [-Wunused-function]
static pa_strlist *load_makefile() {
^~~~~~~~~~~~~
../src/tests/alsa-mixer-path-test.c:17:20: warning: ‘get_default_paths_dir’ defined but not used [-Wunused-function]
static const char *get_default_paths_dir(void) {
^~~~~~~~~~~~~~~~~~~~~
- - - - -
1 changed file:
- src/tests/alsa-mixer-path-test.c
Changes:
=====================================
src/tests/alsa-mixer-path-test.c
=====================================
@@ -13,6 +13,10 @@
#include <pulsecore/strlist.h>
#include <modules/alsa/alsa-mixer.h>
+/* This test inspects the Makefile, so this is not applicable when using
+ * Meson. */
+#ifndef MESON_BUILD
+
/* This function was copied from alsa-mixer.c */
static const char *get_default_paths_dir(void) {
if (pa_run_from_build_tree())
@@ -52,6 +56,7 @@ static pa_strlist *load_makefile() {
fclose(f);
return result;
}
+#endif /* end of #ifndef MESON_BUILD */
START_TEST (mixer_path_test) {
#ifdef MESON_BUILD
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/commit/3dff31e19ca627fc4e0a8f13aeb44923118ecfa1
--
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/commit/3dff31e19ca627fc4e0a8f13aeb44923118ecfa1
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20190920/7a2a2212/attachment.html>
More information about the pulseaudio-commits
mailing list