public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Ted Logan <tlogan@spatial.com>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] gcc warnings on truncations?
Date: Thu, 31 Aug 2000 15:22:50 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590678205426@msgid-missing> (raw)

Is there a way to get gcc to warn (or ideally, error) on truncations to
shorter types? ie:

	int len = strlen(blah);

should warn because strlen returns a size_t, which on 64-bit platforms
is 8 bits and ints are 4. This would be a nice sanity check in our
porting effort to make sure there's no possibility of loosing data. I've
poked through the docs and nothing seemed to do it.

Ted Logan
Spatial Technology


             reply	other threads:[~2000-08-31 15:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-31 15:22 Ted Logan [this message]
2000-08-31 20:16 ` [Linux-ia64] gcc warnings on truncations? Jim Wilson

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=marc-linux-ia64-105590678205426@msgid-missing \
    --to=tlogan@spatial.com \
    --cc=linux-ia64@vger.kernel.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