Module Name:    src
Committed By:   tnn
Date:           Sun Jan 13 00:11:29 UTC 2019

Modified Files:
        src/sys/kern: kern_crashme.c

Log Message:
clang does not like to deref a null pointer unless it is qualified volatile


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/kern/kern_crashme.c

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

Modified files:

Index: src/sys/kern/kern_crashme.c
diff -u src/sys/kern/kern_crashme.c:1.1 src/sys/kern/kern_crashme.c:1.2
--- src/sys/kern/kern_crashme.c:1.1	Wed Jan  9 04:01:20 2019
+++ src/sys/kern/kern_crashme.c	Sun Jan 13 00:11:29 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_crashme.c,v 1.1 2019/01/09 04:01:20 mrg Exp $	*/
+/*	$NetBSD: kern_crashme.c,v 1.2 2019/01/13 00:11:29 tnn Exp $	*/
 
 /*
  * Copyright (c) 2018, 2019 Matthew R. Green
@@ -231,6 +231,6 @@ static int
 crashme_null_deref(int flags)
 {
 
-	*(char *)0 = 0;
+	*(volatile char *)0 = 0;
 	return -1;
 }

Reply via email to