mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@osdl.org>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: torvalds@transmeta.com, reiserfs-dev@namesys.com,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Remove 'strchr' warning from reiserfs
Date: Mon, 19 May 2003 12:47:12 -0700	[thread overview]
Message-ID: <20030519124712.2c4b692d.shemminger@osdl.org> (raw)
In-Reply-To: <20030517191611.GA10417@mars.ravnborg.org>

On Sat, 17 May 2003 21:16:11 +0200
Sam Ravnborg <sam@ravnborg.org> 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?

  reply	other threads:[~2003-05-19 19:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-17 19:16 Sam Ravnborg
2003-05-19 19:47 ` Stephen Hemminger [this message]
2003-05-19 21:33   ` Sam Ravnborg
2003-05-20  0:26     ` Kurt Wall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030519124712.2c4b692d.shemminger@osdl.org \
    --to=shemminger@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=reiserfs-dev@namesys.com \
    --cc=sam@ravnborg.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®