projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d45521
)
fade: Avoid a gcc warning.
author
Andre Noll
<maan@systemlinux.org>
Wed, 2 Sep 2009 11:59:54 +0000
(13:59 +0200)
committer
Andre Noll
<maan@systemlinux.org>
Wed, 2 Sep 2009 11:59:54 +0000
(13:59 +0200)
The following warning is harmless and gcc is just being stupid:
fade.c: In function 'main':
fade.c:111: warning: 'val' may be used uninitialized in this function
fade.c:111: note: 'val' was declared here
fade.c
patch
|
blob
|
history
diff --git
a/fade.c
b/fade.c
index
1e37efd
..
78903e5
100644
(file)
--- a/
fade.c
+++ b/
fade.c
@@
-108,7
+108,7
@@
static int open_and_set_mixer_channel(int volume)
static void fixup_mixer_channel_arg(void)
{
- int val
;
+ int val
= SOUND_MIXER_VOLUME; /* STFU, gcc */
switch (conf.mixer_channel_arg) {
case mixer_channel_arg_volume: val = SOUND_MIXER_VOLUME; break;