Module Name:    src
Committed By:   mrg
Date:           Tue Apr 13 01:10:24 UTC 2021

Modified Files:
        src/sys/sys: sysctl.h

Log Message:
in struct evcnt_sysctl, change ev_strings[0] to ev_strings[].

GCC 10 does not like accesses to zero length arrays.


To generate a diff of this commit:
cvs rdiff -u -r1.232 -r1.233 src/sys/sys/sysctl.h

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

Modified files:

Index: src/sys/sys/sysctl.h
diff -u src/sys/sys/sysctl.h:1.232 src/sys/sys/sysctl.h:1.233
--- src/sys/sys/sysctl.h:1.232	Thu Apr  1 06:22:10 2021
+++ src/sys/sys/sysctl.h	Tue Apr 13 01:10:24 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: sysctl.h,v 1.232 2021/04/01 06:22:10 simonb Exp $	*/
+/*	$NetBSD: sysctl.h,v 1.233 2021/04/13 01:10:24 mrg Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993
@@ -721,7 +721,7 @@ struct evcnt_sysctl {
 	 * Now the group and name strings follow (both include the trailing
 	 * NUL).  ev_name start at &ev_strings[ev_grouplen+1]
 	 */
-	char		ev_strings[0];
+	char		ev_strings[];
 };
 
 #define	KERN_EVCNT_COUNT_ANY		0

Reply via email to