public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
* Specify powerpc-nofpu fegetexceptflag return type
@ 2012-12-05 18:13 Joseph S. Myers
  0 siblings, 0 replies; only message in thread
From: Joseph S. Myers @ 2012-12-05 18:13 UTC (permalink / raw)
  To: libc-ports

I've applied this patch to add a missing return type in the powerpc-nofpu 
version of fegetexceptflag, so fixing a "return type defaults to 'int'" 
warning.

2012-12-05  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
	Specify return type as int.

diff --git a/ports/sysdeps/powerpc/nofpu/fgetexcptflg.c b/ports/sysdeps/powerpc/nofpu/fgetexcptflg.c
index 36b9b76..6b00ee0 100644
--- a/ports/sysdeps/powerpc/nofpu/fgetexcptflg.c
+++ b/ports/sysdeps/powerpc/nofpu/fgetexcptflg.c
@@ -1,5 +1,5 @@
 /* Store current representation for exceptions (soft-float edition).
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002-2012 Free Software Foundation, Inc.
    Contributed by Aldy Hernandez <aldyh@redhat.com>, 2002.
    This file is part of the GNU C Library.
 
@@ -21,6 +21,7 @@
 #include "soft-supp.h"
 #include <bp-sym.h>
 
+int
 __fegetexceptflag (fexcept_t *flagp, int excepts)
 {
   *flagp = (fexcept_t) __sim_exceptions  & excepts & FE_ALL_EXCEPT;

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-12-05 18:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-05 18:13 Specify powerpc-nofpu fegetexceptflag return type Joseph S. Myers

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).