* Fix GCC4 warnings
@ 2005-04-20 13:31 Andreas Schwab
0 siblings, 0 replies; only message in thread
From: Andreas Schwab @ 2005-04-20 13:31 UTC (permalink / raw)
To: binutils
This patch fixes these warnings:
/cvs/binutils/gas/config/tc-ia64.c: In function ‘specify_resource’:
/cvs/binutils/gas/config/tc-ia64.c:8197: warning: ‘tmpl.path’ is used uninitialized in this function
/cvs/binutils/gas/config/tc-ia64.c:8197: warning: ‘tmpl.line’ is used uninitialized in this function
/cvs/binutils/gas/config/tc-ia64.c:8197: warning: ‘tmpl.file’ is used uninitialized in this function
/cvs/binutils/gas/config/tc-ia64.c:8197: warning: ‘tmpl.depind’ is used uninitialized in this function
/cvs/binutils/gas/config/tc-ia64.c:8197: warning: ‘tmpl.mem_offset.base’ is used uninitialized in this function
/cvs/binutils/gas/config/tc-ia64.c:8197: warning: ‘tmpl.mem_offset.offset’ is used uninitialized in this function
Installed as obvious.
Andreas.
2005-04-20 Andreas Schwab <schwab@suse.de>
* config/tc-ia64.c (specify_resource): Initialize all of tmpl.
--- gas/config/tc-ia64.c.~1.154.~ 2005-04-20 12:51:53.000000000 +0200
+++ gas/config/tc-ia64.c 2005-04-20 15:23:57.000000000 +0200
@@ -8171,9 +8171,15 @@ specify_resource (dep, idesc, type, spec
tmpl.qp_regno = CURR_SLOT.qp_regno;
tmpl.link_to_qp_branch = 1;
tmpl.mem_offset.hint = 0;
+ tmpl.mem_offset.offset = 0;
+ tmpl.mem_offset.base = 0;
tmpl.specific = 1;
tmpl.index = -1;
tmpl.cmp_type = CMP_NONE;
+ tmpl.depind = 0;
+ tmpl.file = NULL;
+ tmpl.line = 0;
+ tmpl.path = 0;
#define UNHANDLED \
as_warn (_("Unhandled dependency %s for %s (%s), note %d"), \
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-20 13:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-20 13:31 Fix GCC4 warnings Andreas Schwab
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).