Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys in struct evcnt_sysctl, change ev_strings[0] to ev_s...
details: https://anonhg.NetBSD.org/src/rev/f082d5e5f693
branches: trunk
changeset: 1020457:f082d5e5f693
user: mrg <mrg%NetBSD.org@localhost>
date: Tue Apr 13 01:10:24 2021 +0000
description:
in struct evcnt_sysctl, change ev_strings[0] to ev_strings[].
GCC 10 does not like accesses to zero length arrays.
diffstat:
sys/sys/sysctl.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 7129d5a13650 -r f082d5e5f693 sys/sys/sysctl.h
--- a/sys/sys/sysctl.h Tue Apr 13 00:31:54 2021 +0000
+++ b/sys/sys/sysctl.h Tue Apr 13 01:10:24 2021 +0000
@@ -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 @@
* 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
Home |
Main Index |
Thread Index |
Old Index