Index: external/gpl3/gcc/dist/libobjc/encoding.c =================================================================== RCS file: /cvsroot/src/external/gpl3/gcc/dist/libobjc/encoding.c,v retrieving revision 1.10 diff -u -u -r1.10 encoding.c --- external/gpl3/gcc/dist/libobjc/encoding.c 1 Oct 2019 10:38:22 -0000 1.10 +++ external/gpl3/gcc/dist/libobjc/encoding.c 15 Oct 2019 19:02:56 -0000 @@ -81,6 +81,7 @@ #define DECL_MODE(TYPE) *(TYPE) #define TYPE_MODE(TYPE) *(TYPE) +#undef DFmode #define DFmode _C_DBL #define strip_array_types(TYPE) ({const char *_field = (TYPE); \ Index: external/gpl3/gcc/lib/libasan/Makefile =================================================================== RCS file: /cvsroot/src/external/gpl3/gcc/lib/libasan/Makefile,v retrieving revision 1.30 diff -u -u -r1.30 Makefile --- external/gpl3/gcc/lib/libasan/Makefile 13 Oct 2019 21:18:20 -0000 1.30 +++ external/gpl3/gcc/lib/libasan/Makefile 15 Oct 2019 19:02:56 -0000 @@ -56,3 +56,4 @@ .endif .include +CXXFLAGS += -Wno-old-style-cast -Wno-non-virtual-dtor -Wno-ctor-dtor-privacy Index: external/gpl3/gcc/lib/liblsan/Makefile =================================================================== RCS file: /cvsroot/src/external/gpl3/gcc/lib/liblsan/Makefile,v retrieving revision 1.5 diff -u -u -r1.5 Makefile --- external/gpl3/gcc/lib/liblsan/Makefile 2 Oct 2019 02:54:34 -0000 1.5 +++ external/gpl3/gcc/lib/liblsan/Makefile 15 Oct 2019 19:02:56 -0000 @@ -25,3 +25,5 @@ LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt .include + +CXXFLAGS+=-Wno-old-style-cast -Wno-non-virtual-dtor Index: external/gpl3/gcc/lib/libstdc++-v3/Makefile =================================================================== RCS file: /cvsroot/src/external/gpl3/gcc/lib/libstdc++-v3/Makefile,v retrieving revision 1.48 diff -u -u -r1.48 Makefile --- external/gpl3/gcc/lib/libstdc++-v3/Makefile 30 Jul 2019 20:19:18 -0000 1.48 +++ external/gpl3/gcc/lib/libstdc++-v3/Makefile 15 Oct 2019 19:02:56 -0000 @@ -111,6 +111,7 @@ COPTS.future.cc += -Wno-deprecated-declarations COPTS.shared_ptr.cc += -Wno-deprecated-declarations COPTS.thread.cc += -Wno-deprecated-declarations +COPTS.cxx11-ios_failure.cc += -Wno-ctor-dtor-privacy -Wno-overloaded-virtual CPPFLAGS.strstream.cc += -I$(GLIBCPP_INCLUDE_DIR)/backward -Wno-deprecated CPPFLAGS.cp-demangle.cc += -DIN_GLIBCPP_V3 @@ -197,6 +198,8 @@ ${.CURDIR}/arch/${LIBSTDCXX_MACHINE_ARCH} ${OBJS}: ${.CURDIR}/arch/${LIBSTDCXX_MACHINE_ARCH}/defs.mk +CXXFLAGS+= -Wno-old-style-cast + .else .include # do nothing Index: external/gpl3/gcc/lib/libsupc++/Makefile =================================================================== RCS file: /cvsroot/src/external/gpl3/gcc/lib/libsupc++/Makefile,v retrieving revision 1.12 diff -u -u -r1.12 Makefile --- external/gpl3/gcc/lib/libsupc++/Makefile 19 Jan 2019 17:11:02 -0000 1.12 +++ external/gpl3/gcc/lib/libsupc++/Makefile 15 Oct 2019 19:02:56 -0000 @@ -37,6 +37,9 @@ ${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH} ${OBJS}: ${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH}/defs.mk + +CXXFLAGS += -Wno-old-style-cast + .else .include # do nothing .endif Index: external/gpl3/gcc/lib/libubsan/Makefile =================================================================== RCS file: /cvsroot/src/external/gpl3/gcc/lib/libubsan/Makefile,v retrieving revision 1.15 diff -u -u -r1.15 Makefile --- external/gpl3/gcc/lib/libubsan/Makefile 6 Oct 2019 00:15:22 -0000 1.15 +++ external/gpl3/gcc/lib/libubsan/Makefile 15 Oct 2019 19:02:56 -0000 @@ -31,3 +31,4 @@ CPPFLAGS+=-DCAN_SANITIZE_UB=1 .include +CXXFLAGS += -Wno-old-style-cast -Wno-non-virtual-dtor -Wno-ctor-dtor-privacy Index: sys/arch/xen/xen/clock.c =================================================================== RCS file: /cvsroot/src/sys/arch/xen/xen/clock.c,v retrieving revision 1.78 diff -u -u -r1.78 clock.c --- sys/arch/xen/xen/clock.c 9 Mar 2019 09:51:29 -0000 1.78 +++ sys/arch/xen/xen/clock.c 15 Oct 2019 19:03:00 -0000 @@ -764,7 +764,7 @@ device_xname(ci->ci_dev)); /* XXX sketchy function pointer cast -- fix the API, please */ ci->ci_xen_timer_intrhand = xen_intr_establish_xname(-1, &xen_pic, evtch, - IST_LEVEL, IPL_CLOCK, (int (*)(void *))xen_timer_handler, ci, true, + IST_LEVEL, IPL_CLOCK, (int (*)(void *))(void *)xen_timer_handler, ci, true, intr_xname); if (ci->ci_xen_timer_intrhand == NULL) panic("failed to establish timer interrupt handler"); Index: sys/kern/kern_hook.c =================================================================== RCS file: /cvsroot/src/sys/kern/kern_hook.c,v retrieving revision 1.6 diff -u -u -r1.6 kern_hook.c --- sys/kern/kern_hook.c 22 Nov 2013 21:04:11 -0000 1.6 +++ sys/kern/kern_hook.c 15 Oct 2019 19:03:01 -0000 @@ -102,7 +102,7 @@ struct hook_desc *hd; LIST_FOREACH(hd, list, hk_list) - ((void (*)(struct proc *, void *))*hd->hk_fn)(p, hd->hk_arg); + ((void (*)(struct proc *, void *))(void *)*hd->hk_fn)(p, hd->hk_arg); } /* @@ -201,7 +201,7 @@ void * exechook_establish(void (*fn)(struct proc *, void *), void *arg) { - return hook_establish(&exechook_list, (void (*)(void *))fn, arg); + return hook_establish(&exechook_list, (void (*)(void *))(void *)fn, arg); } void @@ -228,7 +228,7 @@ void *rv; rw_enter(&exec_lock, RW_WRITER); - rv = hook_establish(&exithook_list, (void (*)(void *))fn, arg); + rv = hook_establish(&exithook_list, (void (*)(void *))(void *)fn, arg); rw_exit(&exec_lock); return rv; } @@ -256,7 +256,7 @@ void * forkhook_establish(void (*fn)(struct proc *, struct proc *)) { - return hook_establish(&forkhook_list, (void (*)(void *))fn, NULL); + return hook_establish(&forkhook_list, (void (*)(void *))(void *)fn, NULL); } void @@ -274,7 +274,7 @@ struct hook_desc *hd; LIST_FOREACH(hd, &forkhook_list, hk_list) { - ((void (*)(struct proc *, struct proc *))*hd->hk_fn) + ((void (*)(struct proc *, struct proc *))(void *)*hd->hk_fn) (p2, p1); } } Index: sys/kern/subr_pool.c =================================================================== RCS file: /cvsroot/src/sys/kern/subr_pool.c,v retrieving revision 1.259 diff -u -u -r1.259 subr_pool.c --- sys/kern/subr_pool.c 23 Sep 2019 05:39:59 -0000 1.259 +++ sys/kern/subr_pool.c 15 Oct 2019 19:03:01 -0000 @@ -2063,10 +2063,10 @@ mutex_init(&pc->pc_lock, MUTEX_DEFAULT, ipl); if (ctor == NULL) { - ctor = (int (*)(void *, void *, int))nullop; + ctor = (int (*)(void *, void *, int))(void *)nullop; } if (dtor == NULL) { - dtor = (void (*)(void *, void *))nullop; + dtor = (void (*)(void *, void *))(void *)nullop; } pc->pc_emptygroups = NULL; @@ -2339,7 +2339,7 @@ * cache back to the global pool then wait for the xcall to * complete. */ - where = xc_broadcast(0, (xcfunc_t)pool_cache_transfer, + where = xc_broadcast(0, (xcfunc_t)(void *)pool_cache_transfer, pc, NULL); xc_wait(where); } Index: sys/kern/subr_vmem.c =================================================================== RCS file: /cvsroot/src/sys/kern/subr_vmem.c,v retrieving revision 1.97 diff -u -u -r1.97 subr_vmem.c --- sys/kern/subr_vmem.c 8 Feb 2018 09:05:20 -0000 1.97 +++ sys/kern/subr_vmem.c 15 Oct 2019 19:03:01 -0000 @@ -769,8 +769,8 @@ } if (vm->vm_flags & VM_XIMPORT) { - rc = ((vmem_ximport_t *)vm->vm_importfn)(vm->vm_arg, size, - &size, flags, &addr); + rc = ((vmem_ximport_t *)(void *)vm->vm_importfn)(vm->vm_arg, + size, &size, flags, &addr); } else { rc = (vm->vm_importfn)(vm->vm_arg, size, flags, &addr); } @@ -1005,7 +1005,7 @@ KASSERT((flags & (VM_XIMPORT)) == 0); return vmem_init(NULL, name, base, size, quantum, - (vmem_import_t *)importfn, releasefn, source, + (vmem_import_t *)(void *)importfn, releasefn, source, qcache_max, flags | VM_XIMPORT, ipl); } Index: sys/net/if_ethersubr.c =================================================================== RCS file: /cvsroot/src/sys/net/if_ethersubr.c,v retrieving revision 1.278 diff -u -u -r1.278 if_ethersubr.c --- sys/net/if_ethersubr.c 2 Oct 2019 04:17:16 -0000 1.278 +++ sys/net/if_ethersubr.c 15 Oct 2019 19:03:01 -0000 @@ -1035,7 +1035,7 @@ * is in the process of being detached. Return device not configured * instead. */ - ifp->if_ioctl = (int (*)(struct ifnet *, u_long, void *))enxio; + ifp->if_ioctl = (int (*)(struct ifnet *, u_long, void *))(void *)enxio; #if NBRIDGE > 0 if (ifp->if_bridge)