]> Savannah Git Hosting - gnulib.git/commitdiff
c-stack: Fix warning when DEBUG is enabled.
authorBruno Haible <bruno@clisp.org>
Sat, 9 May 2020 11:32:44 +0000 (13:32 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 9 May 2020 11:32:44 +0000 (13:32 +0200)
Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.

* lib/c-stack.c: Include <stdio.h>.

ChangeLog
lib/c-stack.c

index 85c5af9885993bc77eb02a80580e4ca682963b62..e6750b6b554a2643bf11d316499be1614dd8114b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2020-05-09  Bruno Haible  <bruno@clisp.org>
+
+       c-stack: Fix warning when DEBUG is enabled.
+       Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
+       * lib/c-stack.c: Include <stdio.h>.
+
 2020-05-09  Bruno Haible  <bruno@clisp.org>
 
        Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
index 4050d08e1c2ac1814070e2e360cc1fea5a09b649..e48659130475cd3dd71ef429c7e8054e707451f6 100644 (file)
@@ -65,6 +65,10 @@ typedef struct sigaltstack stack_t;
 
 #include <unistd.h>
 
+#if DEBUG
+# include <stdio.h>
+#endif
+
 #if HAVE_LIBSIGSEGV
 # include <sigsegv.h>
 #endif