* [PATCH] fix weird placement of static keyword in sound/core/pcm_memory.c
@ 2004-11-24 0:04 Jesper Juhl
2004-11-25 11:45 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Jesper Juhl @ 2004-11-24 0:04 UTC (permalink / raw)
To: Jaroslav Kysela; +Cc: linux-kernel
This patch moves the 'static' keyword to the beginning of the declaration
to eliminate the following warning when building with gcc -W
sound/core/pcm_memory.c:40: warning: `static' is not at beginning of declaration
This has no actal imact on the code, but it's one less warning to sift
through when looking for potential trouble-code with -W
I have a hard time thinking of a reason to not apply this trivial patch :)
Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
diff -up linux-2.6.10-rc2-bk6-orig/sound/core/pcm_memory.c linux-2.6.10-rc2-bk6/sound/core/pcm_memory.c
--- linux-2.6.10-rc2-bk6-orig/sound/core/pcm_memory.c 2004-10-18 23:54:39.000000000 +0200
+++ linux-2.6.10-rc2-bk6/sound/core/pcm_memory.c 2004-11-24 00:57:06.000000000 +0100
@@ -37,7 +37,7 @@ static int maximum_substreams = 4;
module_param(maximum_substreams, int, 0444);
MODULE_PARM_DESC(maximum_substreams, "Maximum substreams with preallocated DMA memory.");
-const static size_t snd_minimum_buffer = 16384;
+static const size_t snd_minimum_buffer = 16384;
/*
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] fix weird placement of static keyword in sound/core/pcm_memory.c
2004-11-24 0:04 [PATCH] fix weird placement of static keyword in sound/core/pcm_memory.c Jesper Juhl
@ 2004-11-25 11:45 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2004-11-25 11:45 UTC (permalink / raw)
To: Jesper Juhl; +Cc: Jaroslav Kysela, linux-kernel
At Wed, 24 Nov 2004 01:04:52 +0100 (CET),
Jesper Juhl wrote:
>
>
> This patch moves the 'static' keyword to the beginning of the declaration
> to eliminate the following warning when building with gcc -W
> sound/core/pcm_memory.c:40: warning: `static' is not at beginning of declaration
>
> This has no actal imact on the code, but it's one less warning to sift
> through when looking for potential trouble-code with -W
> I have a hard time thinking of a reason to not apply this trivial patch :)
Thanks, I applied your patch to ALSA tree now.
Takashi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-11-27 6:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-24 0:04 [PATCH] fix weird placement of static keyword in sound/core/pcm_memory.c Jesper Juhl
2004-11-25 11:45 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox