public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Brian Dessent <brian@dessent.net>
To: Ankur Arora <terminus@gmail.com>
Cc: gcc-help@gnu.org
Subject: Re: No warning on type truncation
Date: Sun, 03 Aug 2008 19:18:00 -0000	[thread overview]
Message-ID: <48960446.62D8A85D@dessent.net> (raw)
In-Reply-To: <dae824200808031203o1e233cfv25619c085e261533@mail.gmail.com>

Ankur Arora wrote:

> I cannot find any relevant option in the manual which enables
> truncation warnings.
> What am I missing?

-Wconversion with 4.4 does warn:

tc.c: In function 'main':
tc.c:5: warning: conversion to 'int' from 'long int' may alter its value

I think that this was added in 4.3, or rather the -Wconversion prior to
4.3 meant something different and less useful.

Brian

  reply	other threads:[~2008-08-03 19:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-03 19:04 Ankur Arora
2008-08-03 19:18 ` Brian Dessent [this message]
2008-08-03 19:49   ` Ankur Arora

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=48960446.62D8A85D@dessent.net \
    --to=brian@dessent.net \
    --cc=gcc-help@gnu.org \
    --cc=terminus@gmail.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).