]> Savannah Git Hosting - gnulib.git/commitdiff
explicit_bzero-tests: pacify -Wmissing-declarations
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 May 2020 20:51:27 +0000 (13:51 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 May 2020 20:52:00 +0000 (13:52 -0700)
* tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
Now static.

ChangeLog
tests/test-explicit_bzero.c

index d7c1e8d8a05bee0b254246a027ed7b1c2b00a1b5..4be21934ad16faaee1853407147bca00fa689da8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
+
+       explicit_bzero-tests: pacify -Wmissing-declarations
+       * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
+       Now static.
+
 2020-05-24  Bruno Haible  <bruno@clisp.org>
 
        fopen-gnu: Add tests.
index 5abc0042160679b08fb21ede603298386d4a8def..385fd12a9337d4b1ed78376afdad23d617703d03 100644 (file)
@@ -128,7 +128,7 @@ test_heap (void)
      2. Verify that the memory has been erased.
    Implement them in the same function, so that they access the same memory
    range on the stack.  */
-int
+static int
 do_secret_stuff (volatile int pass)
 {
   char stackbuf[SECRET_SIZE];
@@ -144,7 +144,7 @@ do_secret_stuff (volatile int pass)
     }
 }
 
-void
+static void
 test_stack (void)
 {
   int count = 0;