[pulseaudio-discuss] [PATCH 1/2] Get rid of some warnings: -Wunused-result
Colin Guthrie
gmane at colin.guthr.ie
Sun Mar 20 06:12:40 PDT 2011
No problem but.....
'Twas brillig, and Maarten Bosmans at 19/03/11 12:59 did gyre and gimble:
> --- a/src/modules/module-default-device-restore.c
> +++ b/src/modules/module-default-device-restore.c
> @@ -64,8 +64,8 @@ static void load(struct userdata *u) {
> char ln[256] = "";
> pa_sink *s;
>
> - (void) fgets(ln, sizeof(ln)-1, f);
> - pa_strip_nl(ln);
> + if(fgets(ln, sizeof(ln)-1, f))
> + pa_strip_nl(ln);
Whitespace error!!!!! :p
I've fixed it when applying :)
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mageia Contributor [http://www.mageia.org/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org/]
More information about the pulseaudio-discuss
mailing list