Module Name:    src
Committed By:   riastradh
Date:           Mon May 20 11:21:46 UTC 2024

Modified Files:
        src/tests/lib/libc/gen: t_siginfo.c

Log Message:
t_siginfo: More volatile to prevent optimization.


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/tests/lib/libc/gen/t_siginfo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libc/gen/t_siginfo.c
diff -u src/tests/lib/libc/gen/t_siginfo.c:1.51 src/tests/lib/libc/gen/t_siginfo.c:1.52
--- src/tests/lib/libc/gen/t_siginfo.c:1.51	Tue May 14 16:10:54 2024
+++ src/tests/lib/libc/gen/t_siginfo.c	Mon May 20 11:21:46 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: t_siginfo.c,v 1.51 2024/05/14 16:10:54 riastradh Exp $ */
+/* $NetBSD: t_siginfo.c,v 1.52 2024/05/20 11:21:46 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -306,7 +306,7 @@ ATF_TC_HEAD(sigfpe_flt, tc)
 ATF_TC_BODY(sigfpe_flt, tc)
 {
 	struct sigaction sa;
-	double d = strtod("0", NULL);
+	volatile double d = strtod("0", NULL);
 
 	if (isQEMU())
 		atf_tc_skip("Test does not run correctly under QEMU");

Reply via email to