From: Kim Phillips Date: Wed, 18 Feb 2009 14:01:59 -0600 Subject: [U-Boot] [PATCH v2] Create configuration option for restricted ns16550 functions In-Reply-To: <20090218182927.DBC1D832E43F@gemini.denx.de> References: <1234901657-5699-1-git-send-email-ron_madrid@sbcglobal.net> <20090218122152.7fbe1e25.kim.phillips@freescale.com> <20090218182927.DBC1D832E43F@gemini.denx.de> Message-ID: <20090218140159.e4880db0.kim.phillips@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, 18 Feb 2009 19:29:27 +0100 Wolfgang Denk wrote: > > +#else > > +char NS16550_getc (NS16550_t com_port) { } > > +int NS16550_tstc (NS16550_t com_port) { } > > If these functions are supposed to return "char" resp. "int", you will > get casty compiler warnings with an empty function body. I didn't see them, but anyway, please consider this patch (u-boot-spl is 32 bytes smaller than previous empty-fn-body based patch):