genode/repos/dde_bsd/patches/oppress_warning.patch

15 lines
422 B
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

dev/audio.c:XXX:Y: warning: type may be used uninitialized in this function [-Wmaybe-uninitialized]
diff --git a/dev/audio.c b/dev/audio.c
index a9fa22b..da8a783 100644
--- a/dev/audio.c
+++ b/dev/audio.c
@@ -639,7 +639,7 @@ int
audioprint(void *aux, const char *pnp)
{
struct audio_attach_args *arg = aux;
- const char *type;
+ const char *type = "never printed";
if (pnp != NULL) {
switch (arg->type) {