[Bug 285870] Bug in atexit code in rare specific case + patch to correct it

[email protected]
Newsgroups gmane.os.freebsd.bugs
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285870

--- Comment #20 from [email protected] ---
A commit in branch stable/14 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3d064b7b158a0ecedb6021dcd1f9b6a9e43f0a2d

commit 3d064b7b158a0ecedb6021dcd1f9b6a9e43f0a2d
Author:     Zhang Qiyue <[email protected]>
AuthorDate: 2026-07-12 06:26:36 +0000
Commit:     Enji Cooper <[email protected]>
CommitDate: 2026-08-07 21:32:40 +0000

    libc: tests: add static to resolve -Wmissing-prototypes

    The function create_staticobj() is only used inside this translation unit.
    Clang produces a -Wmissing-prototypes warning during standard buildworld.
    This warning will become a fatal compile error if MK_WERROR is enabled for
hardened builds.

    PR: 285870
    Fixes: ee9ce1078 ("libc: tests: add some tests for __cxa_atexit...")
    Signed-off-by: Zhang Qiyue <[email protected]>
    Reviewed-by: ngie
    Pull-Request: https://github.com/freebsd/freebsd-src/pull/2321
    (cherry picked from commit 64038db825d64fb4827fc8ee264ea0fa1a046d82)

 lib/libc/tests/stdlib/libatexit/libatexit.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.