]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2012-04-02 Tristan Gingold <gingold@adacore.com>
authorgingold <gingold@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Apr 2012 07:51:26 +0000 (07:51 +0000)
committergingold <gingold@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Apr 2012 07:51:26 +0000 (07:51 +0000)
        * 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

libiberty/ChangeLog
libiberty/stack-limit.c

index add9ff9d1a7cdb1f78f79e8d6849a6560ee8f19a..4a3f8034892f6c84bdc6c038c01357709686fef7 100644 (file)
@@ -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'.
index e64cac28d1df23c5285cc579610ee5b089f54d8c..82c3d44498eeeee66f45b0dc3ac39dd1bf3b72b7 100644 (file)
@@ -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)