public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Rene Perlberg" <Perle5000@gmx.de>
To: John Love-Jensen <eljay@adobe.com>, gcc-help@gcc.gnu.org
Subject: Re: Warning when passing int, but unsigned int is awaited?
Date: Wed, 13 Feb 2008 16:26:00 -0000	[thread overview]
Message-ID: <20080213162549.273970@gmx.net> (raw)
In-Reply-To: <C3D872E9.2CD87%eljay@adobe.com>


-------- Original-Nachricht --------
> Datum: Wed, 13 Feb 2008 10:11:53 -0600
> Von: John Love-Jensen <eljay@adobe.com>
> An: Rene Perlberg <Perle5000@gmx.de>, MSX to GCC <gcc-help@gcc.gnu.org>
> Betreff: Re: Warning when passing int, but unsigned int is awaited?

> Hi Rene,
> 
> > Is there any way to make the compiler write a warning or an error, when
> an int
> > is passed to a function which awaits an unsigned int? I tried some of
> the
> > options gcc gives the user, but nothing worked for me.
> 
> Try: -Wconversion

Hey Eljay, 

I forgot to tell, that I already tried some options, which are -Wall -Wextra -pedantic and also -Wconversion, but none of these worked for me.

Maybe it is intended by gcc not to give a warning, because it is c++ standard to make an implicite conversion?

Regards, PiJ.

-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail

  reply	other threads:[~2008-02-13 16:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-13 16:04 Rene Perlberg
2008-02-13 16:12 ` John Love-Jensen
2008-02-13 16:26   ` Rene Perlberg [this message]
2008-02-13 16:52     ` John Love-Jensen
2008-02-13 21:06       ` Robert William Fuller
2008-02-13 23:58         ` James Tebneff

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=20080213162549.273970@gmx.net \
    --to=perle5000@gmx.de \
    --cc=eljay@adobe.com \
    --cc=gcc-help@gcc.gnu.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).