From: Michael Meissner <cgen-mail@the-meissners.org>
To: cgen@sources.redhat.com
Subject: Eliminate compiler warnings in initializing CGEN_OPINST tables
Date: Wed, 06 Aug 2003 21:04:00 -0000 [thread overview]
Message-ID: <20030806205233.GA30369@tiktok.the-meissners.org> (raw)
The default warning level now complains if fields are only partially
initialized. This means a lot of warnings for the lines of the form:
{ END }
generated by opc-opinst.scm. This patch fixes that.
2003-08-06 Michael Meissner <gnu@the-meissners.org>
* opc-opinst.scm (-gen-operand-instance-table): Initialize all of
the elements for the END record of CGEN_OPINST, silencing
warnings.
*** cgen/opc-opinst.scm.~1.3.~ 2003-05-15 03:25:02.000000000 -0400
--- cgen/opc-opinst.scm 2003-08-06 16:38:08.000000000 -0400
***************
*** 54,60 ****
ins)
(string-map (lambda (op) (-gen-operand-instance op "OUTPUT"))
outs)
! " { END }\n};\n\n")))
)
(define (-gen-operand-instance-tables)
--- 54,60 ----
ins)
(string-map (lambda (op) (-gen-operand-instance op "OUTPUT"))
outs)
! " { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }\n};\n\n")))
)
(define (-gen-operand-instance-tables)
--
Michael Meissner
email: gnu@the-meissners.org
http://www.the-meissners.org
next reply other threads:[~2003-08-06 20:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-06 21:04 Michael Meissner [this message]
2003-08-07 0:10 ` Doug Evans
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=20030806205233.GA30369@tiktok.the-meissners.org \
--to=cgen-mail@the-meissners.org \
--cc=cgen@sources.redhat.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).