bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

explicit_bzero-tests: pacify -Wmissing-declarations


From: Bruno Haible
Subject: explicit_bzero-tests: pacify -Wmissing-declarations
Date: Mon, 25 May 2020 09:28:02 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-177-generic; KDE/5.18.0; x86_64; ; )

Hi Paul,

> * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
>       Now static.

It's OK to mark 'test_stack' static. But for 'do_secret_stuff', it invites the
compiler to inline the function and then to do different optimizations for
pass == 1 and pass == 2, which will break the test.

Is it possible to portably mark 'do_secret_stuff' as not-inline? If not, then
I would prefer to revert the change and instead add a function declaration, to
avoid the warning.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]