forked from pool/alsa-utils
Takashi Iwai
3a62bf6334
- Backport upstream fixes: alsatplg fixes, misc cleanups: 0027-alsatplg-rewrite-to-use-the-new-libatopology-functio.patch 0028-alsatplg-add-V-version-option.patch 0029-alsatplg-add-decode-command.patch 0030-alsatplg-add-documentation-for-z-dapm-nosort-h.patch 0031-configure-fix-new-libatopology-check.patch 0032-Use-__func__-instead-of-__FUNCTION__.patch 0033-Avoid-pointer-arithmetic-on-void.patch 0034-Use-lli-for-long-long-in-printf.patch 0035-Avoid-empty-initializer-list.patch - Fix build on SLE12-* target OBS-URL: https://build.opensuse.org/request/show/774839 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa-utils?expand=0&rev=167
87 lines
2.4 KiB
Diff
87 lines
2.4 KiB
Diff
From cb47f6dcf4200c64559ed2f008cabf8cc5f9d9a3 Mon Sep 17 00:00:00 2001
|
|
From: Michael Forney <mforney@mforney.org>
|
|
Date: Wed, 5 Feb 2020 00:12:21 -0800
|
|
Subject: [PATCH 35/35] Avoid empty initializer list
|
|
|
|
To zero-initialize an object, use `{0}` instead.
|
|
|
|
Signed-off-by: Michael Forney <mforney@mforney.org>
|
|
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
|
---
|
|
alsamixer/cli.c | 2 +-
|
|
amidi/amidi.c | 2 +-
|
|
seq/aplaymidi/aplaymidi.c | 2 +-
|
|
seq/aplaymidi/arecordmidi.c | 2 +-
|
|
seq/aseqdump/aseqdump.c | 2 +-
|
|
5 files changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/alsamixer/cli.c b/alsamixer/cli.c
|
|
index 3f8f52f03d4d..74683255a30a 100644
|
|
--- a/alsamixer/cli.c
|
|
+++ b/alsamixer/cli.c
|
|
@@ -58,7 +58,7 @@ static void parse_options(int argc, char *argv[])
|
|
{ .name = "view", .has_arg = 1, .val = 'V' },
|
|
{ .name = "no-color", .val = 'g' },
|
|
{ .name = "abstraction", .has_arg = 1, .val = 'a' },
|
|
- { }
|
|
+ { 0 }
|
|
};
|
|
int option;
|
|
int card_index;
|
|
diff --git a/amidi/amidi.c b/amidi/amidi.c
|
|
index c6268e4c2ccd..cde4697c7e30 100644
|
|
--- a/amidi/amidi.c
|
|
+++ b/amidi/amidi.c
|
|
@@ -469,7 +469,7 @@ int main(int argc, char *argv[])
|
|
{"active-sensing", 0, NULL, 'a'},
|
|
{"clock", 0, NULL, 'c'},
|
|
{"sysex-interval", 1, NULL, 'i'},
|
|
- { }
|
|
+ {0}
|
|
};
|
|
int c, err, ok = 0;
|
|
int ignore_active_sensing = 1;
|
|
diff --git a/seq/aplaymidi/aplaymidi.c b/seq/aplaymidi/aplaymidi.c
|
|
index b086e7015aa2..e8491e13148d 100644
|
|
--- a/seq/aplaymidi/aplaymidi.c
|
|
+++ b/seq/aplaymidi/aplaymidi.c
|
|
@@ -869,7 +869,7 @@ int main(int argc, char *argv[])
|
|
{"list", 0, NULL, 'l'},
|
|
{"port", 1, NULL, 'p'},
|
|
{"delay", 1, NULL, 'd'},
|
|
- {}
|
|
+ {0}
|
|
};
|
|
int c;
|
|
int do_list = 0;
|
|
diff --git a/seq/aplaymidi/arecordmidi.c b/seq/aplaymidi/arecordmidi.c
|
|
index 604cd0d29722..2034df76b679 100644
|
|
--- a/seq/aplaymidi/arecordmidi.c
|
|
+++ b/seq/aplaymidi/arecordmidi.c
|
|
@@ -740,7 +740,7 @@ int main(int argc, char *argv[])
|
|
{"metronome", 1, NULL, 'm'},
|
|
{"timesig", 1, NULL, 'i'},
|
|
{"num-events", 1, NULL, 'n'},
|
|
- { }
|
|
+ {0}
|
|
};
|
|
|
|
char *filename = NULL;
|
|
diff --git a/seq/aseqdump/aseqdump.c b/seq/aseqdump/aseqdump.c
|
|
index 578e06fbcb22..44ae3bbc5654 100644
|
|
--- a/seq/aseqdump/aseqdump.c
|
|
+++ b/seq/aseqdump/aseqdump.c
|
|
@@ -357,7 +357,7 @@ int main(int argc, char *argv[])
|
|
{"version", 0, NULL, 'V'},
|
|
{"list", 0, NULL, 'l'},
|
|
{"port", 1, NULL, 'p'},
|
|
- { }
|
|
+ {0}
|
|
};
|
|
|
|
int do_list = 0;
|
|
--
|
|
2.16.4
|
|
|