Module Name: src Committed By: mrg Date: Tue Apr 13 05:28:16 UTC 2021
Modified Files: src/sys/compat/netbsd32: netbsd32_execve.c Log Message: GCC 10 does not like casting from one identical anonymous enum to another enum. supply some quietening cast. To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/sys/compat/netbsd32/netbsd32_execve.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/compat/netbsd32/netbsd32_execve.c diff -u src/sys/compat/netbsd32/netbsd32_execve.c:1.42 src/sys/compat/netbsd32/netbsd32_execve.c:1.43 --- src/sys/compat/netbsd32/netbsd32_execve.c:1.42 Sun Apr 19 20:31:59 2020 +++ src/sys/compat/netbsd32/netbsd32_execve.c Tue Apr 13 05:28:16 2021 @@ -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 @@ netbsd32_posix_spawn_fa_alloc(struct pos 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 =