From: Paul Eggert Date: Sun, 24 May 2020 20:51:27 +0000 (-0700) Subject: explicit_bzero-tests: pacify -Wmissing-declarations X-Git-Tag: v1.0~4069 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=a305580f09ada2674c0509389b1674c7b32dce67;p=gnulib.git explicit_bzero-tests: pacify -Wmissing-declarations * tests/test-explicit_bzero.c (do_secret_stuff, test_stack): Now static. --- diff --git a/ChangeLog b/ChangeLog index d7c1e8d8a0..4be21934ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2020-05-24 Paul Eggert + + explicit_bzero-tests: pacify -Wmissing-declarations + * tests/test-explicit_bzero.c (do_secret_stuff, test_stack): + Now static. + 2020-05-24 Bruno Haible fopen-gnu: Add tests. diff --git a/tests/test-explicit_bzero.c b/tests/test-explicit_bzero.c index 5abc004216..385fd12a93 100644 --- a/tests/test-explicit_bzero.c +++ b/tests/test-explicit_bzero.c @@ -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;