diff options
author | Tristan Gingold <gingold@adacore.com> | 2012-04-02 07:51:26 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@gcc.gnu.org> | 2012-04-02 07:51:26 +0000 |
commit | 63e1e57a9a137cdf607d4cdd466942848908d4df (patch) | |
tree | 6dd1619f89531cc3b017db3cbd4a16479cee680e /libiberty | |
parent | f38a14ca9008cfe8a4913c8430ba2e13ee20bc2a (diff) | |
download | gcc-63e1e57a9a137cdf607d4cdd466942848908d4df.zip gcc-63e1e57a9a137cdf607d4cdd466942848908d4df.tar.gz gcc-63e1e57a9a137cdf607d4cdd466942848908d4df.tar.bz2 |
stack-limit.c: Includes ansidecl.h.
2012-04-02 Tristan Gingold <gingold@adacore.com>
* stack-limit.c: Includes ansidecl.h.
(stack_limit_increase): Add ATTRIBUTE_UNUSED
From-SVN: r186064
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 5 | ||||
-rw-r--r-- | libiberty/stack-limit.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index add9ff9..4a3f803 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2012-04-02 Tristan Gingold <gingold@adacore.com> + + * stack-limit.c: Includes ansidecl.h. + (stack_limit_increase): Add ATTRIBUTE_UNUSED + 2012-03-20 Jason Merrill <jason@redhat.com> * cp-demangle.c (cplus_demangle_type): Handle 'auto'. diff --git a/libiberty/stack-limit.c b/libiberty/stack-limit.c index e64cac2..82c3d44 100644 --- a/libiberty/stack-limit.c +++ b/libiberty/stack-limit.c @@ -34,6 +34,7 @@ Attempt to increase stack size limit to @var{pref} bytes if possible. */ #include "config.h" +#include "ansidecl.h" #ifdef HAVE_STDINT_H #include <stdint.h> @@ -43,7 +44,7 @@ Attempt to increase stack size limit to @var{pref} bytes if possible. #endif void -stack_limit_increase (unsigned long pref) +stack_limit_increase (unsigned long pref ATTRIBUTE_UNUSED) { #if defined(HAVE_SETRLIMIT) && defined(HAVE_GETRLIMIT) \ && defined(RLIMIT_STACK) && defined(RLIM_INFINITY) |