public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "J . A . Magallon" <jamagallon@able.es>
To: Andreas Schwab <schwab@suse.de>
Cc: Alexander Stohr <AlexanderS@ati.com>, linux-kernel@vger.kernel.org
Subject: Re: 2.4.10-pre9 min/max raises "const" warnings
Date: Sat, 15 Sep 2001 00:55:38 +0200	[thread overview]
Message-ID: <20010915005538.A1589@werewolf.able.es> (raw)
In-Reply-To: <761E23C7F09AD51188990008C74C26141221@fgl00exh01.atitech.com> <jeelp9vbzn.fsf@sykes.suse.de>
In-Reply-To: <jeelp9vbzn.fsf@sykes.suse.de>; from schwab@suse.de on Fri, Sep 14, 2001 at 20:55:08 +0200


On 20010914 Andreas Schwab wrote:
>Alexander Stohr <AlexanderS@ati.com> writes:
>
>|> i am yet not sure if the used "? :" operator set does qualify as
>|> a left-value.
>
>For Standard C it isn't, but for GNU C it is.
>

Perhaps it is nonsense, but, as the kernel already uses gcc-specific features,
the gcc folks could extend to C th '<?' and '>?' operators from C++, so

#define max(a,b) (a >? b)
#define min(a,b) (a <? b)

It works at least since 2.95.2. gcc3 warns about signs in -Wall mode.

-- 
J.A. Magallon                           #  Let the source be with you...        
mailto:jamagallon@able.es
Mandrake Linux release 8.1 (Cooker) for i586
Linux werewolf 2.4.9-ac10 #1 SMP Sat Sep 8 02:27:41 CEST 2001 i686

      reply	other threads:[~2001-09-14 22:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-14 17:55 2.4.10-pre9 min/max raises "const" warnings Alexander Stohr
2001-09-14 18:55 ` Andreas Schwab
2001-09-14 22:55   ` J . A . Magallon [this message]

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=20010915005538.A1589@werewolf.able.es \
    --to=jamagallon@able.es \
    --cc=AlexanderS@ati.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=schwab@suse.de \
    /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