Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 GCC 10 does not like casting from one id...
details: https://anonhg.NetBSD.org/src/rev/ea922a8183dd
branches: trunk
changeset: 1020474:ea922a8183dd
user: mrg <mrg%NetBSD.org@localhost>
date: Tue Apr 13 05:28:16 2021 +0000
description:
GCC 10 does not like casting from one identical anonymous enum
to another enum. supply some quietening cast.
diffstat:
sys/compat/netbsd32/netbsd32_execve.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r abf2f06a95ed -r ea922a8183dd sys/compat/netbsd32/netbsd32_execve.c
--- a/sys/compat/netbsd32/netbsd32_execve.c Tue Apr 13 05:04:54 2021 +0000
+++ b/sys/compat/netbsd32/netbsd32_execve.c Tue Apr 13 05:28:16 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_execve.c,v 1.42 2020/04/19 20:31:59 thorpej Exp $ */
+/* $NetBSD: netbsd32_execve.c,v 1.43 2021/04/13 05:28:16 mrg Exp $ */
/*
* Copyright (c) 1998, 2001 Matthew R. Green
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_execve.c,v 1.42 2020/04/19 20:31:59 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_execve.c,v 1.43 2021/04/13 05:28:16 mrg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -130,7 +130,7 @@
for (; i < fa->len; i++) {
fae = &fa->fae[i];
f32 = &fae32[i];
- fae->fae_action = f32->fae_action;
+ fae->fae_action = (unsigned)f32->fae_action;
fae->fae_fildes = f32->fae_fildes;
if (fae->fae_action == FAE_DUP2)
fae->fae_data.dup2.newfildes =
Home |
Main Index |
Thread Index |
Old Index