aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2011-10-15 10:08:07 -0400
committerUlrich Drepper <drepper@gmail.com>2011-10-15 10:08:07 -0400
commit556a2007974ed39a68c87a8b5181f8057ecd0d6f (patch)
tree7adf77bb1d3bdd3af09e918e0bfaee5a24cd931f
parentab6737ffd037c56f2ded8d93ee07e6170ae0932b (diff)
downloadglibc-556a2007974ed39a68c87a8b5181f8057ecd0d6f.tar
glibc-556a2007974ed39a68c87a8b5181f8057ecd0d6f.tar.gz
glibc-556a2007974ed39a68c87a8b5181f8057ecd0d6f.tar.bz2
glibc-556a2007974ed39a68c87a8b5181f8057ecd0d6f.zip
Add parameter annotation to modf
-rw-r--r--ChangeLog5
-rw-r--r--NEWS4
-rw-r--r--math/bits/mathcalls.h5
3 files changed, 10 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 146aacf87e..49f091aa83 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-12 Andreas Jaeger <aj@suse.de>
+
+ [BZ #13268]
+ * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
+
2011-10-15 Ulrich Drepper <drepper@gmail.com>
* libio/iofwide.c (do_length): Avoid warning.
diff --git a/NEWS b/NEWS
index 7ef0846059..7e9b2c18a3 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-GNU C Library NEWS -- history of user-visible changes. 2011-10-14
+GNU C Library NEWS -- history of user-visible changes. 2011-10-15
Copyright (C) 1992-2009, 2010, 2011 Free Software Foundation, Inc.
See the end for copying conditions.
@@ -11,7 +11,7 @@ Version 2.15
6779, 6783, 9696, 11589, 12403, 12847, 12868, 12852, 12874, 12885, 12907,
12922, 12935, 13007, 13021, 13067, 13068, 13090, 13092, 13114, 13118,
- 13123, 13134, 13138, 13150, 13179, 13192, 13291
+ 13123, 13134, 13138, 13150, 13179, 13192, 13268, 13291
* New program pldd to list loaded object of a process
Implemented by Ulrich Drepper.
diff --git a/math/bits/mathcalls.h b/math/bits/mathcalls.h
index 64da6276f6..4f22abf74f 100644
--- a/math/bits/mathcalls.h
+++ b/math/bits/mathcalls.h
@@ -1,5 +1,5 @@
/* Prototype declarations for math functions; helper file for <math.h>.
- Copyright (C) 1996-2002, 2003, 2006 Free Software Foundation, Inc.
+ Copyright (C) 1996-2002, 2003, 2006, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -113,7 +113,8 @@ __MATHCALL (log,, (_Mdouble_ __x));
__MATHCALL (log10,, (_Mdouble_ __x));
/* Break VALUE into integral and fractional parts. */
-__MATHCALL (modf,, (_Mdouble_ __x, _Mdouble_ *__iptr));
+__MATHCALL (modf,, (_Mdouble_ __x, _Mdouble_ *__iptr))
+ __attribute__ ((__nonnull__ (2)));
_Mdouble_END_NAMESPACE
#ifdef __USE_GNU