[lkml]   [2003]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] Remove 'strchr' warning from reiserfs
On Sat, 17 May 2003 21:16:11 +0200
Sam Ravnborg <> wrote:

> Hi Linus, please apply - maintainer cc:ed for info.
> Reiserfs emits a warning about strchr being defined but not
> used. I finally tracked down the reason for this.
> gcc - when seeing strstr(x, "%") recognized that the second parameter
> is a char, and therefore uses strchr instead of strstr.
> The workaround to avoid the warning is to replace the call
> to strstr with strchr - which is OK.
> This hides the warning, and brings us down to 6 warnings for a
> make defconfig bzImage.
> Sam

Good job finding this, several others have looked and never found what
was causing it. Is this gcc behaviour documented anywhere? What other
surprises are there?
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:35    [W:0.107 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site