From: Steven J Abner <tauvan@starpower.net>
To: gcc-help@gcc.gnu.org
Subject: -Wconversion
Date: Sat, 17 Apr 2004 16:59:00 -0000 [thread overview]
Message-ID: <954D07EC-9090-11D8-B1E3-0050E4396B62@starpower.net> (raw)
Hi
I would like to use -Wconversion in building, however I've searched
to find a way (like #pragma unused) to shut of the warning for a
specific case.
Example:
warning: passing arg 2 of 'chmod' with different width due to prototype
I'm satisfied that there is no problem, so for the function or the
location or completed source file that uses 'chmod' I'd like to stop the
warning, but use a blanket flag -Wconversion for any new code created
within a project or that source file.
Is this possible? or is what I'm asking defeating the purpose? Is
there a directive that I can place at the head of the source file that
can be removed if new code is added?
Thanks
next reply other threads:[~2004-04-17 16:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-17 16:59 Steven J Abner [this message]
2004-04-17 18:36 ` -Wconversion Ian Lance Taylor
2004-04-17 19:11 ` -Wconversion Steven J Abner
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=954D07EC-9090-11D8-B1E3-0050E4396B62@starpower.net \
--to=tauvan@starpower.net \
--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).