bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* explicit_bzero-tests: pacify -Wmissing-declarations
@ 2020-05-25  7:28 Bruno Haible
  2020-05-28 22:11 ` Paul Eggert
  0 siblings, 1 reply; 4+ messages in thread
From: Bruno Haible @ 2020-05-25  7:28 UTC (permalink / raw)
  To: bug-gnulib

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-28 23:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-25  7:28 explicit_bzero-tests: pacify -Wmissing-declarations Bruno Haible
2020-05-28 22:11 ` Paul Eggert
2020-05-28 22:24   ` Bruno Haible
2020-05-28 23:04     ` Paul Eggert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).