diff options
author | gingold <gingold@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-02 07:51:26 +0000 |
---|---|---|
committer | gingold <gingold@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-02 07:51:26 +0000 |
commit | 610231a5e7ae8458d1b605131febf811ad89d4cc (patch) | |
tree | 6dd1619f89531cc3b017db3cbd4a16479cee680e /libiberty | |
parent | 6affa8e1be4662de95271488094fa5facada04c0 (diff) | |
download | gcc-610231a5e7ae8458d1b605131febf811ad89d4cc.tar.gz |
2012-04-02 Tristan Gingold <gingold@adacore.com>
* stack-limit.c: Includes ansidecl.h.
(stack_limit_increase): Add ATTRIBUTE_UNUSED
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186064 138bc75d-0d04-0410-961f-82ee72b054a4
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 add9ff9d1a7..4a3f8034892 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 e64cac28d1d..82c3d44498e 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) |