From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21685 invoked by alias); 6 Aug 2003 20:52:38 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 21674 invoked from network); 6 Aug 2003 20:52:36 -0000 Received: from unknown (HELO tiktok.the-meissners.org) (66.205.90.83) by sources.redhat.com with SMTP; 6 Aug 2003 20:52:36 -0000 Received: from tiktok.the-meissners.org (localhost [127.0.0.1]) by tiktok.the-meissners.org (8.12.8/8.12.8) with ESMTP id h76KqXrn030378 for ; Wed, 6 Aug 2003 16:52:33 -0400 Received: (from meissner@localhost) by tiktok.the-meissners.org (8.12.8/8.12.8/Submit) id h76KqX3v030376 for cgen@sources.redhat.com; Wed, 6 Aug 2003 16:52:33 -0400 Date: Wed, 06 Aug 2003 21:04:00 -0000 From: Michael Meissner To: cgen@sources.redhat.com Subject: Eliminate compiler warnings in initializing CGEN_OPINST tables Message-ID: <20030806205233.GA30369@tiktok.the-meissners.org> Mail-Followup-To: Michael Meissner , cgen@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-SW-Source: 2003-q3/txt/msg00029.txt.bz2 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 * 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