From: Tim Prince <tprince@myrealbox.com>
To: Joezac Zachariah <joezac@cadence.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: How to ignore Wall errors for a portion of code
Date: Mon, 15 Jan 2007 15:18:00 -0000 [thread overview]
Message-ID: <45AB9B3D.5080103@myrealbox.com> (raw)
In-Reply-To: <45AB83A2.3070505@cadence.com>
Joezac Zachariah wrote:
> Hi,
>
> Thanks for your fast response. I am not sure whether my query was
> clear. I am using 'make' to compile the code and I am passing -Wall
> -Werror options. My requirement is that the Wall checks need to be
> done only on a portion of the code in a given '.c' file and not on the
> complete file. Is there a way or a Wall option with which I could
> switch the -Wall check 'off' for a portion of the file?
>
Sorry, I missed that. We invoke scripts from make which split functions
where we want different compile options, then (if using gnu ld)
recombine the .o files by ld -o bigfile.o -r split*.o (an old HPUX style
thing). Our source files have style which permits reliable automatic
splitting by function. Of course, this disables -finline-functions, so
we have options to not split named files.
prev parent reply other threads:[~2007-01-15 15:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-15 10:35 Joezac Zachariah
2007-01-15 12:45 ` Tim Prince
2007-01-15 13:37 ` Joezac Zachariah
2007-01-15 14:30 ` John Love-Jensen
2007-01-15 14:51 ` Brian Dessent
2007-01-15 15:25 ` Segher Boessenkool
2007-01-20 6:13 ` Joezac Zachariah
2007-01-15 15:18 ` Tim Prince [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=45AB9B3D.5080103@myrealbox.com \
--to=tprince@myrealbox.com \
--cc=gcc-help@gcc.gnu.org \
--cc=joezac@cadence.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).