Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/apache2/argon2/dist/phc-winner-argon2/src argon2: S...
details: https://anonhg.NetBSD.org/src/rev/7c2d534461cb
branches: trunk
changeset: 366286:7c2d534461cb
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat May 21 19:57:06 2022 +0000
description:
argon2: Silence -Wmissing-noreturn in thread.c on clang.
Saves the trouble of patching it away in external code.
diffstat:
external/apache2/argon2/dist/phc-winner-argon2/src/thread.c | 1 +
external/apache2/argon2/dist/phc-winner-argon2/src/thread.h | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r c024972caacb -r 7c2d534461cb external/apache2/argon2/dist/phc-winner-argon2/src/thread.c
--- a/external/apache2/argon2/dist/phc-winner-argon2/src/thread.c Sat May 21 19:07:23 2022 +0000
+++ b/external/apache2/argon2/dist/phc-winner-argon2/src/thread.c Sat May 21 19:57:06 2022 +0000
@@ -46,6 +46,7 @@
#endif
}
+__attribute__((__noreturn__))
void argon2_thread_exit(void) {
#if defined(_WIN32)
_endthreadex(0);
diff -r c024972caacb -r 7c2d534461cb external/apache2/argon2/dist/phc-winner-argon2/src/thread.h
--- a/external/apache2/argon2/dist/phc-winner-argon2/src/thread.h Sat May 21 19:07:23 2022 +0000
+++ b/external/apache2/argon2/dist/phc-winner-argon2/src/thread.h Sat May 21 19:57:06 2022 +0000
@@ -61,7 +61,7 @@
/* Terminate the current thread. Must be run inside a thread created by
* argon2_thread_create.
*/
-void argon2_thread_exit(void);
+void argon2_thread_exit(void) __attribute__((__noreturn__));
#endif /* ARGON2_NO_THREADS */
#endif
Home |
Main Index |
Thread Index |
Old Index