=> Building games/d2x-xl Started : Tuesday, 23 OCT 2018 at 19:21:12 UTC Platform: 5.3-DEVELOPMENT DragonFly v5.3.0.822.g10981-DEVELOPMENT #32: Sun Oct 21 08:53:42 PDT 2018 marino@pkgbox64.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64 -------------------------------------------------- -- Environment -------------------------------------------------- UNAME_r=5.3-SYNTH UNAME_m=x86_64 UNAME_p=x86_64 UNAME_v=DragonFly 5.3-SYNTH UNAME_s=DragonFly PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SSL_NO_VERIFY_PEER=1 TERM=dumb PKG_CACHEDIR=/var/cache/pkg8 PKG_DBDIR=/var/db/pkg8 PORTSDIR=/xports LANG=C HOME=/root USER=root -------------------------------------------------- -- Options -------------------------------------------------- ===> The following configuration options are available for d2x-xl-1.14.121_10: OPENGL=on: 2D/3D rendering support via OpenGL ===> Use 'make config' to modify these settings -------------------------------------------------- -- CONFIGURE_ENV -------------------------------------------------- SDL_CONFIG=/usr/local/bin/sdl-config MAKE=gmake XDG_DATA_HOME=/construction/games/d2x-xl XDG_CONFIG_HOME=/construction/games/d2x-xl HOME=/construction/games/d2x-xl TMPDIR="/tmp" PATH=/construction/games/d2x-xl/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc80 CONFIG_SITE=/xports/Templates/config.site lt_cv_sys_max_cmd_len=262144 -------------------------------------------------- -- CONFIGURE_ARGS -------------------------------------------------- --disable-debug --enable-release=yes --with-sharepath=/usr/local/share/d2x-xl --with-opengl --x-libraries=/usr/local/lib --x-includes=/usr/local/include --prefix=/usr/local ${_LATE_CONFIGURE_ARGS} -------------------------------------------------- -- MAKE_ENV -------------------------------------------------- SDL_CONFIG=/usr/local/bin/sdl-config MOTIFLIB="-L/usr/local/lib -lXm -lXp" XDG_DATA_HOME=/construction/games/d2x-xl XDG_CONFIG_HOME=/construction/games/d2x-xl HOME=/construction/games/d2x-xl TMPDIR="/tmp" PATH=/construction/games/d2x-xl/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc80 PREFIX=/usr/local LOCALBASE=/usr/local NOPROFILE=1 CC="cc" CFLAGS="-pipe -O2 -fno-strict-aliasing " CPP="cpp" CPPFLAGS="-I/usr/local/include" LDFLAGS=" -L/usr/local/lib " LIBS="" CXX="c++" CXXFLAGS=" -pipe -O2 -fno-strict-aliasing -std=gnu++98 " MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" -------------------------------------------------- -- MAKE_ARGS -------------------------------------------------- DESTDIR=/construction/games/d2x-xl/stage -------------------------------------------------- -- PLIST_SUB -------------------------------------------------- OSREL=5.3 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/d2x-xl" EXAMPLESDIR="share/examples/d2x-xl" DATADIR="share/d2x-xl" WWWDIR="www/d2x-xl" ETCDIR="etc/d2x-xl" -------------------------------------------------- -- SUB_LIST -------------------------------------------------- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/d2x-xl DOCSDIR=/usr/local/share/doc/d2x-xl EXAMPLESDIR=/usr/local/share/examples/d2x-xl WWWDIR=/usr/local/www/d2x-xl ETCDIR=/usr/local/etc/d2x-xl -------------------------------------------------- -- /etc/make.conf -------------------------------------------------- SYNTHPROFILE=Release-BE USE_PACKAGE_DEPENDS_ONLY=yes PACKAGE_BUILDING=yes BATCH=yes PKG_CREATE_VERBOSE=yes PORTSDIR=/xports DISTDIR=/distfiles WRKDIRPREFIX=/construction PORT_DBDIR=/options PACKAGES=/packages MAKE_JOBS_NUMBER_LIMIT=5 LICENSES_ACCEPTED= NONE HAVE_COMPAT_IA32_KERN= CONFIGURE_MAX_CMD_LEN=262144 _PERL5_FROM_BIN=5.26.2 _ALTCCVERSION_921dbbb2=none _OBJC_ALTCCVERSION_921dbbb2=none _SMP_CPUS=8 UID=0 ARCH=x86_64 OPSYS=DragonFly DFLYVERSION=500317 OSVERSION=9999999 OSREL=5.3 _OSRELEASE=5.3-SYNTH PYTHONBASE=/usr/local _PKG_CHECKED=1 -------------------------------------------------------------------------------- -- Phase: check-sanity -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: pkg-depends -------------------------------------------------------------------------------- ===> d2x-xl-1.14.121_10 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.10.5_4.txz Installing pkg-1.10.5_4... Extracting pkg-1.10.5_4: .......... done ===> d2x-xl-1.14.121_10 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of d2x-xl-1.14.121_10 -------------------------------------------------------------------------------- -- Phase: fetch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: fetch -------------------------------------------------------------------------------- ===> Fetching all distfiles required by d2x-xl-1.14.121_10 for building -------------------------------------------------------------------------------- -- Phase: checksum -------------------------------------------------------------------------------- ===> Fetching all distfiles required by d2x-xl-1.14.121_10 for building => SHA256 Checksum OK for d2x-xl-src-1.14.121.rar. => SHA256 Checksum OK for d2x-xl-data-1.14.95.rar. -------------------------------------------------------------------------------- -- Phase: extract-depends -------------------------------------------------------------------------------- ===> d2x-xl-1.14.121_10 depends on executable: unrar - not found ===> Installing existing package /packages/All/unrar-5.60,6.txz Installing unrar-5.60,6... `-- Installing libressl-2.7.4... `-- Extracting libressl-2.7.4: .......... done Extracting unrar-5.60,6: .... done ===> d2x-xl-1.14.121_10 depends on executable: unrar - found ===> Returning to build of d2x-xl-1.14.121_10 -------------------------------------------------------------------------------- -- Phase: extract -------------------------------------------------------------------------------- ===> Fetching all distfiles required by d2x-xl-1.14.121_10 for building ===> Extracting for d2x-xl-1.14.121_10 ===> Fetching all distfiles required by d2x-xl-1.14.121_10 for building => SHA256 Checksum OK for d2x-xl-src-1.14.121.rar. => SHA256 Checksum OK for d2x-xl-data-1.14.95.rar. -------------------------------------------------------------------------------- -- Phase: patch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: patch -------------------------------------------------------------------------------- ===> Patching for d2x-xl-1.14.121_10 ===> Converting DOS text files to UNIX text files ===> Applying ports patches for d2x-xl-1.14.121_10 ===> Applying dragonfly patches for d2x-xl-1.14.121_10 -------------------------------------------------------------------------------- -- Phase: build-depends -------------------------------------------------------------------------------- ===> d2x-xl-1.14.121_10 depends on file: /usr/local/bin/sdl-config - not found ===> Installing existing package /packages/All/sdl-1.2.15_12,2.txz Installing sdl-1.2.15_12,2... `-- Installing aalib-1.4.r5_12... | `-- Installing indexinfo-0.3.1... | `-- Extracting indexinfo-0.3.1: .... done | `-- Installing ncurses-6.1.20180728... | `-- Extracting ncurses-6.1.20180728: .......... done `-- Extracting aalib-1.4.r5_12: .......... done `-- Installing libGLU-9.0.0_3... | `-- Installing mesa-libs-18.1.9... | | `-- Installing expat-2.2.6_1... | | `-- Extracting expat-2.2.6_1: .......... done | | `-- Installing libX11-1.6.6_1,1... | | `-- Installing libXau-1.0.8_5... | | `-- Extracting libXau-1.0.8_5: .......... done | | `-- Installing libXdmcp-1.1.2_2... | | | `-- Installing xorgproto-2018.4... | | | `-- Extracting xorgproto-2018.4: .......... done | | `-- Extracting libXdmcp-1.1.2_2: ......... done | | `-- Installing libxcb-1.13.1... | | | `-- Installing libpthread-stubs-0.4... | | | `-- Extracting libpthread-stubs-0.4: .... done | | | `-- Installing libxml2-2.9.7... | | | `-- Extracting libxml2-2.9.7: .......... done | | `-- Extracting libxcb-1.13.1: .......... done | | `-- Extracting libX11-1.6.6_1,1: .......... done | | `-- Installing libXdamage-1.1.4_5... | | `-- Installing libXfixes-5.0.3_2... | | `-- Extracting libXfixes-5.0.3_2: .......... done | | `-- Extracting libXdamage-1.1.4_5: ......... done | | `-- Installing libXext-1.3.3_3,1... | | `-- Extracting libXext-1.3.3_3,1: .......... done | | `-- Installing libXxf86vm-1.1.4_3... | | `-- Extracting libXxf86vm-1.1.4_3: .......... done | | `-- Installing libdrm-2.4.93,1... | | `-- Installing libpciaccess-0.13.5... | | | `-- Installing pciids-20180921... | | | `-- Extracting pciids-20180921: ..... done | | `-- Extracting libpciaccess-0.13.5: ......... done | | `-- Extracting libdrm-2.4.93,1: .......... done | | `-- Installing libelf-0.8.13_3... | | `-- Installing gettext-runtime-0.19.8.1_1... | | `-- Extracting gettext-runtime-0.19.8.1_1: .......... done | | `-- Extracting libelf-0.8.13_3: .......... done | | `-- Installing libxshmfence-1.2_4... | | `-- Extracting libxshmfence-1.2_4: ......... done | `-- Extracting mesa-libs-18.1.9: .......... done `-- Extracting libGLU-9.0.0_3: ...... done `-- Installing libXrandr-1.5.1_2... | `-- Installing libXrender-0.9.10_2... | `-- Extracting libXrender-0.9.10_2: .......... done `-- Extracting libXrandr-1.5.1_2: .......... done Extracting sdl-1.2.15_12,2: .......... done Message from aalib-1.4.r5_12: ===> NOTICE: The aalib port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port Message from sdl-1.2.15_12,2: ------------------------------------------------------------------------------ Your SDL library has been built with libvgl support, which means that you can run almost any SDL application straight on your console (VESA 2.0 compatible videocard is required). To do this you have to load the vesa kernel module or enable it in your kernel, and set environment variable "SDL_VIDEODRIVER=vgl". ------------------------------------------------------------------------------ ===> d2x-xl-1.14.121_10 depends on file: /usr/local/bin/sdl-config - found ===> Returning to build of d2x-xl-1.14.121_10 ===> d2x-xl-1.14.121_10 depends on package: autoconf>=2.69 - not found ===> Installing existing package /packages/All/autoconf-2.69_1.txz Installing autoconf-2.69_1... `-- Installing autoconf-wrapper-20131203... `-- Extracting autoconf-wrapper-20131203: .......... done `-- Installing m4-1.4.18,1... `-- Extracting m4-1.4.18,1: .......... done `-- Installing perl5-5.26.2... `-- Extracting perl5-5.26.2: .......... done Extracting autoconf-2.69_1: .......... done Message from perl5-5.26.2: The /usr/bin/perl symlink has been removed starting with Perl 5.20. For shebangs, you should either use: #!/usr/local/bin/perl or #!/usr/bin/env perl The first one will only work if you have a /usr/local/bin/perl, the second will work as long as perl is in PATH. ===> d2x-xl-1.14.121_10 depends on package: autoconf>=2.69 - found ===> Returning to build of d2x-xl-1.14.121_10 ===> d2x-xl-1.14.121_10 depends on package: automake>=1.16.1 - not found ===> Installing existing package /packages/All/automake-1.16.1.txz Installing automake-1.16.1... Extracting automake-1.16.1: .......... done ===> d2x-xl-1.14.121_10 depends on package: automake>=1.16.1 - found ===> Returning to build of d2x-xl-1.14.121_10 ===> d2x-xl-1.14.121_10 depends on executable: gmake - not found ===> Installing existing package /packages/All/gmake-4.2.1_2.txz Installing gmake-4.2.1_2... Extracting gmake-4.2.1_2: .......... done ===> d2x-xl-1.14.121_10 depends on executable: gmake - found ===> Returning to build of d2x-xl-1.14.121_10 ===> d2x-xl-1.14.121_10 depends on package: xorgproto>=0 - found ===> d2x-xl-1.14.121_10 depends on package: xorgproto>=0 - found ===> d2x-xl-1.14.121_10 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - not found ===> Installing existing package /packages/All/libXpm-3.5.12_2.txz Installing libXpm-3.5.12_2... `-- Installing libXt-1.1.5_2,1... | `-- Installing libICE-1.0.9_3,1... | `-- Extracting libICE-1.0.9_3,1: .......... done | `-- Installing libSM-1.2.2_5,1... | `-- Extracting libSM-1.2.2_5,1: .......... done `-- Extracting libXt-1.1.5_2,1: .......... done Extracting libXpm-3.5.12_2: .......... done ===> d2x-xl-1.14.121_10 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found ===> Returning to build of d2x-xl-1.14.121_10 -------------------------------------------------------------------------------- -- Phase: lib-depends -------------------------------------------------------------------------------- ===> d2x-xl-1.14.121_10 depends on shared library: libSDL.so - found (/usr/local/lib/libSDL.so) ===> d2x-xl-1.14.121_10 depends on shared library: libSDL_mixer.so - not found ===> Installing existing package /packages/All/sdl_mixer-1.2.12_12.txz Installing sdl_mixer-1.2.12_12... `-- Installing flac-1.3.2... | `-- Installing libogg-1.3.3,4... | `-- Extracting libogg-1.3.3,4: .......... done `-- Extracting flac-1.3.2: .......... done `-- Installing libmikmod-3.3.11.1... `-- Extracting libmikmod-3.3.11.1: .......... done `-- Installing libvorbis-1.3.6,3... `-- Extracting libvorbis-1.3.6,3: .......... done `-- Installing smpeg-0.4.4_14... `-- Extracting smpeg-0.4.4_14: .......... done `-- Installing timidity-0.2i_1... `-- Extracting timidity-0.2i_1: .......... done Extracting sdl_mixer-1.2.12_12: ......... done Message from timidity-0.2i_1: ===> NOTICE: The timidity port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> d2x-xl-1.14.121_10 depends on shared library: libSDL_mixer.so - found (/usr/local/lib/libSDL_mixer.so) ===> Returning to build of d2x-xl-1.14.121_10 ===> d2x-xl-1.14.121_10 depends on shared library: libSDL_image.so - not found ===> Installing existing package /packages/All/sdl_image-1.2.12_11.txz Installing sdl_image-1.2.12_11... `-- Installing jpeg-turbo-2.0.0... `-- Extracting jpeg-turbo-2.0.0: .......... done `-- Installing png-1.6.35... `-- Extracting png-1.6.35: .......... done `-- Installing tiff-4.0.9_1... | `-- Installing jbigkit-2.1_1... | `-- Extracting jbigkit-2.1_1: .......... done `-- Extracting tiff-4.0.9_1: .......... done `-- Installing webp-1.0.0_1... | `-- Installing giflib-5.1.4... | `-- Extracting giflib-5.1.4: .......... done `-- Extracting webp-1.0.0_1: .......... done Extracting sdl_image-1.2.12_11: .......... done ===> d2x-xl-1.14.121_10 depends on shared library: libSDL_image.so - found (/usr/local/lib/libSDL_image.so) ===> Returning to build of d2x-xl-1.14.121_10 ===> d2x-xl-1.14.121_10 depends on shared library: libXm.so.4 - not found ===> Installing existing package /packages/All/open-motif-2.3.8.txz Installing open-motif-2.3.8... `-- Installing fontconfig-2.12.6,1... | `-- Installing freetype2-2.9.1... | `-- Extracting freetype2-2.9.1: .......... done `-- Extracting fontconfig-2.12.6,1: .......... done Running fc-cache to build fontconfig cache... /usr/local/share/fonts: skipping, no such directory /usr/local/lib/X11/fonts: skipping, no such directory /var/db/fontconfig: cleaning cache directory fc-cache: succeeded `-- Installing libXaw-1.0.13_2,2... | `-- Installing libXmu-1.1.2_5,1... | `-- Extracting libXmu-1.1.2_5,1: .......... done | `-- Installing libXp-1.0.3_2,1... | `-- Extracting libXp-1.0.3_2,1: .......... done `-- Extracting libXaw-1.0.13_2,2: .......... done `-- Installing libXft-2.3.2_3... `-- Extracting libXft-2.3.2_3: .......... done `-- Installing xbitmaps-1.1.2... `-- Extracting xbitmaps-1.1.2: .......... done Extracting open-motif-2.3.8: .......... done Message from freetype2-2.9.1: The 2.7.x series now uses the new subpixel hinting mode (V40 port's option) as the default, emulating a modern version of ClearType. This change inevitably leads to different rendering results, and you might change port's options to adapt it to your taste (or use the new "FREETYPE_PROPERTIES" environment variable). The environment variable "FREETYPE_PROPERTIES" can be used to control the driver properties. Example: FREETYPE_PROPERTIES=truetype:interpreter-version=35 \ cff:no-stem-darkening=1 \ autofitter:warping=1 This allows to select, say, the subpixel hinting mode at runtime for a given application. The controllable properties are listed in the section "Controlling FreeType Modules" in the reference's table of contents (/usr/local/share/doc/freetype2/reference/ft2-toc.html, if documentation was installed). ===> d2x-xl-1.14.121_10 depends on shared library: libXm.so.4 - found (/usr/local/lib/libXm.so.4) ===> Returning to build of d2x-xl-1.14.121_10 ===> d2x-xl-1.14.121_10 depends on shared library: libGL.so - found (/usr/local/lib/libGL.so) ===> d2x-xl-1.14.121_10 depends on shared library: libGLU.so - found (/usr/local/lib/libGLU.so) -------------------------------------------------------------------------------- -- Phase: configure -------------------------------------------------------------------------------- ===> Configuring for d2x-xl-1.14.121_10 configure.ac:33: installing './compile' 2d/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') 3d/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') ai/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') audio/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') audio/Makefile.am:5: warning: source file './win32/midi.cpp' is in a subdirectory, audio/Makefile.am:5: but option 'subdir-objects' is disabled automake: warning: possible forward-incompatibility. automake: At least a source file is in a subdirectory, but the 'subdir-objects' automake: automake option hasn't been enabled. For now, the corresponding output automake: object file(s) will be placed in the top-level directory. However, automake: this behaviour will change in future Automake versions: they will automake: unconditionally cause object files to be placed in the same subdirectory automake: of the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities. audio/Makefile.am:5: warning: source file './linux/hmiplay.cpp' is in a subdirectory, audio/Makefile.am:5: but option 'subdir-objects' is disabled audio/Makefile.am:5: warning: source file './linux/hmistub.cpp' is in a subdirectory, audio/Makefile.am:5: but option 'subdir-objects' is disabled audio/Makefile.am:5: warning: source file './linux/hmpfile.cpp' is in a subdirectory, audio/Makefile.am:5: but option 'subdir-objects' is disabled cockpit/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') console/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') effects/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') gameio/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') gamemodes/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') input/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') io/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') io/Makefile.am:5: warning: source file './linux/findfile.cpp' is in a subdirectory, io/Makefile.am:5: but option 'subdir-objects' is disabled libmve/Makefile.am:10: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') lighting/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') main/Makefile.am:9: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') maths/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') menus/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') misc/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') models/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') network/Makefile.am:5: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') network/Makefile.am:8: warning: source file './linux/ipx_mcast4.cpp' is in a subdirectory, network/Makefile.am:8: but option 'subdir-objects' is disabled network/Makefile.am:8: warning: source file './linux/linuxnet.cpp' is in a subdirectory, network/Makefile.am:8: but option 'subdir-objects' is disabled network/Makefile.am:10: warning: source file './linux/ipx_bsd.cpp' is in a subdirectory, network/Makefile.am:10: but option 'subdir-objects' is disabled network/Makefile.am:13: warning: source file './linux/ipx_kali.cpp' is in a subdirectory, network/Makefile.am:13: but option 'subdir-objects' is disabled network/Makefile.am:13: warning: source file './linux/ukali.cpp' is in a subdirectory, network/Makefile.am:13: but option 'subdir-objects' is disabled objects/Makefile.am:5: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') ogl/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') physics/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') render/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') weapons/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') configure: loading site script /xports/Templates/config.site checking build system type... x86_64-portbld-dragonfly5.3 checking host system type... x86_64-portbld-dragonfly5.3 checking target system type... x86_64-portbld-dragonfly5.3 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p checking for gawk... (cached) /usr/bin/awk checking whether gmake sets $(MAKE)... yes checking whether gmake supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking whether gmake sets $(MAKE)... (cached) yes checking whether gmake supports the include directive... yes (GNU style) checking for gcc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking whether cc understands -c and -o together... yes checking dependency style of cc... gcc3 checking for library containing strerror... none required checking for gcc... (cached) cc checking for g++... c++ checking for ranlib... ranlib checking for strip... strip checking for ar... ar checking for gcc... (cached) cc checking whether we are using the GNU C compiler... (cached) yes checking whether cc accepts -g... (cached) yes checking for cc option to accept ISO C89... (cached) none needed checking whether cc understands -c and -o together... (cached) yes checking dependency style of cc... (cached) gcc3 checking whether we are using the GNU C++ compiler... yes checking whether c++ accepts -g... yes checking dependency style of c++... gcc3 checking how to run the C preprocessor... cpp checking for grep that handles long lines and -e... (cached) /usr/bin/grep checking for egrep... (cached) /usr/bin/egrep checking for ANSI C header files... (cached) yes checking for nasm... no checking for nasmw... no checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for memory.h... (cached) yes checking for strings.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for unistd.h... (cached) yes checking whether byte ordering is bigendian... no checking whether nanosleep is declared... yes checking for struct timespec... (cached) yes checking for struct timeval... yes checking for sdl-config... /usr/local/bin/sdl-config checking for SDL - version >= 1.2.8... yes checking netipx/ipx.h usability... no checking netipx/ipx.h presence... no checking for netipx/ipx.h... no checking for IMG_Load in -lSDL_image... yes checking for Mix_OpenAudio in -lSDL_mixer... yes checking for main in -lGL... yes checking for main in -lGLU... yes configure: WARNING: d2x does not support native ipx on this host. disabling native ipx checking dependency style of cc... gcc3 checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating 2d/Makefile config.status: creating 3d/Makefile config.status: creating ai/Makefile config.status: creating audio/Makefile config.status: creating cockpit/Makefile config.status: creating console/Makefile config.status: creating effects/Makefile config.status: creating gameio/Makefile config.status: creating gamemodes/Makefile config.status: creating input/Makefile config.status: creating io/Makefile config.status: creating lighting/Makefile config.status: creating libmve/Makefile config.status: creating main/Makefile config.status: creating maths/Makefile config.status: creating menus/Makefile config.status: creating misc/Makefile config.status: creating models/Makefile config.status: creating network/Makefile config.status: creating objects/Makefile config.status: creating ogl/Makefile config.status: creating physics/Makefile config.status: creating render/Makefile config.status: creating weapons/Makefile config.status: creating conf.h config.status: executing depfiles commands d2x has been configured successfully. Platform(s): linux ogl Features : no_asm network kalinix OpenGL fasteventpoll release Shared game data directory (unix only): /usr/local/share/d2x-xl -------------------------------------------------------------------------------- -- Phase: build -------------------------------------------------------------------------------- ===> Building for d2x-xl-1.14.121_10 gmake[2]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121' gmake all-recursive gmake[3]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121' Making all in 2d gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/2d' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT bitblt.o -MD -MP -MF .deps/bitblt.Tpo -c -o bitblt.o bitblt.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT bitmap.o -MD -MP -MF .deps/bitmap.Tpo -c -o bitmap.o bitmap.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT canvas.o -MD -MP -MF .deps/canvas.Tpo -c -o canvas.o canvas.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT circle.o -MD -MP -MF .deps/circle.Tpo -c -o circle.o circle.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT font.o -MD -MP -MF .deps/font.Tpo -c -o font.o font.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from font.cpp:37: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from font.cpp:37: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from font.cpp:37: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from bitblt.cpp:18: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from bitblt.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from bitblt.cpp:18: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from circle.cpp:20: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from circle.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from circle.cpp:20: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from circle.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from circle.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from circle.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from circle.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from circle.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from circle.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ mv -f .deps/circle.Tpo .deps/circle.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT ibitblt.o -MD -MP -MF .deps/ibitblt.Tpo -c -o ibitblt.o ibitblt.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from bitmap.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from bitmap.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from bitmap.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ bitblt.cpp: In function 'void gr_linear_rep_movsdm_faded(ubyte*, ubyte*, uint, ubyte, CPalette*, CPalette*)': bitblt.cpp:111:9: warning: variable 'fade_base' set but not used [-Wunused-but-set-variable] ubyte *fade_base; ^~~~~~~~~ bitblt.cpp: In member function 'void CBitmap::BlitClipped(CBitmap*, int, int, int, int, int, int)': bitblt.cpp:542:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!dest) ^~ bitblt.cpp:545:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int destRight = destLeft + w - 1; ^~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from bitblt.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from bitblt.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from bitblt.cpp:18: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from bitblt.cpp:18: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from bitblt.cpp:18: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from bitblt.cpp:18: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from bitblt.cpp:18: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from bitblt.cpp:18: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from bitblt.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from bitblt.cpp:18: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from bitblt.cpp:18: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from bitblt.cpp:18: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from bitblt.cpp:18: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from bitblt.cpp:18: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from bitblt.cpp:18: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from bitblt.cpp:18: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from bitblt.cpp:18: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from bitblt.cpp:18: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from bitblt.cpp:18: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from bitblt.cpp:18: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from bitblt.cpp:18: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from bitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from bitblt.cpp:18: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ibitblt.cpp:18: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ibitblt.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from ibitblt.cpp:18: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from canvas.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/console.h:23, from canvas.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/console.h:23, from canvas.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ font.cpp: In member function 'void CFont::StringSize(const char*, int&, int&, int&)': font.cpp:486:31: warning: variable 'nTab' set but not used [-Wunused-but-set-variable] int i = 0, longestWidth = 0, nTab = 0; ^~~~ font.cpp: In member function 'void CFont::StringSizeTabbed(const char*, int&, int&, int&, int*, int)': font.cpp:539:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!(s && *s)) ^~ font.cpp:542:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' char *pi, *pj; ^~~~ font.cpp: In member function 'void CFontManager::Unload(CFont*)': font.cpp:647:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!font) ^~ font.cpp:650:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int i; ^~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from font.cpp:37: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from font.cpp:37: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from font.cpp:37: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from font.cpp:37: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from font.cpp:37: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from font.cpp:37: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from font.cpp:37: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ibitblt.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ibitblt.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ibitblt.cpp:18: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ibitblt.cpp:18: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ibitblt.cpp:18: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ibitblt.cpp:18: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ibitblt.cpp:18: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ibitblt.cpp:18: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ibitblt.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ibitblt.cpp:18: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from font.cpp:37: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ibitblt.cpp:18: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ibitblt.cpp:18: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ibitblt.cpp:18: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from font.cpp:37: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ibitblt.cpp:18: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ibitblt.cpp:18: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ibitblt.cpp:18: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from font.cpp:37: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from font.cpp:37: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from font.cpp:37: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ibitblt.cpp:18: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ibitblt.cpp:18: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ibitblt.cpp:18: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from font.cpp:37: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ibitblt.cpp:18: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from font.cpp:37: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ibitblt.cpp:18: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ibitblt.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ibitblt.cpp:18: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from font.cpp:37: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from font.cpp:37: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from font.cpp:37: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from font.cpp:37: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from font.cpp:37: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from font.cpp:37: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from font.cpp:37: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from font.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from font.cpp:37: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ bitmap.cpp: In member function 'ubyte* CBitmap::CreateBuffer()': bitmap.cpp:38:26: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] if (m_info.props.rowSize * m_info.props.h) { ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ bitmap.cpp: In member function 'void CBitmap::Init()': bitmap.cpp:128:36: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CBitmapInfo'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_info, 0, sizeof (m_info)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from bitmap.cpp:22: ../include/bitmap.h:88:7: note: 'class CBitmapInfo' declared here class CBitmapInfo { ^~~~~~~~~~~ bitmap.cpp: In member function 'bool CBitmap::InitChild(CBitmap*, int, int, int, int)': bitmap.cpp:174:52: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CTexture'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_info.texture, 0, sizeof (m_info.texture)); ^ In file included from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from bitmap.cpp:22: ../include/ogl_texture.h:40:7: note: 'class CTexture' declared here class CTexture { ^~~~~~~~ bitmap.cpp: In member function 'int CBitmap::AvgColorIndex()': bitmap.cpp:425:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (m_info.avgColorIndex) ^~ bitmap.cpp:428:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int c, h, i, j = 0, r = 0, g = 0, b = 0; ^~~ bitmap.cpp:428:11: warning: variable 'h' set but not used [-Wunused-but-set-variable] int c, h, i, j = 0, r = 0, g = 0, b = 0; ^ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from bitmap.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from bitmap.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from bitmap.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from bitmap.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from bitmap.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from bitmap.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from bitmap.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from bitmap.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from bitmap.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from bitmap.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from bitmap.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from bitmap.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from bitmap.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from bitmap.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from bitmap.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from bitmap.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from bitmap.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from bitmap.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from bitmap.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from bitmap.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ mv -f .deps/ibitblt.Tpo .deps/ibitblt.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT palette.o -MD -MP -MF .deps/palette.Tpo -c -o palette.o palette.cpp In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from bitmap.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from bitmap.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from bitmap.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from bitmap.cpp:22: In member function 'void CBitmap::SetName(const char*)', inlined from 'bool CBitmap::Setup(ubyte, int, int, int, const char*, ubyte*)' at bitmap.cpp:63:9: ../include/bitmap.h:255:68: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 20 equals destination size [-Wstringop-truncation] inline void SetName (const char* pszName) { if (pszName) strncpy (m_info.szName, pszName, sizeof (m_info.szName)); } ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from canvas.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from canvas.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/console.h:103:15: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from canvas.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from canvas.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from canvas.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ font.cpp: In member function 'void CFont::StringSizeTabbed(const char*, int&, int&, int&, int*, int)': font.cpp:546:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 10000 equals destination size [-Wstringop-truncation] strncpy (hs, s, sizeof (hs)); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ mv -f .deps/bitblt.Tpo .deps/bitblt.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT pcx.o -MD -MP -MF .deps/pcx.Tpo -c -o pcx.o pcx.cpp mv -f .deps/bitmap.Tpo .deps/bitmap.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT pixel.o -MD -MP -MF .deps/pixel.Tpo -c -o pixel.o pixel.cpp In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from canvas.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from canvas.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from canvas.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from canvas.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/console.h:103:15: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from canvas.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from canvas.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from canvas.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from canvas.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from canvas.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from canvas.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from canvas.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from canvas.cpp:25: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from canvas.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from canvas.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from canvas.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from canvas.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from canvas.cpp:25: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from canvas.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from canvas.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from canvas.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from pcx.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from pcx.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from pcx.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ pcx.cpp: In function 'int PCXGetDimensions(const char*, int*, int*)': pcx.cpp:96:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!cf.Open (filename, gameFolders.szDataDir, "rb", 0)) ^~ pcx.cpp:99:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (ReadPCXHeaders (&header, 1, cf) != 1) { ^~ mv -f .deps/canvas.Tpo .deps/canvas.Po In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pcx.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from pcx.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pcx.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from pcx.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT rle.o -MD -MP -MF .deps/rle.Tpo -c -o rle.o rle.cpp In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pcx.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pcx.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pcx.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from pcx.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pcx.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pcx.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from palette.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from palette.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from palette.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/font.Tpo .deps/font.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT scalec.o -MD -MP -MF .deps/scalec.Tpo -c -o scalec.o scalec.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rle.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rle.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from rle.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/pcx.Tpo .deps/pcx.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT string.o -MD -MP -MF .deps/string.Tpo -c -o string.o string.cpp palette.cpp: In member function 'CPalette* CPaletteManager::Load(const char*, const char*)': palette.cpp:430:14: warning: variable 'fsize' set but not used [-Wunused-but-set-variable] int i = 0, fsize; ^~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from palette.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from palette.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from palette.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from palette.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from palette.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from palette.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from palette.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rle.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rle.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from palette.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from palette.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rle.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rle.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rle.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rle.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rle.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from rle.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rle.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rle.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rle.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rle.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rle.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rle.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from rle.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rle.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from rle.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from rle.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rle.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from rle.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from rle.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/gr.h:20, from pixel.cpp:25: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from pixel.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from rle.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rle.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from pixel.cpp:25: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from palette.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from palette.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from palette.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from palette.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from palette.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from palette.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from palette.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from palette.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from palette.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from palette.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from palette.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from palette.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from palette.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from palette.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from scalec.cpp:20: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from scalec.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from string.cpp:37: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from string.cpp:37: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from string.cpp:37: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from pixel.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from pixel.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/ogl_lib.h:10, from ../include/ogl_render.h:11, from pixel.cpp:30: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/ogl_lib.h:10, from ../include/ogl_render.h:11, from pixel.cpp:30: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/ogl_lib.h:10, from ../include/ogl_render.h:11, from pixel.cpp:30: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ../include/ogl_lib.h:10, from ../include/ogl_render.h:11, from pixel.cpp:30: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ../include/ogl_lib.h:10, from ../include/ogl_render.h:11, from pixel.cpp:30: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ../include/ogl_lib.h:10, from ../include/ogl_render.h:11, from pixel.cpp:30: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from pixel.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/ogl_lib.h:10, from ../include/ogl_render.h:11, from pixel.cpp:30: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/ogl_lib.h:10, from ../include/ogl_render.h:11, from pixel.cpp:30: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/ogl_lib.h:10, from ../include/ogl_render.h:11, from pixel.cpp:30: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ../include/ogl_lib.h:10, from ../include/ogl_render.h:11, from pixel.cpp:30: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ../include/ogl_lib.h:10, from ../include/ogl_render.h:11, from pixel.cpp:30: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ../include/ogl_lib.h:10, from ../include/ogl_render.h:11, from pixel.cpp:30: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from scalec.cpp:20: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_lib.h:10, from ../include/ogl_render.h:11, from pixel.cpp:30: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from pixel.cpp:30: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ../include/ogl_lib.h:10, from ../include/ogl_render.h:11, from pixel.cpp:30: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ../include/ogl_lib.h:10, from ../include/ogl_render.h:11, from pixel.cpp:30: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ../include/ogl_lib.h:10, from ../include/ogl_render.h:11, from pixel.cpp:30: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ../include/ogl_lib.h:10, from ../include/ogl_render.h:11, from pixel.cpp:30: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from pixel.cpp:30: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ../include/ogl_lib.h:10, from ../include/ogl_render.h:11, from pixel.cpp:30: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from pixel.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_lib.h:10, from ../include/ogl_render.h:11, from pixel.cpp:30: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:19, from ../include/3d.h:20, from ../include/descent.h:92, from palette.cpp:22: In member function 'void CPaletteManager::SetLastPig(const char*)', inlined from 'CPalette* CPaletteManager::Load(const char*, const char*, int, int, int)' at palette.cpp:487:28: ../include/palette.h:222:55: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 255 equals destination size [-Wstringop-truncation] inline void SetLastPig (const char *name) { strncpy (m_data.szLastPig, name, sizeof (m_data.szLastPig)); } ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/palette.Tpo .deps/palette.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT tmerge.o -MD -MP -MF .deps/tmerge.Tpo -c -o tmerge.o tmerge.cpp mv -f .deps/pixel.Tpo .deps/pixel.Po In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from tmerge.cpp:12: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from tmerge.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from tmerge.cpp:12: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from scalec.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from scalec.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from scalec.cpp:20: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from scalec.cpp:20: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from scalec.cpp:20: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from scalec.cpp:20: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from scalec.cpp:20: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ mv -f .deps/rle.Tpo .deps/rle.Po In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from scalec.cpp:20: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from scalec.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from scalec.cpp:20: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from scalec.cpp:20: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from scalec.cpp:20: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from scalec.cpp:20: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from scalec.cpp:20: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from scalec.cpp:20: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from scalec.cpp:20: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from scalec.cpp:20: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from scalec.cpp:20: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from scalec.cpp:20: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from scalec.cpp:20: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from scalec.cpp:20: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from scalec.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from scalec.cpp:20: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from string.cpp:37: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from string.cpp:37: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from string.cpp:37: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from string.cpp:37: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from string.cpp:37: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from string.cpp:37: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from string.cpp:37: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from string.cpp:37: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from string.cpp:37: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from string.cpp:37: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from string.cpp:37: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from string.cpp:37: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from string.cpp:37: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from string.cpp:37: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from string.cpp:37: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from string.cpp:37: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from string.cpp:37: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from string.cpp:37: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from string.cpp:37: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from string.cpp:37: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from string.cpp:37: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from string.cpp:37: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from string.cpp:37: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/scalec.Tpo .deps/scalec.Po In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from tmerge.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from tmerge.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from tmerge.cpp:12: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from tmerge.cpp:12: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from tmerge.cpp:12: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from tmerge.cpp:12: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from tmerge.cpp:12: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from tmerge.cpp:12: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from tmerge.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from tmerge.cpp:12: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from tmerge.cpp:12: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from tmerge.cpp:12: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from tmerge.cpp:12: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from tmerge.cpp:12: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from tmerge.cpp:12: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from tmerge.cpp:12: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from tmerge.cpp:12: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from tmerge.cpp:12: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from tmerge.cpp:12: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from tmerge.cpp:12: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from tmerge.cpp:12: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from tmerge.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from tmerge.cpp:12: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/tmerge.Tpo .deps/tmerge.Po mv -f .deps/string.Tpo .deps/string.Po rm -f lib2d.a ar cru lib2d.a bitblt.o bitmap.o canvas.o circle.o font.o ibitblt.o palette.o pcx.o pixel.o rle.o scalec.o string.o tmerge.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib lib2d.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/2d' Making all in 3d gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/3d' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT ase2model.o -MD -MP -MF .deps/ase2model.Tpo -c -o ase2model.o ase2model.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT buildmodel.o -MD -MP -MF .deps/buildmodel.Tpo -c -o buildmodel.o buildmodel.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT clipper.o -MD -MP -MF .deps/clipper.Tpo -c -o clipper.o clipper.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT draw.o -MD -MP -MF .deps/draw.Tpo -c -o draw.o draw.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT fastmodels.o -MD -MP -MF .deps/fastmodels.Tpo -c -o fastmodels.o fastmodels.cpp In file included from ../include/gr.h:20, from ../include/error.h:19, from buildmodel.cpp:20: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/error.h:19, from buildmodel.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/error.h:19, from buildmodel.cpp:20: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from draw.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from draw.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from draw.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from ase2model.cpp:20: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/error.h:19, from ase2model.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/error.h:19, from ase2model.cpp:20: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from fastmodels.cpp:20: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/error.h:19, from fastmodels.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/error.h:19, from fastmodels.cpp:20: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from buildmodel.cpp:39: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ buildmodel.cpp: In member function 'fix RenderModel::CModel::Size(CObject*, int)': buildmodel.cpp:603:23: warning: variable 'r' set but not used [-Wunused-but-set-variable] double dx, dy, dz, r; ^ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from buildmodel.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from buildmodel.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from buildmodel.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from buildmodel.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from buildmodel.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from buildmodel.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from buildmodel.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from buildmodel.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from buildmodel.cpp:39: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from buildmodel.cpp:39: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from buildmodel.cpp:39: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from buildmodel.cpp:39: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from buildmodel.cpp:40: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Clear(ubyte, uint) [with _T = CFloatVector3; ubyte = unsigned char; uint = unsigned int]': buildmodel.cpp:89:17: required from here ../include/carray.h:110:12: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class CFloatVector3' with 'private' member 'CFloatVector3::v' [-Wclass-memaccess] memset (m_data.buffer, filler, sizeof (_T) * ((count < m_data.length) ? count : m_data.length)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cfile.h:27, from ../include/palette.h:21, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/vecmat.h:230:16: note: 'class CFloatVector3' declared here class __pack__ CFloatVector3 { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Clear(ubyte, uint) [with _T = RenderModel::CSubModel; ubyte = unsigned char; uint = unsigned int]': buildmodel.cpp:94:21: required from here ../include/carray.h:110:12: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class RenderModel::CSubModel'; use assignment instead [-Wclass-memaccess] memset (m_data.buffer, filler, sizeof (_T) * ((count < m_data.length) ? count : m_data.length)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from buildmodel.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from buildmodel.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from buildmodel.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from buildmodel.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from buildmodel.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from buildmodel.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from buildmodel.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from ase2model.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from ase2model.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from buildmodel.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from buildmodel.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from buildmodel.cpp:34: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from buildmodel.cpp:39: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ase2model.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ase2model.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ase2model.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ase2model.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ase2model.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ase2model.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from ase2model.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from buildmodel.cpp:39: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from buildmodel.cpp:40: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/error.h:19, from buildmodel.cpp:20: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from buildmodel.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from buildmodel.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from buildmodel.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from buildmodel.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from buildmodel.cpp:34: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/error.h:19, from buildmodel.cpp:20: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from buildmodel.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from buildmodel.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from buildmodel.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from fastmodels.cpp:39: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from clipper.cpp:18: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from clipper.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from clipper.cpp:18: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/3d.h:20, from clipper.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from clipper.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/3d.h:20, from clipper.cpp:18: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from clipper.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ fastmodels.cpp: In function 'int G3AnimateSubModel(CObject*, RenderModel::CSubModel*, short int)': fastmodels.cpp:408:16: warning: operation on 'psm->RenderModel::CSubModel::m_iFrame' may be undefined [-Wsequence-point] psm->m_iFrame = ++psm->m_iFrame % psm->m_nFrames; ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fastmodels.cpp: In function 'void G3RenderDamageLightnings(CObject*, short int, short int, CAngleVector*, CFixVector*, int)': fastmodels.cpp:732:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!(SHOW_LIGHTNING && gameOpts->render.lightning.bDamage)) ^~ fastmodels.cpp:735:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' RenderModel::CModel* pm; ^~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from fastmodels.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from fastmodels.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fastmodels.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fastmodels.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fastmodels.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fastmodels.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fastmodels.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from fastmodels.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/3d.h:20, from clipper.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from clipper.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fastmodels.cpp:39: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fastmodels.cpp:39: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fastmodels.cpp:39: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fastmodels.cpp:39: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from fastmodels.cpp:40: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from fastmodels.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fastmodels.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fastmodels.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fastmodels.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fastmodels.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fastmodels.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from fastmodels.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fastmodels.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from fastmodels.cpp:34: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fastmodels.cpp:39: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fastmodels.cpp:39: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from fastmodels.cpp:40: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/error.h:19, from fastmodels.cpp:20: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from fastmodels.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from fastmodels.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fastmodels.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from fastmodels.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from fastmodels.cpp:34: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/error.h:19, from fastmodels.cpp:20: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from fastmodels.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fastmodels.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fastmodels.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ase2model.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ase2model.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ase2model.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ase2model.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ase2model.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ase2model.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ase2model.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::Copy(CArray<_T>&, uint) [with _T = CBitmap; uint = unsigned int]': ../include/carray.h:234:54: required from '_T& CArray<_T>::operator=(CArray<_T>&) [with _T = CBitmap]' ase2model.cpp:141:29: required from here ../include/carray.h:245:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer + offset, source.m_data.buffer, ((m_data.length - offset < source.m_data.length) ? m_data.length - offset : source.m_data.length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from ase2model.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ase2model.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ase2model.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ase2model.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ase2model.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBitmap]': ../include/carray.h:244:80: required from '_T& CArray<_T>::Copy(CArray<_T>&, uint) [with _T = CBitmap; uint = unsigned int]' ../include/carray.h:234:54: required from '_T& CArray<_T>::operator=(CArray<_T>&) [with _T = CBitmap]' ase2model.cpp:141:29: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from ase2model.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ase2model.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ase2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ase2model.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from draw.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from draw.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from draw.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from draw.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from draw.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from draw.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from draw.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from draw.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from draw.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from draw.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from draw.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from draw.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from draw.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from draw.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from draw.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from draw.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from draw.cpp:31: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from draw.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from draw.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from draw.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from draw.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from draw.cpp:31: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from draw.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from draw.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from draw.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/ase2model.Tpo .deps/ase2model.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT globvars.o -MD -MP -MF .deps/globvars.Tpo -c -o globvars.o globvars.cpp mv -f .deps/clipper.Tpo .deps/clipper.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT hitbox.o -MD -MP -MF .deps/hitbox.Tpo -c -o hitbox.o hitbox.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from globvars.cpp:18: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from globvars.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from globvars.cpp:18: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/3d.h:20, from globvars.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from globvars.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/3d.h:20, from globvars.cpp:18: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from globvars.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/3d.h:20, from globvars.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from globvars.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ mv -f .deps/globvars.Tpo .deps/globvars.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT interp.o -MD -MP -MF .deps/interp.Tpo -c -o interp.o interp.cpp mv -f .deps/fastmodels.Tpo .deps/fastmodels.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT matrix.o -MD -MP -MF .deps/matrix.Tpo -c -o matrix.o matrix.cpp mv -f .deps/draw.Tpo .deps/draw.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT oof2model.o -MD -MP -MF .deps/oof2model.Tpo -c -o oof2model.o oof2model.cpp In file included from ../include/gr.h:20, from ../include/error.h:19, from oof2model.cpp:20: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/error.h:19, from oof2model.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/error.h:19, from oof2model.cpp:20: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from matrix.cpp:18: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from matrix.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from matrix.cpp:18: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from interp.cpp:20: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/error.h:19, from interp.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/error.h:19, from interp.cpp:20: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from hitbox.cpp:20: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/error.h:19, from hitbox.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/error.h:19, from hitbox.cpp:20: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ buildmodel.cpp: In member function 'void RenderModel::CModel::Setup(int, int)': buildmodel.cpp:323:25: warning: 'psm' may be used uninitialized in this function [-Wmaybe-uninitialized] for (nId = 0, j = psm->m_nFaces - 1; j; j--) { ~~~~~^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from oof2model.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from oof2model.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oof2model.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oof2model.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oof2model.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from oof2model.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from oof2model.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from oof2model.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from matrix.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from matrix.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from interp.cpp:40: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from matrix.cpp:18: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from matrix.cpp:18: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from matrix.cpp:18: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from matrix.cpp:18: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from matrix.cpp:18: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from matrix.cpp:18: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from matrix.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from matrix.cpp:18: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from matrix.cpp:18: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from matrix.cpp:18: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from interp.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from matrix.cpp:18: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from interp.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from matrix.cpp:18: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from matrix.cpp:18: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from matrix.cpp:18: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from matrix.cpp:18: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from matrix.cpp:18: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from interp.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from matrix.cpp:18: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from matrix.cpp:18: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from interp.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from interp.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from matrix.cpp:18: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from matrix.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from matrix.cpp:18: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from interp.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from interp.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from interp.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from interp.cpp:40: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from interp.cpp:40: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from interp.cpp:40: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from interp.cpp:40: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from interp.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from hitbox.cpp:35: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from hitbox.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from hitbox.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hitbox.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hitbox.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hitbox.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hitbox.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hitbox.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from hitbox.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from interp.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hitbox.cpp:35: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from interp.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hitbox.cpp:35: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from interp.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hitbox.cpp:35: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hitbox.cpp:35: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from hitbox.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from interp.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from interp.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from interp.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from interp.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hitbox.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hitbox.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from interp.cpp:34: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hitbox.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from interp.cpp:40: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from interp.cpp:40: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hitbox.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from interp.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from interp.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:2008, from hitbox.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from interp.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from interp.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from hitbox.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from interp.cpp:34: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hitbox.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from interp.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from hitbox.cpp:31: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hitbox.cpp:35: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hitbox.cpp:35: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hitbox.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from hitbox.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hitbox.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hitbox.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from hitbox.cpp:31: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hitbox.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hitbox.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hitbox.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from interp.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from interp.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/buildmodel.Tpo .deps/buildmodel.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT pof2model.o -MD -MP -MF .deps/pof2model.Tpo -c -o pof2model.o pof2model.cpp In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from oof2model.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oof2model.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oof2model.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oof2model.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from oof2model.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from oof2model.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from oof2model.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from oof2model.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::Copy(CArray<_T>&, uint) [with _T = CBitmap; uint = unsigned int]': ../include/carray.h:234:54: required from '_T& CArray<_T>::operator=(CArray<_T>&) [with _T = CBitmap]' oof2model.cpp:159:29: required from here ../include/carray.h:245:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer + offset, source.m_data.buffer, ((m_data.length - offset < source.m_data.length) ? m_data.length - offset : source.m_data.length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from oof2model.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from oof2model.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from oof2model.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from oof2model.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from oof2model.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBitmap]': ../include/carray.h:244:80: required from '_T& CArray<_T>::Copy(CArray<_T>&, uint) [with _T = CBitmap; uint = unsigned int]' ../include/carray.h:234:54: required from '_T& CArray<_T>::operator=(CArray<_T>&) [with _T = CBitmap]' oof2model.cpp:159:29: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from oof2model.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from oof2model.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from oof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from oof2model.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/matrix.Tpo .deps/matrix.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT points.o -MD -MP -MF .deps/points.Tpo -c -o points.o points.cpp mv -f .deps/hitbox.Tpo .deps/hitbox.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT rod.o -MD -MP -MF .deps/rod.Tpo -c -o rod.o rod.cpp In file included from ../include/gr.h:20, from ../include/error.h:19, from pof2model.cpp:20: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/error.h:19, from pof2model.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/error.h:19, from pof2model.cpp:20: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/oof2model.Tpo .deps/oof2model.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT setup.o -MD -MP -MF .deps/setup.Tpo -c -o setup.o setup.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rod.cpp:18: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rod.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from rod.cpp:18: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from pof2model.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from pof2model.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from pof2model.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from pof2model.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from pof2model.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from pof2model.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from pof2model.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from pof2model.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from pof2model.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from pof2model.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from pof2model.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from pof2model.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from pof2model.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from pof2model.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from pof2model.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from pof2model.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from pof2model.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from pof2model.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from pof2model.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from pof2model.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from pof2model.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from pof2model.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from pof2model.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from points.cpp:18: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from points.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from points.cpp:18: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/3d.h:20, from points.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from points.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/3d.h:20, from points.cpp:18: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from points.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/3d.h:20, from points.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from points.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from setup.cpp:20: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from setup.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from setup.cpp:20: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/points.Tpo .deps/points.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT shadows.o -MD -MP -MF .deps/shadows.Tpo -c -o shadows.o shadows.cpp In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rod.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rod.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rod.cpp:18: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rod.cpp:18: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rod.cpp:18: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rod.cpp:18: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rod.cpp:18: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from rod.cpp:18: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rod.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rod.cpp:18: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rod.cpp:18: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rod.cpp:18: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rod.cpp:18: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rod.cpp:18: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from rod.cpp:18: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rod.cpp:18: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from rod.cpp:24: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from rod.cpp:18: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from rod.cpp:18: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rod.cpp:18: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from rod.cpp:18: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from rod.cpp:24: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from rod.cpp:18: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from rod.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rod.cpp:18: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/rod.Tpo .deps/rod.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT transformation.o -MD -MP -MF .deps/transformation.Tpo -c -o transformation.o transformation.cpp In file included from ../include/gr.h:20, from ../include/error.h:19, from shadows.cpp:20: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/error.h:19, from shadows.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/error.h:19, from shadows.cpp:20: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from setup.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from setup.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from setup.cpp:20: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from setup.cpp:20: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from setup.cpp:20: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from setup.cpp:20: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from setup.cpp:20: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from setup.cpp:20: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from setup.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from setup.cpp:20: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from setup.cpp:20: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from setup.cpp:20: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from setup.cpp:20: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from setup.cpp:20: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from setup.cpp:20: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from setup.cpp:20: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from setup.cpp:20: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from setup.cpp:20: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from setup.cpp:20: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from setup.cpp:20: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from setup.cpp:20: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from setup.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from setup.cpp:20: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from shadows.cpp:36: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ shadows.cpp: In function 'int LineHitsFace(CFixVector*, CFixVector*, CFixVector*, short int, short int)': shadows.cpp:911:21: warning: variable 'nVerts' set but not used [-Wunused-but-set-variable] short i, nFaces, nVerts; ^~~~~~ shadows.cpp: In function 'float NearestShadowedWallDist(short int, short int, CFixVector*, float)': shadows.cpp:931:25: warning: variable 'nParent' set but not used [-Wunused-but-set-variable] int nSide, nHitSide, nParent, nChild, nWID, bHit = 0; ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from shadows.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from shadows.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from shadows.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from shadows.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from shadows.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from shadows.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from shadows.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from shadows.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from shadows.cpp:36: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from shadows.cpp:36: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from shadows.cpp:36: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from shadows.cpp:36: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Clear(ubyte, uint) [with _T = POF::CSubModel; ubyte = unsigned char; uint = unsigned int]': shadows.cpp:699:20: required from here ../include/carray.h:110:12: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class POF::CSubModel'; use assignment instead [-Wclass-memaccess] memset (m_data.buffer, filler, sizeof (_T) * ((count < m_data.length) ? count : m_data.length)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from shadows.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from shadows.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from shadows.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from shadows.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from shadows.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from shadows.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from shadows.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from shadows.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from shadows.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from shadows.cpp:32: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from shadows.cpp:36: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from shadows.cpp:36: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from shadows.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from shadows.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from shadows.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from shadows.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from shadows.cpp:32: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from shadows.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from shadows.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from shadows.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from transformation.cpp:20: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from transformation.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from transformation.cpp:20: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/setup.Tpo .deps/setup.Po mv -f .deps/interp.Tpo .deps/interp.Po mv -f .deps/pof2model.Tpo .deps/pof2model.Po In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from transformation.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from transformation.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from transformation.cpp:20: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from transformation.cpp:20: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from transformation.cpp:20: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from transformation.cpp:20: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from transformation.cpp:20: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from transformation.cpp:20: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from transformation.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from transformation.cpp:20: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from transformation.cpp:20: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from transformation.cpp:20: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from transformation.cpp:20: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from transformation.cpp:20: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from transformation.cpp:20: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from transformation.cpp:20: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from transformation.cpp:20: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from transformation.cpp:20: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from transformation.cpp:20: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from transformation.cpp:20: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from transformation.cpp:20: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from transformation.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from transformation.cpp:20: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/transformation.Tpo .deps/transformation.Po mv -f .deps/shadows.Tpo .deps/shadows.Po rm -f lib3d.a ar cru lib3d.a ase2model.o buildmodel.o clipper.o draw.o fastmodels.o globvars.o hitbox.o interp.o matrix.o oof2model.o pof2model.o points.o rod.o setup.o shadows.o transformation.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib lib3d.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/3d' Making all in ai gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/ai' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT ai.o -MD -MP -MF .deps/ai.Tpo -c -o ai.o ai.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT aianimate.o -MD -MP -MF .deps/aianimate.Tpo -c -o aianimate.o aianimate.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT aiboss.o -MD -MP -MF .deps/aiboss.Tpo -c -o aiboss.o aiboss.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT aifire.o -MD -MP -MF .deps/aifire.Tpo -c -o aifire.o aifire.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT aiframe.o -MD -MP -MF .deps/aiframe.Tpo -c -o aiframe.o aiframe.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aiframe.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aiframe.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from aiframe.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aifire.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aifire.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from aifire.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aiboss.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aiboss.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from aiboss.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aiboss.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aiboss.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aiboss.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aiboss.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aiboss.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aiboss.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aiboss.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from aiboss.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aiboss.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ai.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ai.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from ai.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aiboss.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aiboss.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aiboss.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aiboss.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aiboss.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from aiboss.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from aiboss.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from aiboss.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aiboss.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from aiboss.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aiboss.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aiboss.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from aiboss.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aiboss.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from aiboss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from aiboss.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aianimate.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aianimate.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from aianimate.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/cfile.h:26, from ../include/carray.h:20, from ../include/descent.h:25, from aifire.cpp:23: aifire.cpp: In function 'void AIFireLaserAtTarget(CObject*, CFixVector*, int, CFixVector*)': ../include/maths.h:31:40: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] #define I2X(i) ((static_cast (i)) * 65536) ^ ../include/maths.h:55:44: note: in definition of macro 'FixDiv' #define FixDiv(_a, _b) (static_cast ((_b) ? (((static_cast (_a)) * 65536) / (static_cast (_b))) : 1)) ^~ ../include/player.h:59:33: note: in expansion of macro 'I2X' #define CLOAK_TIME_MAX I2X (30) ^~~ aifire.cpp:219:59: note: in expansion of macro 'CLOAK_TIME_MAX' (d_rand () > FixDiv (gameData.time.xGame - xCloakTime, CLOAK_TIME_MAX) / 2)) { ^~~~~~~~~~~~~~ aifire.cpp: In function 'void AIDoActualFiringStuff(CObject*, tAIStaticInfo*, tAILocalInfo*, tRobotInfo*, int)': aifire.cpp:485:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if ((aiP->behavior != AIB_RUN_FROM) && ^~ aifire.cpp:492:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' aiP->GOAL_STATE = AIS_RECOVER; ^~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aifire.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ aiframe.cpp: In function 'int AIBossHandler(CObject*, tAIStateInfo*)': aiframe.cpp:967:7: warning: variable 'dtp' set but not used [-Wunused-but-set-variable] fix dtp = gameData.ai.target.xDist / 4; ^~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aifire.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aifire.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aifire.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aifire.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aiframe.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aiframe.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aifire.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aifire.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from aifire.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ mv -f .deps/aiboss.Tpo .deps/aiboss.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT aiinit.o -MD -MP -MF .deps/aiinit.Tpo -c -o aiinit.o aiinit.cpp In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aifire.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aiframe.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aiframe.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ai.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aiframe.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ai.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aifire.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aifire.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aifire.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aiframe.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aifire.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aiframe.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aifire.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ai.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ai.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ai.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from aiframe.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ai.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aiframe.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ai.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ai.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aiframe.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aiframe.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aiframe.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ai.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aiframe.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aiframe.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from aiframe.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ai.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from aiframe.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ai.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ai.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aiframe.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from aiframe.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ai.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ai.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aiframe.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aiframe.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aiframe.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ai.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiframe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from aiframe.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ai.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ai.cpp:24: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ai.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ai.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ai.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ai.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ai.cpp:24: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ai.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ai.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ai.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from aifire.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from aifire.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from aifire.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aifire.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from aifire.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aifire.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aifire.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from aifire.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aifire.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from aifire.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from aifire.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aianimate.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aianimate.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aianimate.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aianimate.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aianimate.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aianimate.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aianimate.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from aianimate.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aianimate.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aianimate.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aianimate.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aianimate.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aianimate.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aianimate.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from aianimate.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from aianimate.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aianimate.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from aianimate.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aianimate.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aianimate.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aianimate.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from aianimate.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from aianimate.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aiinit.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aiinit.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from aiinit.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/aifire.Tpo .deps/aifire.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT ailib.o -MD -MP -MF .deps/ailib.Tpo -c -o ailib.o ailib.cpp mv -f .deps/ai.Tpo .deps/ai.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT aimove.o -MD -MP -MF .deps/aimove.Tpo -c -o aimove.o aimove.cpp mv -f .deps/aianimate.Tpo .deps/aianimate.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT aipath.o -MD -MP -MF .deps/aipath.Tpo -c -o aipath.o aipath.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aimove.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aimove.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from aimove.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ailib.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ailib.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from ailib.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aipath.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aipath.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from aipath.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aimove.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aimove.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aimove.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aimove.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aimove.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aimove.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aimove.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from aimove.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aimove.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aimove.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aimove.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aimove.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aimove.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aimove.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from aimove.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from aimove.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from aimove.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aimove.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aiinit.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from aimove.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aiinit.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aimove.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aimove.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from aimove.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aimove.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from aimove.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from aimove.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aiinit.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aiinit.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aiinit.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aiinit.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aiinit.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from aiinit.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aiinit.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aiinit.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aiinit.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aiinit.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aiinit.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aiinit.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from aiinit.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from aiinit.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from aiinit.cpp:26: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aiinit.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from aiinit.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aiinit.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aiinit.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from aiinit.cpp:26: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aiinit.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from aiinit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from aiinit.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/aiinit.Tpo .deps/aiinit.Po mv -f .deps/aiframe.Tpo .deps/aiframe.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT aisave.o -MD -MP -MF .deps/aisave.Tpo -c -o aisave.o aisave.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT aisnipe.o -MD -MP -MF .deps/aisnipe.Tpo -c -o aisnipe.o aisnipe.cpp aipath.cpp: In function 'void AttemptToResumePath(CObject*)': aipath.cpp:1349:9: warning: variable 'nAbsIndex' set but not used [-Wunused-but-set-variable] int nAbsIndex, nNewPathIndex; ^~~~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aipath.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aipath.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aipath.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aipath.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aipath.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aipath.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aipath.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from aipath.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aipath.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aipath.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aipath.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aipath.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aipath.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aipath.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from aipath.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from aipath.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aipath.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from aipath.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aipath.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aipath.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aipath.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from aipath.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from aipath.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ ailib.cpp: In function 'int AICanFireAtTarget(CObject*, CFixVector*, CFixVector*)': ailib.cpp:104:15: warning: variable 'h' set but not used [-Wunused-but-set-variable] fix nSize, h; ^ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ailib.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ailib.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ailib.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ailib.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ailib.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ailib.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ailib.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ailib.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ailib.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ailib.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ailib.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ailib.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ailib.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ailib.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ailib.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ailib.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ailib.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ailib.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ailib.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ailib.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ailib.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ailib.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ailib.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ailib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ailib.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aisnipe.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aisnipe.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from aisnipe.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aisave.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aisave.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from aisave.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/ailib.Tpo .deps/ailib.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT escort.o -MD -MP -MF .deps/escort.Tpo -c -o escort.o escort.cpp mv -f .deps/aimove.Tpo .deps/aimove.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT thief.o -MD -MP -MF .deps/thief.Tpo -c -o thief.o thief.cpp aisave.cpp: In member function 'int CSaveGameManager::LoadAIUniFormat()': aisave.cpp:239:21: warning: variable 'nRouteSegs' set but not used [-Wunused-but-set-variable] int h, i, j, fPos, nRouteSegs; ^~~~~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aisave.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aisave.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aisave.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aisave.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aisave.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aisave.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aisave.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from aisave.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aisave.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aisave.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aisave.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aisave.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aisave.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aisave.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from aisave.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from aisave.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aisave.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from aisave.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aisave.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aisave.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aisave.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from aisave.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from aisave.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from thief.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from thief.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from thief.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ aipath.cpp: In function 'void AIFollowPath(CObject*, int, int, CFixVector*)': aipath.cpp:946:22: warning: 'nGoalSeg' may be used uninitialized in this function [-Wmaybe-uninitialized] MoveObjectToGoal (objP, &vGoalPoint, nGoalSeg); ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from escort.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from escort.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from escort.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ escort.cpp: In function 'void EscortSetSpecialGoal(int)': escort.cpp:412:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (special_key == KEY_0) ^~ escort.cpp:414:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (gameData.escort.bSearchingMarker != -1) ^~ escort.cpp: In function 'int GetBossId()': escort.cpp:461:6: warning: variable 'h' set but not used [-Wunused-but-set-variable] int h, i; ^ escort.cpp: In function 'int ExistsInMine2(int, int, int, int)': escort.cpp:479:7: warning: variable 'id' set but not used [-Wunused-but-set-variable] int id; ^~ escort.cpp: In function 'int EscortSetGoalObject()': escort.cpp:804:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (int i = 0; i < extraGameInfo [0].nBossCount; i++) ^~~ escort.cpp:807:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' return ESCORT_GOAL_CONTROLCEN; ^~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from thief.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from thief.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from thief.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from thief.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from thief.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from thief.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from thief.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from thief.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from thief.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from thief.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from thief.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from thief.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from thief.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from thief.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from thief.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aisnipe.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aisnipe.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from thief.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from thief.cpp:25: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from thief.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from thief.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aisnipe.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from thief.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from thief.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aisnipe.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aisnipe.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from thief.cpp:25: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from thief.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from thief.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from thief.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aisnipe.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aisnipe.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from aisnipe.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aisnipe.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aisnipe.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aisnipe.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aisnipe.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aisnipe.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aisnipe.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from aisnipe.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from aisnipe.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aisnipe.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from aisnipe.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aisnipe.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aisnipe.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aisnipe.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from aisnipe.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from aisnipe.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/aisave.Tpo .deps/aisave.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT d1_ai.o -MD -MP -MF .deps/d1_ai.Tpo -c -o d1_ai.o d1_ai.cpp escort.cpp: In function 'void DoEscortMenu()': escort.cpp:1093:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (gameStates.app.bD1Mission) ^~ escort.cpp:1096:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int i; ^~~ escort.cpp:1097:7: warning: variable 'paused' set but not used [-Wunused-but-set-variable] int paused; ^~~~~~ escort.cpp: In function 'void CreateBuddyBot()': escort.cpp:1220:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (buddy_id = 0; buddy_id < gameData.bots.nTypes [0]; buddy_id++) ^~~ escort.cpp:1224:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' if (buddy_id == gameData.bots.nTypes [0]) { ^~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from escort.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from escort.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from escort.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from escort.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from escort.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from escort.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from escort.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from escort.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from escort.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from escort.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from escort.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from escort.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from escort.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from escort.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from escort.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from escort.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from escort.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from escort.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from escort.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from escort.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from escort.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from escort.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from escort.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from escort.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from escort.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/thief.Tpo .deps/thief.Po In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from d1_ai.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from d1_ai.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ mv -f .deps/aipath.Tpo .deps/aipath.Po In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from d1_ai.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/aisnipe.Tpo .deps/aisnipe.Po In file included from ../include/cfile.h:26, from ../include/carray.h:20, from ../include/descent.h:25, from d1_ai.cpp:21: d1_ai.cpp: In function 'void ai_fire_laser_at_player(CObject*, CFixVector*)': ../include/maths.h:31:40: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] #define I2X(i) ((static_cast (i)) * 65536) ^ ../include/maths.h:55:44: note: in definition of macro 'FixDiv' #define FixDiv(_a, _b) (static_cast ((_b) ? (((static_cast (_a)) * 65536) / (static_cast (_b))) : 1)) ^~ ../include/player.h:59:33: note: in expansion of macro 'I2X' #define CLOAK_TIME_MAX I2X (30) ^~~ d1_ai.cpp:786:60: note: in expansion of macro 'CLOAK_TIME_MAX' if (d_rand() > FixDiv(gameData.time.xGame - cloak_time, CLOAK_TIME_MAX)/2) { ^~~~~~~~~~~~~~ d1_ai.cpp: In function 'void move_object_to_legal_spot(CObject*)': d1_ai.cpp:1280:10: warning: variable 'dist_to_center' set but not used [-Wunused-but-set-variable] fix dist_to_center; ^~~~~~~~~~~~~~ d1_ai.cpp: In function 'void do_boss_stuff(CObject*)': d1_ai.cpp:1528:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (gameData.bosses [0].m_nLastGateTime > gameData.time.xGame) ^~ d1_ai.cpp:1531:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (!gameData.bosses [0].m_nDying) { ^~ d1_ai.cpp: In function 'void DoD1AIFrame(CObject*)': d1_ai.cpp:1734:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (DoAnyRobotDyingFrame (objP)) ^~ d1_ai.cpp:1740:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if ((aiP->GOAL_STATE == D1_AIS_FLIN) && (ailP->nextPrimaryFire < 0)) { ^~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from d1_ai.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from d1_ai.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from d1_ai.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from d1_ai.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from d1_ai.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from d1_ai.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from d1_ai.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from d1_ai.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from d1_ai.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from d1_ai.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from d1_ai.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from d1_ai.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from d1_ai.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from d1_ai.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from d1_ai.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from d1_ai.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from d1_ai.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from d1_ai.cpp:21: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from d1_ai.cpp:21: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from d1_ai.cpp:21: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from d1_ai.cpp:21: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from d1_ai.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from d1_ai.cpp:21: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from d1_ai.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from d1_ai.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/escort.Tpo .deps/escort.Po mv -f .deps/d1_ai.Tpo .deps/d1_ai.Po rm -f libai.a ar cru libai.a ai.o aianimate.o aiboss.o aifire.o aiframe.o aiinit.o ailib.o aimove.o aipath.o aisave.o aisnipe.o escort.o thief.o d1_ai.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib libai.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/ai' Making all in audio gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/audio' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT audio.o -MD -MP -MF .deps/audio.Tpo -c -o audio.o audio.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT objectaudio.o -MD -MP -MF .deps/objectaudio.Tpo -c -o objectaudio.o objectaudio.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT rbaudio.o -MD -MP -MF .deps/rbaudio.Tpo -c -o rbaudio.o rbaudio.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT songs.o -MD -MP -MF .deps/songs.Tpo -c -o songs.o songs.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT soundthreads.o -MD -MP -MF .deps/soundthreads.Tpo -c -o soundthreads.o soundthreads.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from audio.cpp:17: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from audio.cpp:17: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from audio.cpp:17: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rbaudio.cpp:26: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rbaudio.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from rbaudio.cpp:26: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rbaudio.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rbaudio.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rbaudio.cpp:26: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rbaudio.cpp:26: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rbaudio.cpp:26: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rbaudio.cpp:26: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rbaudio.cpp:26: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from rbaudio.cpp:26: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rbaudio.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rbaudio.cpp:26: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rbaudio.cpp:26: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rbaudio.cpp:26: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rbaudio.cpp:26: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rbaudio.cpp:26: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from rbaudio.cpp:26: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rbaudio.cpp:26: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from rbaudio.cpp:26: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from rbaudio.cpp:26: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rbaudio.cpp:26: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from rbaudio.cpp:26: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from rbaudio.cpp:26: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from rbaudio.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rbaudio.cpp:26: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ rbaudio.cpp: In function 'void RBAInit()': rbaudio.cpp:70:10: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 255 equals destination size [-Wstringop-truncation] strncpy (szDrive, pszArgList [i], sizeof (szDrive)); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from songs.cpp:26: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from songs.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objectaudio.cpp:24: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objectaudio.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from songs.cpp:26: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from objectaudio.cpp:24: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from audio.cpp:24: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cfile.h:26, from ../include/carray.h:20, from ../include/descent.h:25, from audio.cpp:17: audio.cpp: In member function 'void CAudioChannel::SetVolume(int)': ../include/maths.h:31:40: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] #define I2X(i) ((static_cast (i)) * 65536) ^ ../include/maths.h:56:40: note: in definition of macro 'FixMulDiv' #define FixMulDiv(_a, _b, _c) ((fix) ((_c) ? (((static_cast (_a)) * (static_cast (_b))) / (static_cast (_c))) : 1)) ^~ audio.cpp:196:56: note: in expansion of macro 'I2X' m_info.nVolume = FixMulDiv (nVolume, audio.Volume (), I2X (1)); ^~~ audio.cpp: In member function 'int CAudioChannel::Speedup(CSoundSample*, int)': ../include/maths.h:31:40: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] #define I2X(i) ((static_cast (i)) * 65536) ^ ../include/maths.h:56:40: note: in definition of macro 'FixMulDiv' #define FixMulDiv(_a, _b, _c) ((fix) ((_c) ? (((static_cast (_a)) * (static_cast (_b))) / (static_cast (_c))) : 1)) ^~ audio.cpp:422:95: note: in expansion of macro 'I2X' l = FixMulDiv (m_info.bResampled ? m_info.nLength : soundP->nLength [soundP->bCustom], speed, I2X (1)); ^~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from songs.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from songs.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from songs.cpp:26: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from songs.cpp:26: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from songs.cpp:26: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from songs.cpp:26: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from songs.cpp:26: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from songs.cpp:26: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from songs.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from songs.cpp:26: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from songs.cpp:26: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from songs.cpp:26: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from songs.cpp:26: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from songs.cpp:26: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ audio.cpp: In member function 'fix CAudioChannel::Duration()': audio.cpp:469:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!m_info.mixChunkP) ^~ audio.cpp:472:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' fix nTime = m_info.mixChunkP->alen / 2; ^~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from songs.cpp:26: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from songs.cpp:26: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from songs.cpp:26: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from songs.cpp:26: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from songs.cpp:26: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from songs.cpp:26: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from songs.cpp:26: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from songs.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from songs.cpp:26: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ songs.cpp: In function 'int CSongManager::PlayModSong(char*, int)': songs.cpp:353:22: warning: '.ogg' directive writing 4 bytes into a region of size between 0 and 254 [-Wformat-overflow=] sprintf (szFilename, "%s/%s.ogg", gameFolders.szMusicDir, pszSong); ^~~~~~~~~~~ songs.cpp:353:9: note: 'sprintf' output 6 or more bytes (assuming 260) into a destination of size 255 sprintf (szFilename, "%s/%s.ogg", gameFolders.szMusicDir, pszSong); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objectaudio.cpp:38: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ objectaudio.cpp: In member function 'void CAudio::Cleanup()': objectaudio.cpp:422:16: warning: variable 'soundObjP' set but not used [-Wunused-but-set-variable] CSoundObject* soundObjP; ^~~~~~~~~ objectaudio.cpp: In member function 'int CAudio::DestroyObjectSound(int)': objectaudio.cpp:480:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nObject == LOCALPLAYER.nObject) ^~ objectaudio.cpp:483:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' uint i = m_objects.ToS (); ^~~~ objectaudio.cpp: In member function 'int CAudio::DestroySegmentSound(short int, short int, short int)': objectaudio.cpp:588:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nSound != -1) ^~ objectaudio.cpp:591:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int nKilled = 0; ^~~ objectaudio.cpp: In member function 'void CAudio::SyncSounds()': objectaudio.cpp:626:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!OBJECTS.Buffer ()) ^~ objectaudio.cpp:629:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int nOldVolume, nOldPan, nAudioVolume = audio.Volume (); ^~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objectaudio.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objectaudio.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objectaudio.cpp:24: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objectaudio.cpp:24: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objectaudio.cpp:24: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objectaudio.cpp:24: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objectaudio.cpp:24: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from objectaudio.cpp:24: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objectaudio.cpp:38: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objectaudio.cpp:38: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objectaudio.cpp:38: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objectaudio.cpp:38: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objectaudio.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objectaudio.cpp:24: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objectaudio.cpp:24: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objectaudio.cpp:24: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from audio.cpp:17: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from audio.cpp:17: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objectaudio.cpp:24: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objectaudio.cpp:24: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from objectaudio.cpp:24: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objectaudio.cpp:24: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from objectaudio.cpp:37: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objectaudio.cpp:38: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from audio.cpp:17: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objectaudio.cpp:38: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CSoundObject]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CSoundObject; uint = unsigned int]' objectaudio.cpp:351:22: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CSoundObject'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from objectaudio.cpp:24: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from audio.cpp:17: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from audio.cpp:17: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from objectaudio.cpp:24: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from objectaudio.cpp:24: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objectaudio.cpp:24: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from objectaudio.cpp:24: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from objectaudio.cpp:37: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from objectaudio.cpp:24: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from objectaudio.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objectaudio.cpp:24: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from audio.cpp:17: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from audio.cpp:17: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from audio.cpp:17: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from audio.cpp:24: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from audio.cpp:24: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from audio.cpp:24: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from audio.cpp:24: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CAudioChannel]': audio.cpp:666:17: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from audio.cpp:17: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CAudioChannel]': audio.cpp:693:39: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CAudioChannel' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from audio.cpp:17: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CSoundObject]': audio.cpp:695:36: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CSoundObject'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from audio.cpp:17: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from audio.cpp:17: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from audio.cpp:17: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from audio.cpp:17: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from audio.cpp:17: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from audio.cpp:17: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from audio.cpp:17: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from audio.cpp:17: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from audio.cpp:17: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from audio.cpp:24: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from audio.cpp:24: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CAudioChannel]' audio.cpp:666:17: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from audio.cpp:17: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CSoundObject]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CSoundObject]' audio.cpp:666:17: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from audio.cpp:17: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from audio.cpp:17: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from audio.cpp:17: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from audio.cpp:17: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CSoundObject]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CSoundObject]' audio.cpp:666:17: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from audio.cpp:17: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from audio.cpp:17: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from audio.cpp:17: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/songs.h:18, from soundthreads.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/soundthreads.h:17, from soundthreads.cpp:11: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/rbaudio.Tpo .deps/rbaudio.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT midi.o -MD -MP -MF .deps/midi.Tpo -c -o midi.o `test -f './win32/midi.cpp' || echo './'`./win32/midi.cpp mv -f .deps/soundthreads.Tpo .deps/soundthreads.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT hmiplay.o -MD -MP -MF .deps/hmiplay.Tpo -c -o hmiplay.o `test -f './linux/hmiplay.cpp' || echo './'`./linux/hmiplay.cpp objectaudio.cpp: In member function 'int CAudio::CreateObjectSound(short int, int, short int, int, fix, fix, int, int, const char*, int)': objectaudio.cpp:368:10: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 255 equals destination size [-Wstringop-truncation] strncpy (soundObjP->m_szSound, pszSound, sizeof (soundObjP->m_szSound)); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/hmiplay.Tpo .deps/hmiplay.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT hmistub.o -MD -MP -MF .deps/hmistub.Tpo -c -o hmistub.o `test -f './linux/hmistub.cpp' || echo './'`./linux/hmistub.cpp objectaudio.cpp: In member function 'int CAudio::CreateSegmentSound(short int, short int, short int, CFixVector&, int, fix, fix, const char*)': objectaudio.cpp:557:10: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 255 equals destination size [-Wstringop-truncation] strncpy (soundObjP->m_szSound, pszSound, sizeof (soundObjP->m_szSound)); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/hmistub.Tpo .deps/hmistub.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT hmpfile.o -MD -MP -MF .deps/hmpfile.Tpo -c -o hmpfile.o `test -f './linux/hmpfile.cpp' || echo './'`./linux/hmpfile.cpp songs.cpp: In member function 'void CSongManager::PlayLevelSong(int, int, bool)': songs.cpp:437:20: warning: '%s' directive writing up to 254 bytes into a region of size between 0 and 255 [-Wformat-overflow=] sprintf (szSong, "%s%s%s", gameFolders.szCacheDir, *gameFolders.szCacheDir ? "/" : "", szFilename); ^~~~~~~~ ~~~~~~~~~~ songs.cpp:437:11: note: 'sprintf' output between 1 and 510 bytes into a destination of size 255 sprintf (szSong, "%s%s%s", gameFolders.szCacheDir, *gameFolders.szCacheDir ? "/" : "", szFilename); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ songs.cpp:446:24: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf (szFilename, "%s/%s", gameFolders.szMusicDir, m_user.levelSongs [1][nSong % m_user.nLevelSongs [1]]); ^~~~~~~ songs.cpp:446:11: note: 'sprintf' output 2 or more bytes (assuming 256) into a destination of size 255 sprintf (szFilename, "%s/%s", gameFolders.szMusicDir, m_user.levelSongs [1][nSong % m_user.nLevelSongs [1]]); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ songs.cpp:450:23: warning: '/level' directive writing 6 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (szFilename, "%s/level%02d.ogg", gameFolders.szMusicDir, nSong); ^~~~~~~~~~~~~~~~~~ songs.cpp:450:23: note: directive argument in the range [0, 2147483647] songs.cpp:450:10: note: 'sprintf' output between 13 and 275 bytes into a destination of size 255 sprintf (szFilename, "%s/level%02d.ogg", gameFolders.szMusicDir, nSong); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/songs.Tpo .deps/songs.Po In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ./win32/midi.cpp:4: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ./win32/midi.cpp:4: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from ./win32/midi.cpp:4: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ./linux/hmpfile.cpp:12: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ./linux/hmpfile.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from ./linux/hmpfile.cpp:12: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/objectaudio.Tpo .deps/objectaudio.Po In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ./win32/midi.cpp:4: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ./win32/midi.cpp:4: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./win32/midi.cpp:4: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./win32/midi.cpp:4: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./win32/midi.cpp:4: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ./win32/midi.cpp:4: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ./win32/midi.cpp:4: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ./win32/midi.cpp:4: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ./win32/midi.cpp:4: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./win32/midi.cpp:4: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./win32/midi.cpp:4: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./win32/midi.cpp:4: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ./win32/midi.cpp:4: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ./win32/midi.cpp:4: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ./linux/hmpfile.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ./win32/midi.cpp:4: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ./linux/hmpfile.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./win32/midi.cpp:4: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ./win32/midi.cpp:4: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ./win32/midi.cpp:4: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ./win32/midi.cpp:4: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ./win32/midi.cpp:4: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./linux/hmpfile.cpp:12: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ./win32/midi.cpp:4: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./win32/midi.cpp:4: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./win32/midi.cpp:4: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./linux/hmpfile.cpp:12: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./linux/hmpfile.cpp:12: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ./linux/hmpfile.cpp:12: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ./linux/hmpfile.cpp:12: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ./linux/hmpfile.cpp:12: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ./linux/hmpfile.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./linux/hmpfile.cpp:12: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./linux/hmpfile.cpp:12: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./linux/hmpfile.cpp:12: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ./linux/hmpfile.cpp:12: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ./linux/hmpfile.cpp:12: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ mv -f .deps/audio.Tpo .deps/audio.Po ./win32/midi.cpp: In member function 'int CMidi::PlaySong(char*, char*, char*, int, int)': ./win32/midi.cpp:156:20: warning: '/d2x-temp.mid' directive writing 13 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (fnSong, "%s/d2x-temp.mid", *gameFolders.szCacheDir ? gameFolders.szCacheDir : gameFolders.szHomeDir); ^~~~~~~~~~~~~~~~~ ./win32/midi.cpp:156:11: note: 'sprintf' output between 14 and 268 bytes into a destination of size 255 sprintf (fnSong, "%s/d2x-temp.mid", *gameFolders.szCacheDir ? gameFolders.szCacheDir : gameFolders.szHomeDir); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/midi.Tpo .deps/midi.Po In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ./linux/hmpfile.cpp:12: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./linux/hmpfile.cpp:12: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ./linux/hmpfile.cpp:12: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ./linux/hmpfile.cpp:12: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ./linux/hmpfile.cpp:12: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ./linux/hmpfile.cpp:12: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ./linux/hmpfile.cpp:12: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/hmpfile.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./linux/hmpfile.cpp:12: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/hmpfile.Tpo .deps/hmpfile.Po rm -f libaudio.a ar cru libaudio.a audio.o objectaudio.o rbaudio.o songs.o soundthreads.o midi.o hmiplay.o hmistub.o hmpfile.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib libaudio.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/audio' Making all in cockpit gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/cockpit' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT cockpit.o -MD -MP -MF .deps/cockpit.Tpo -c -o cockpit.o cockpit.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT cockpitdata.o -MD -MP -MF .deps/cockpitdata.Tpo -c -o cockpitdata.o cockpitdata.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT genericcockpit.o -MD -MP -MF .deps/genericcockpit.Tpo -c -o genericcockpit.o genericcockpit.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT hud.o -MD -MP -MF .deps/hud.Tpo -c -o hud.o hud.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT hudicons.o -MD -MP -MF .deps/hudicons.Tpo -c -o hudicons.o hudicons.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hud.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hud.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from hud.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cockpit.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cockpit.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from cockpit.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cockpitdata.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cockpitdata.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from cockpitdata.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hudicons.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hudicons.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from hudicons.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from genericcockpit.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from genericcockpit.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from genericcockpit.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ hudicons.cpp: In member function 'void CHUDIcons::DrawTally()': hudicons.cpp:103:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (cockpit->Hide ()) ^~ hudicons.cpp:106:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' static int objCounts [2] = {0, 0}; ^~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hudicons.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hudicons.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hudicons.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hudicons.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hudicons.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hudicons.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hudicons.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from hudicons.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hudicons.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hudicons.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hudicons.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hudicons.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hudicons.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hudicons.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from hudicons.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hudicons.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from hudicons.cpp:30: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hudicons.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from hudicons.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hudicons.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hudicons.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from hudicons.cpp:30: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hudicons.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from hudicons.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hudicons.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/transprender.h:5, from cockpit.cpp:32: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/transprender.h:5, from genericcockpit.cpp:32: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/transprender.h:5, from hud.cpp:32: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ hud.cpp: In member function 'virtual void CHUD::DrawScore()': hud.cpp:82:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (cockpit->Hide ()) ^~ hud.cpp:85:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' char szScore [40]; ^~~~ hud.cpp: In member function 'virtual void CHUD::DrawAddedScore()': hud.cpp:104:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (cockpit->Hide ()) ^~ hud.cpp:107:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int color; ^~~ hud.cpp: In member function 'virtual void CHUD::DrawHomingWarning()': hud.cpp:143:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (cockpit->Hide ()) ^~ hud.cpp:146:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' static int nIdLock = 0; ^~~~~~ hud.cpp: In member function 'virtual void CHUD::DrawKeys()': hud.cpp:168:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (cockpit->Hide ()) ^~ hud.cpp:171:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int y = 3 * m_info.nLineSpacing; ^~~ hud.cpp: In member function 'virtual void CHUD::DrawEnergy()': hud.cpp:240:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (cockpit->Hide ()) ^~ hud.cpp:243:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int h, y; ^~~ hud.cpp: In member function 'virtual void CHUD::DrawAfterburner()': hud.cpp:302:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (cockpit->Hide ()) ^~ hud.cpp:305:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int h, y; ^~~ hud.cpp: In member function 'virtual void CHUD::DrawWeapons()': hud.cpp:402:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (cockpit->Hide ()) ^~ hud.cpp:405:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int w, h, aw; ^~~ hud.cpp: In member function 'virtual void CHUD::DrawInvul()': hud.cpp:490:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (cockpit->Hide ()) ^~ hud.cpp:493:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' static int nIdInvul = 0; ^~~~~~ hud.cpp: In member function 'virtual void CHUD::DrawCloak()': hud.cpp:514:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (cockpit->Hide ()) ^~ hud.cpp:517:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' static int nIdCloak = 0; ^~~~~~ hud.cpp: In member function 'virtual void CHUD::DrawShield()': hud.cpp:539:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (cockpit->Hide ()) ^~ hud.cpp:542:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' static int nIdShield = 0; ^~~~~~ hud.cpp: In member function 'virtual void CHUD::DrawShieldBar()': hud.cpp:556:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (cockpit->Hide ()) ^~ hud.cpp:559:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' static int bShow = 1; ^~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hud.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hud.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hud.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hud.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hud.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hud.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hud.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ genericcockpit.cpp: In member function 'void CGenericCockpit::DrawSlowMotion()': genericcockpit.cpp:405:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if ((LOCALPLAYER.energy <= I2X (10)) || !(LOCALPLAYER.flags & PLAYER_FLAGS_SLOWMOTION)) ^~ genericcockpit.cpp:408:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' char szScore [40]; ^~~~ genericcockpit.cpp: In member function 'void CGenericCockpit::DrawPlayerStats()': genericcockpit.cpp:442:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (gameStates.render.bRearView) ^~ genericcockpit.cpp:445:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int h, w, aw, y; ^~~ genericcockpit.cpp: In member function 'void CGenericCockpit::DrawTimerCount()': genericcockpit.cpp:509:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (Hide ()) ^~ genericcockpit.cpp:512:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' char szScore [20]; ^~~~ genericcockpit.cpp: In member function 'void CGenericCockpit::DrawOrbs(int, int)': genericcockpit.cpp:544:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (Hide ()) ^~ genericcockpit.cpp:547:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' static int nIdOrbs = 0, nIdEntropy [2] = {0, 0}; ^~~~~~ genericcockpit.cpp: In member function 'void CGenericCockpit::DrawAmmoInfo(int, int, int, int)': genericcockpit.cpp:646:6: warning: variable 'w' set but not used [-Wunused-but-set-variable] int w; ^ genericcockpit.cpp: In member function 'void CGenericCockpit::DrawReticle(int)': genericcockpit.cpp:1031:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (cockpit->Hide ()) ^~ genericcockpit.cpp:1034:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int x, y; ^~~ genericcockpit.cpp: In member function 'int CGenericCockpit::CanSeeObject(int, int)': genericcockpit.cpp:1112:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nObject < 0) ^~ genericcockpit.cpp:1115:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CHitQuery fq; ^~~~~~~~~ genericcockpit.cpp: In member function 'void CGenericCockpit::DrawPlayerNames()': genericcockpit.cpp:1139:60: warning: variable 'bShowFlags' set but not used [-Wunused-but-set-variable] int bHasFlag, bShowName, bShowTeamNames, bShowAllNames, bShowFlags, nObject, nTeam; ^~~~~~~~~~ genericcockpit.cpp: In member function 'void CGenericCockpit::DrawKillList(int, int)': genericcockpit.cpp:1277:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!(IsMultiGame && gameData.multigame.kills.bShowList)) ^~ genericcockpit.cpp:1280:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int nPlayers, playerList [MAX_NUM_NET_PLAYERS]; ^~~ genericcockpit.cpp:1307:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (faw < 0) ^~ genericcockpit.cpp:1309:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (gameData.multigame.kills.bShowList == 2) ^~ genericcockpit.cpp: In member function 'void CGenericCockpit::DrawDamage()': genericcockpit.cpp:1473:8: warning: narrowing conversion of '3221225568' from 'uint' {aka 'unsigned int'} to 'int' inside { } is ill-formed in C++11 [-Wnarrowing] }; ^ genericcockpit.cpp:1473:8: warning: narrowing conversion of '4291821664' from 'uint' {aka 'unsigned int'} to 'int' inside { } is ill-formed in C++11 [-Wnarrowing] genericcockpit.cpp:1473:8: warning: narrowing conversion of '4278190176' from 'uint' {aka 'unsigned int'} to 'int' inside { } is ill-formed in C++11 [-Wnarrowing] genericcockpit.cpp:1473:8: warning: narrowing conversion of '4294901856' from 'uint' {aka 'unsigned int'} to 'int' inside { } is ill-formed in C++11 [-Wnarrowing] genericcockpit.cpp:1473:8: warning: narrowing conversion of '4278190176' from 'uint' {aka 'unsigned int'} to 'int' inside { } is ill-formed in C++11 [-Wnarrowing] genericcockpit.cpp:1473:8: warning: narrowing conversion of '4294901856' from 'uint' {aka 'unsigned int'} to 'int' inside { } is ill-formed in C++11 [-Wnarrowing] genericcockpit.cpp: In member function 'void CGenericCockpit::RenderWindow(int, CObject*, int, int, const char*)': genericcockpit.cpp:1957:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if ((gameStates.render.cockpit.nType >= CM_FULL_SCREEN) && (gameStates.zoom.nFactor > gameStates.zoom.nMinFactor)) ^~ genericcockpit.cpp:1960:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CCanvas windowCanv, * cockpitCanv; ^~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from genericcockpit.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from genericcockpit.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from genericcockpit.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from genericcockpit.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from genericcockpit.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from genericcockpit.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from genericcockpit.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from genericcockpit.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from genericcockpit.cpp:32: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from genericcockpit.cpp:32: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from genericcockpit.cpp:32: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from genericcockpit.cpp:32: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from genericcockpit.cpp:32: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from genericcockpit.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from genericcockpit.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from genericcockpit.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from genericcockpit.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from genericcockpit.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from genericcockpit.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from genericcockpit.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from genericcockpit.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from genericcockpit.cpp:29: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from genericcockpit.cpp:32: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from genericcockpit.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from genericcockpit.cpp:32: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from genericcockpit.cpp:32: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from genericcockpit.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from genericcockpit.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from genericcockpit.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from genericcockpit.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from genericcockpit.cpp:29: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from genericcockpit.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from genericcockpit.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from genericcockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from genericcockpit.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cockpit.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from hud.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cockpit.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from hud.cpp:32: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from hud.cpp:32: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from hud.cpp:32: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from hud.cpp:32: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ hudicons.cpp: In member function 'int CHUDIcons::LoadTallyIcons()': hudicons.cpp:70:23: warning: '/d2x-xl/' directive writing 8 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (szFilename, "%s/d2x-xl/%s", gameFolders.szTextureDir [2], pszObjTallyIcons [i]); ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hudicons.cpp:70:10: note: 'sprintf' output 9 or more bytes (assuming 263) into a destination of size 255 sprintf (szFilename, "%s/d2x-xl/%s", gameFolders.szTextureDir [2], pszObjTallyIcons [i]); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from hud.cpp:32: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ hudicons.cpp:72:24: warning: '/d2x-xl/' directive writing 8 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (szFilename, "%s/d2x-xl/%s", gameFolders.szTextureDir [0], pszObjTallyIcons [i]); ^~~~~~~~~~~~~~ hudicons.cpp:72:11: note: 'sprintf' output 9 or more bytes (assuming 263) into a destination of size 255 sprintf (szFilename, "%s/d2x-xl/%s", gameFolders.szTextureDir [0], pszObjTallyIcons [i]); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cockpit.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cockpit.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from cockpitdata.cpp:32: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hud.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hud.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hud.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hud.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hud.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hud.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from hud.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hud.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from hud.cpp:29: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from hud.cpp:32: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hud.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from hud.cpp:32: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from hud.cpp:32: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hud.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from hud.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hud.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hud.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from hud.cpp:29: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hud.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hud.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from hud.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hud.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cockpit.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cockpit.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cockpit.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from cockpit.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from cockpit.cpp:32: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from cockpit.cpp:32: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from cockpit.cpp:32: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from cockpit.cpp:32: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from cockpit.cpp:32: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cockpit.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cockpit.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cockpit.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cockpit.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cockpit.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cockpit.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from cockpit.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cockpit.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from cockpit.cpp:29: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from cockpit.cpp:32: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cockpit.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from cockpit.cpp:32: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from cockpit.cpp:32: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from cockpit.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from cockpit.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cockpit.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from cockpit.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from cockpit.cpp:29: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cockpit.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from cockpit.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cockpit.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cockpitdata.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cockpitdata.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cockpitdata.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cockpitdata.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cockpitdata.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cockpitdata.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cockpitdata.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from cockpitdata.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from cockpitdata.cpp:32: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from cockpitdata.cpp:32: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from cockpitdata.cpp:32: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from cockpitdata.cpp:32: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from cockpitdata.cpp:32: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cockpitdata.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cockpitdata.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cockpitdata.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cockpitdata.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cockpitdata.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cockpitdata.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from cockpitdata.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cockpitdata.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from cockpitdata.cpp:29: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from cockpitdata.cpp:32: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cockpitdata.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from cockpitdata.cpp:32: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from cockpitdata.cpp:32: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from cockpitdata.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from cockpitdata.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cockpitdata.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from cockpitdata.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from cockpitdata.cpp:29: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cockpitdata.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from cockpitdata.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from cockpitdata.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cockpitdata.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/cockpitdata.Tpo .deps/cockpitdata.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT hudmsgs.o -MD -MP -MF .deps/hudmsgs.Tpo -c -o hudmsgs.o hudmsgs.cpp mv -f .deps/hudicons.Tpo .deps/hudicons.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT statusbar.o -MD -MP -MF .deps/statusbar.Tpo -c -o statusbar.o statusbar.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hudmsgs.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hudmsgs.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from hudmsgs.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ genericcockpit.cpp: In member function 'void CGenericCockpit::DrawBombCount(int, int, int, int)': genericcockpit.cpp:630:23: warning: '%02d' directive writing between 2 and 5 bytes into a region of size 3 [-Wformat-overflow=] sprintf (szBombCount, "B:%02d", nBombs); ^~~~~~~~ genericcockpit.cpp:630:23: note: directive argument in the range [0, 65535] genericcockpit.cpp:630:9: note: 'sprintf' output between 5 and 8 bytes into a destination of size 5 sprintf (szBombCount, "B:%02d", nBombs); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/hud.Tpo .deps/hud.Po In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from statusbar.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from statusbar.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from statusbar.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/cockpit.Tpo .deps/cockpit.Po statusbar.cpp: In member function 'virtual void CStatusBar::DrawScore()': statusbar.cpp:96:13: warning: variable 'lastX' set but not used [-Wunused-but-set-variable] static int lastX [4] = {SB_SCORE_RIGHT_L, SB_SCORE_RIGHT_L, SB_SCORE_RIGHT_H, SB_SCORE_RIGHT_H}; ^~~~~ statusbar.cpp: In member function 'virtual void CStatusBar::DrawAddedScore()': statusbar.cpp:128:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (IsMultiGame && !IsCoopGame) ^~ statusbar.cpp:131:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int nScore, nTime; ^~~ statusbar.cpp:133:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!(nScore = cockpit->AddedScore (gameStates.render.vr.nCurrentPage))) ^~ statusbar.cpp:136:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int x, w, h, aw, color; ^~~ statusbar.cpp:139:13: warning: variable 'lastX' set but not used [-Wunused-but-set-variable] static int lastX [4] = {SB_SCORE_RIGHT_L, SB_SCORE_RIGHT_L, SB_SCORE_RIGHT_H, SB_SCORE_RIGHT_H}; ^~~~~ statusbar.cpp: In member function 'virtual void CStatusBar::DrawAfterburner()': statusbar.cpp:310:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (gameStates.app.bD1Mission) ^~ statusbar.cpp:313:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' static int nIdAfterBurner = 0; ^~~~~~ statusbar.cpp: In member function 'virtual void CStatusBar::DrawAfterburnerBar()': statusbar.cpp:339:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (gameStates.app.bD1Mission) ^~ statusbar.cpp:342:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int nEraseHeight; ^~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from statusbar.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from statusbar.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from statusbar.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from statusbar.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from statusbar.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from statusbar.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from statusbar.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from statusbar.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from statusbar.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from statusbar.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from statusbar.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from statusbar.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from statusbar.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from statusbar.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from statusbar.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from statusbar.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from statusbar.cpp:30: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from statusbar.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from statusbar.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from statusbar.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from statusbar.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from statusbar.cpp:30: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from statusbar.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from statusbar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from statusbar.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hudmsgs.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hudmsgs.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ genericcockpit.cpp: In member function 'void CGenericCockpit::RenderWindows()': genericcockpit.cpp:1737:20: warning: '%d' directive writing between 1 and 6 bytes into a region of size 3 [-Wformat-overflow=] sprintf (label, "Marker %d", gameData.marker.viewers [w]+1); ^~~~~~~~~~~ genericcockpit.cpp:1737:20: note: directive argument in the range [-32767, 32768] genericcockpit.cpp:1737:12: note: 'sprintf' output between 9 and 14 bytes into a destination of size 10 sprintf (label, "Marker %d", gameData.marker.viewers [w]+1); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hudmsgs.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hudmsgs.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hudmsgs.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hudmsgs.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hudmsgs.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from hudmsgs.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hudmsgs.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hudmsgs.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hudmsgs.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hudmsgs.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hudmsgs.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hudmsgs.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from hudmsgs.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hudmsgs.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from hudmsgs.cpp:25: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hudmsgs.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from hudmsgs.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hudmsgs.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hudmsgs.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from hudmsgs.cpp:25: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hudmsgs.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from hudmsgs.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hudmsgs.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/statusbar.Tpo .deps/statusbar.Po mv -f .deps/genericcockpit.Tpo .deps/genericcockpit.Po mv -f .deps/hudmsgs.Tpo .deps/hudmsgs.Po rm -f libcockpit.a ar cru libcockpit.a cockpit.o cockpitdata.o genericcockpit.o hud.o hudicons.o hudmsgs.o statusbar.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib libcockpit.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/cockpit' Making all in console gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/console' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT console.o -MD -MP -MF .deps/console.Tpo -c -o console.o console.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT cvar.o -MD -MP -MF .deps/cvar.Tpo -c -o cvar.o cvar.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from console.cpp:19: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from console.cpp:19: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from console.cpp:19: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cvar.cpp:25: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cvar.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from cvar.cpp:25: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ cvar.cpp: In static member function 'static CCvar* CCvar::Find(const char*)': cvar.cpp:90:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!(name && *name)) ^~ cvar.cpp:93:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CCvar *ptr; ^~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cvar.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cvar.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cvar.cpp:25: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cvar.cpp:25: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cvar.cpp:25: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cvar.cpp:25: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cvar.cpp:25: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from cvar.cpp:25: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cvar.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cvar.cpp:25: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cvar.cpp:25: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cvar.cpp:25: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cvar.cpp:25: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cvar.cpp:25: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from cvar.cpp:25: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cvar.cpp:25: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from cvar.cpp:25: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from cvar.cpp:25: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cvar.cpp:25: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from cvar.cpp:25: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from cvar.cpp:25: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from cvar.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cvar.cpp:25: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/cvar.Tpo .deps/cvar.Po In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from console.cpp:19: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from console.cpp:19: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from console.cpp:19: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from console.cpp:19: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from console.cpp:19: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from console.cpp:19: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from console.cpp:19: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from console.cpp:19: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CCharArray]': console.cpp:457:18: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CCharArray' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from console.cpp:19: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from console.cpp:19: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from console.cpp:19: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from console.cpp:19: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from console.cpp:19: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from console.cpp:19: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from console.cpp:19: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from console.cpp:19: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from console.cpp:25: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from console.cpp:19: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from console.cpp:19: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from console.cpp:19: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from console.cpp:19: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from console.cpp:25: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from console.cpp:19: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from console.cpp:19: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ console.cpp: In member function 'void CConsole::DrawCommandLine()': console.cpp:644:9: warning: 'char* strncat(char*, const char*, size_t)' accessing 1 byte at offsets 160 and 288 may overlap 1 byte at offset 288 [-Wrestrict] strncat (m_Command, m_RCommand, strlen (m_RCommand)); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ console.cpp:655:9: warning: 'char* strncat(char*, const char*, size_t)' accessing between 2147484033 and 127 bytes at offsets 544 and [-2147483488, 2147483807] may overlap 1 byte at offset [544, 2147483934] [-Wrestrict] strncat (m_VCommand, &m_Command [m_Offset], strlen (&m_Command [m_Offset])); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ console.cpp: In member function 'void CConsole::CursorRight()': console.cpp:996:10: warning: 'char* strncat(char*, const char*, size_t)' output may be truncated copying 1 byte from a string of length 127 [-Wstringop-truncation] strncat (m_LCommand, m_RCommand, 1); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ console.cpp: In member function 'void CConsole::CursorHome()': console.cpp:1011:9: warning: 'char* strncat(char*, const char*, size_t)' specified bound depends on the length of the source argument [-Wstringop-overflow=] strncat (m_RCommand, temp, strlen (temp)); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ console.cpp: In member function 'void CConsole::CursorEnd()': console.cpp:1020:9: warning: 'char* strncat(char*, const char*, size_t)' accessing 1 byte at offsets 416 and 288 may overlap 1 byte at offset 416 [-Wrestrict] strncat (m_LCommand, m_RCommand, strlen (m_RCommand)); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: In function '_T& CArray<_T>::operator=(_T*) [with _T = CCharArray]', inlined from 'void CConsole::Setup(CFont*, CScreen*, int, int, int, int, int)' at console.cpp:457:18: ../include/carray.h:238:12: warning: argument 2 null where non-null expected [-Wnonnull] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from console.cpp:16: /usr/include/string.h: In member function 'void CConsole::Setup(CFont*, CScreen*, int, int, int, int, int)': /usr/include/string.h:63:7: note: in a call to function 'void* memcpy(void*, const void*, size_t)' declared here void *memcpy(void * __restrict, const void * __restrict, size_t); ^~~~~~ In file included from ../include/descent.h:25, from console.cpp:19: In function '_T& CArray<_T>::operator=(_T*) [with _T = CCharArray]', inlined from 'void CConsole::Setup(CFont*, CScreen*, int, int, int, int, int)' at console.cpp:458:18: ../include/carray.h:238:12: warning: argument 2 null where non-null expected [-Wnonnull] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from console.cpp:16: /usr/include/string.h: In member function 'void CConsole::Setup(CFont*, CScreen*, int, int, int, int, int)': /usr/include/string.h:63:7: note: in a call to function 'void* memcpy(void*, const void*, size_t)' declared here void *memcpy(void * __restrict, const void * __restrict, size_t); ^~~~~~ mv -f .deps/console.Tpo .deps/console.Po rm -f libconsole.a ar cru libconsole.a console.o cvar.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib libconsole.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/console' Making all in effects gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/effects' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT fireball.o -MD -MP -MF .deps/fireball.Tpo -c -o fireball.o fireball.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT glare.o -MD -MP -MF .deps/glare.Tpo -c -o glare.o glare.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT lightning.o -MD -MP -MF .deps/lightning.Tpo -c -o lightning.o lightning.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT objsmoke.o -MD -MP -MF .deps/objsmoke.Tpo -c -o objsmoke.o objsmoke.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT particles.o -MD -MP -MF .deps/particles.Tpo -c -o particles.o particles.cpp lightning.cpp:395: warning: ignoring #pragma omp critical [-Wunknown-pragmas] #pragma omp critical lightning.cpp:1140: warning: ignoring #pragma omp critical [-Wunknown-pragmas] #pragma omp critical lightning.cpp:1229: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] #pragma omp parallel lightning.cpp:1231: warning: ignoring #pragma omp for [-Wunknown-pragmas] #pragma omp for lightning.cpp:1309: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] #pragma omp parallel lightning.cpp:1311: warning: ignoring #pragma omp for [-Wunknown-pragmas] #pragma omp for lightning.cpp:1413: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] #pragma omp parallel lightning.cpp:1415: warning: ignoring #pragma omp for [-Wunknown-pragmas] #pragma omp for lightning.cpp:1458: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] #pragma omp parallel lightning.cpp:1460: warning: ignoring #pragma omp for [-Wunknown-pragmas] #pragma omp for lightning.cpp:1476: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] #pragma omp parallel lightning.cpp:1478: warning: ignoring #pragma omp for [-Wunknown-pragmas] #pragma omp for reduction(+: nLights) particles.cpp:1002: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] #pragma omp parallel particles.cpp:1004: warning: ignoring #pragma omp for [-Wunknown-pragmas] #pragma omp for particles.cpp:1058: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] #pragma omp parallel particles.cpp:1060: warning: ignoring #pragma omp for [-Wunknown-pragmas] #pragma omp for private(vPos) reduction(+: nNewParts) particles.cpp:1550: warning: ignoring #pragma omp critical [-Wunknown-pragmas] #pragma omp critical In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightning.cpp:14: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightning.cpp:14: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from lightning.cpp:14: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from fireball.cpp:24: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/error.h:19, from fireball.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/error.h:19, from fireball.cpp:24: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from glare.cpp:12: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from glare.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from glare.cpp:12: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objsmoke.cpp:10: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objsmoke.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from objsmoke.cpp:10: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from particles.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from particles.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from particles.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from fireball.cpp:40: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ fireball.cpp: In function 'CObject* CreateExplosion(CObject*, short int, CFixVector&, fix, ubyte, fix, fix, fix, short int)': fireball.cpp:247:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (killerP != gameData.objs.consoleP) // if someone else whacks you, cut force by 2x ^~ fireball.cpp:249:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' vRotForce [Y] /= 2; ^~~~~~~~~ fireball.cpp: In member function 'CObject* CObject::CreateDebris(int)': fireball.cpp:368:15: warning: variable 'po' set but not used [-Wunused-but-set-variable] CPolyModel *po; ^~ glare.cpp: In function 'int FaceHasCorona(short int, short int, int*, float*)': glare.cpp:234:10: warning: variable 'nWall' set but not used [-Wunused-but-set-variable] ushort nWall; ^~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from glare.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from glare.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from fireball.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from fireball.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from glare.cpp:12: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fireball.cpp:28: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from glare.cpp:12: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fireball.cpp:28: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from glare.cpp:12: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fireball.cpp:28: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from glare.cpp:12: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fireball.cpp:28: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from glare.cpp:12: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fireball.cpp:28: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from glare.cpp:12: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from fireball.cpp:28: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from glare.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fireball.cpp:40: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fireball.cpp:40: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fireball.cpp:40: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fireball.cpp:40: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from fireball.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fireball.cpp:28: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fireball.cpp:28: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fireball.cpp:28: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from glare.cpp:12: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fireball.cpp:28: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fireball.cpp:28: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from fireball.cpp:28: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fireball.cpp:28: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from fireball.cpp:29: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from glare.cpp:12: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from glare.cpp:12: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fireball.cpp:40: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fireball.cpp:40: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from fireball.cpp:28: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from fireball.cpp:28: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from glare.cpp:12: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from glare.cpp:12: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fireball.cpp:28: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from fireball.cpp:28: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from fireball.cpp:29: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from fireball.cpp:28: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from fireball.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fireball.cpp:28: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from glare.cpp:12: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from glare.cpp:12: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from glare.cpp:19: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from glare.cpp:12: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from glare.cpp:12: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from glare.cpp:12: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from glare.cpp:12: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from glare.cpp:19: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from glare.cpp:12: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from glare.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from glare.cpp:12: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/transprender.h:5, from lightning.cpp:19: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/transprender.h:5, from particles.cpp:38: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ particles.cpp: In member function 'int CParticle::CollideWithWall()': particles.cpp:438:9: warning: variable 'vlP' set but not used [-Wunused-but-set-variable] int *vlP; ^~~ particles.cpp: In member function 'int CParticleSystem::Render()': particles.cpp:1296:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!m_bValid) ^~ particles.cpp:1299:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int h = 0; ^~~ particles.cpp: In member function 'int CParticleSystem::Update()': particles.cpp:1416:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!m_bValid) ^~ particles.cpp:1419:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CParticleEmitter *emitterP; ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from particles.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from particles.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from particles.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from particles.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from particles.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from particles.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from particles.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from particles.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from particles.cpp:38: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from particles.cpp:38: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from particles.cpp:38: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from particles.cpp:38: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from particles.cpp:38: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from particles.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from particles.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from particles.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from particles.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from particles.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from particles.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from particles.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from particles.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from particles.cpp:32: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from particles.cpp:38: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from particles.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from particles.cpp:38: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from particles.cpp:38: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from particles.cpp:21: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from particles.cpp:21: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ lightning.cpp: In function 'CFixVector* DirectedRandomVector(CFixVector*, CFixVector*, int, int)': lightning.cpp:121:14: warning: variable 'nSign' set but not used [-Wunused-but-set-variable] int nDot, nSign, i = 0; ^~~~~ In file included from ../include/cfile.h:26, from ../include/carray.h:20, from ../include/descent.h:25, from lightning.cpp:14: lightning.cpp: In member function 'CFixVector* CLightningNode::Smoothe(CFixVector*, CFixVector*, int, int)': lightning.cpp:273:37: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] *vOffs *= FixDiv (nDist, nSmoothe * nMag); //scale offset vector with distance to attractor (the closer, the smaller) ../include/maths.h:55:44: note: in definition of macro 'FixDiv' #define FixDiv(_a, _b) (static_cast ((_b) ? (((static_cast (_a)) * 65536) / (static_cast (_b))) : 1)) ^~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from particles.cpp:21: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from particles.cpp:21: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from particles.cpp:32: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from particles.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from particles.cpp:21: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from particles.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from particles.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ lightning.cpp: In member function 'void CLightning::Setup(bool)': ../include/maths.h:31:40: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] #define I2X(i) ((static_cast (i)) * 65536) ^ ../include/maths.h:55:44: note: in definition of macro 'FixDiv' #define FixDiv(_a, _b) (static_cast ((_b) ? (((static_cast (_a)) * 65536) / (static_cast (_b))) : 1)) ^~ lightning.cpp:459:28: note: in expansion of macro 'I2X' vDir *= FixDiv (m_nLength, I2X (m_nNodes - 1)); ^~~ lightning.cpp: In member function 'void CLightning::Init(CFixVector*, CFixVector*, CFixVector*, short int, int, int, int, int, char, int, short int, short int, short int, short int, char, char, char, char, tRgbaColorf*, CLightning*, short int)': lightning.cpp:485:32: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (this, 0, sizeof (*this)); ^ In file included from ../include/transprender.h:5, from lightning.cpp:19: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ lightning.cpp: In member function 'void CLightning::Bump()': lightning.cpp:612:14: warning: variable 'nSteps' set but not used [-Wunused-but-set-variable] int h, i, nSteps, nDist, nAmplitude, nMaxDist = 0; ^~~~~~ lightning.cpp: In member function 'void CLightning::Move(CFixVector*, short int, bool, bool)': lightning.cpp:817:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!m_nodes.Buffer ()) ^~ lightning.cpp:820:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CLightningNode *nodeP; ^~~~~~~~~~~~~~ lightning.cpp: In member function 'bool CLightningSystem::Create(int, CFixVector*, CFixVector*, CFixVector*, short int, int, int, int, int, char, int, short int, short int, char, short int, short int, char, char, char, char, char, tRgbaColorf*)': lightning.cpp:1227:65: warning: converting 'false' to pointer type for argument 20 of 'void CLightning::Init(CFixVector*, CFixVector*, CFixVector*, short int, int, int, int, int, char, int, short int, short int, short int, short int, char, char, char, char, tRgbaColorf*, CLightning*, short int)' [-Wconversion-null] nSmoothe, bClamp, bPlasma, bLight, nStyle, colorP, false, -1); ^ lightning.cpp: In member function 'void CLightningSystem::Animate(int, int)': lightning.cpp:1302:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!m_bValid) ^~ lightning.cpp:1305:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CLightning *lightningP = m_lightning + nStart; ^~~~~~~~~~ lightning.cpp: In member function 'int CLightningSystem::SetLife()': lightning.cpp:1321:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!m_bValid) ^~ lightning.cpp:1324:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CLightning *lightningP = m_lightning.Buffer (); ^~~~~~~~~~ lightning.cpp:1334:70: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (m_lightning + m_nBolts, 0, sizeof (m_lightning [m_nBolts])); ^ In file included from ../include/transprender.h:5, from lightning.cpp:19: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ lightning.cpp: In member function 'void CLightningSystem::UpdateSound()': lightning.cpp:1384:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!m_bSound) ^~ lightning.cpp:1387:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CLightning *lightningP; ^~~~~~~~~~ lightning.cpp: In member function 'void CLightningSystem::MoveForObject()': lightning.cpp:1426:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!m_bValid) ^~ lightning.cpp:1429:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CObject* objP = OBJECTS + m_nObject; ^~~~~~~ lightning.cpp: In member function 'int CLightningSystem::SetLight()': lightning.cpp:1470:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!m_bValid) ^~ lightning.cpp:1473:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int nLights = 0; ^~~ lightning.cpp: In member function 'void CLightningManager::RenderForDamage(CObject*, g3sPoint**, RenderModel::CVertex*, int)': lightning.cpp:2203:59: warning: 'void* memcpy(void*, const void*, size_t)' copying an object of type 'class CFloatVector' with 'private' member 'CFloatVector::v' from an array of 'class CFloatVector3'; use assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&vPosf, &vertP->m_vertex, sizeof (CFloatVector3)); ^ In file included from ../include/cfile.h:27, from ../include/carray.h:20, from ../include/descent.h:25, from lightning.cpp:14: ../include/vecmat.h:157:16: note: 'class CFloatVector' declared here class __pack__ CFloatVector { ^~~~~~~~~~~~ lightning.cpp:2204:92: warning: 'void* memcpy(void*, const void*, size_t)' copying an object of type 'class CFloatVector' with 'private' member 'CFloatVector::v' from an array of 'class CFloatVector3'; use assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&vEndf, &vertP [1 + d_rand () % (nVertices - 1)].m_vertex, sizeof (CFloatVector3)); ^ In file included from ../include/cfile.h:27, from ../include/carray.h:20, from ../include/descent.h:25, from lightning.cpp:14: ../include/vecmat.h:157:16: note: 'class CFloatVector' declared here class __pack__ CFloatVector { ^~~~~~~~~~~~ lightning.cpp:2205:58: warning: 'void* memcpy(void*, const void*, size_t)' copying an object of type 'class CFloatVector' with 'private' member 'CFloatVector::v' from an array of 'class CFloatVector3'; use assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&v, &vertP [1].m_vertex, sizeof (CFloatVector3)); ^ In file included from ../include/cfile.h:27, from ../include/carray.h:20, from ../include/descent.h:25, from lightning.cpp:14: ../include/vecmat.h:157:16: note: 'class CFloatVector' declared here class __pack__ CFloatVector { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightning.cpp:14: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightning.cpp:14: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightning.cpp:14: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightning.cpp:14: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightning.cpp:14: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightning.cpp:14: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightning.cpp:14: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from lightning.cpp:14: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from lightning.cpp:18: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from lightning.cpp:19: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from lightning.cpp:19: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from lightning.cpp:19: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from lightning.cpp:19: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Clear(ubyte, uint) [with _T = CLightningNode; ubyte = unsigned char; uint = unsigned int]': lightning.cpp:530:16: required from here ../include/carray.h:110:12: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class CLightningNode'; use assignment instead [-Wclass-memaccess] memset (m_data.buffer, filler, sizeof (_T) * ((count < m_data.length) ? count : m_data.length)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from lightning.cpp:19: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Clear(ubyte, uint) [with _T = CLightning; ubyte = unsigned char; uint = unsigned int]': lightning.cpp:1223:20: required from here ../include/carray.h:110:12: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment [-Wclass-memaccess] memset (m_data.buffer, filler, sizeof (_T) * ((count < m_data.length) ? count : m_data.length)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from lightning.cpp:19: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightning.cpp:14: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightning.cpp:14: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightning.cpp:14: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightning.cpp:14: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightning.cpp:14: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightning.cpp:14: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from lightning.cpp:14: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from lightning.cpp:14: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from lightning.cpp:18: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightning.cpp:14: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from lightning.cpp:19: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from lightning.cpp:19: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from lightning.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CLightningSystem]' ../include/lightning.h:188:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightning.cpp:14: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from lightning.cpp:14: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from lightning.cpp:14: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightning.cpp:14: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from lightning.cpp:14: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightning.cpp:14: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from lightning.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CLightningSystem]' ../include/lightning.h:188:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightning.cpp:14: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from lightning.cpp:14: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from lightning.cpp:14: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from objsmoke.cpp:15: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objsmoke.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objsmoke.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objsmoke.cpp:10: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objsmoke.cpp:10: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objsmoke.cpp:10: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objsmoke.cpp:10: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objsmoke.cpp:10: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from objsmoke.cpp:10: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objsmoke.cpp:15: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objsmoke.cpp:15: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objsmoke.cpp:15: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objsmoke.cpp:15: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from objsmoke.cpp:20: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objsmoke.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objsmoke.cpp:10: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objsmoke.cpp:10: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objsmoke.cpp:10: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objsmoke.cpp:10: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objsmoke.cpp:10: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from objsmoke.cpp:10: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objsmoke.cpp:10: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objsmoke.cpp:15: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objsmoke.cpp:15: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from objsmoke.cpp:16: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from objsmoke.cpp:20: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objsmoke.cpp:10: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from objsmoke.cpp:10: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from objsmoke.cpp:10: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objsmoke.cpp:10: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from objsmoke.cpp:10: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from objsmoke.cpp:16: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objsmoke.cpp:10: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from objsmoke.cpp:10: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from objsmoke.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objsmoke.cpp:10: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/fireball.Tpo .deps/fireball.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT perlin.o -MD -MP -MF .deps/perlin.Tpo -c -o perlin.o perlin.cpp mv -f .deps/perlin.Tpo .deps/perlin.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT shrapnel.o -MD -MP -MF .deps/shrapnel.Tpo -c -o shrapnel.o shrapnel.cpp shrapnel.cpp:100: warning: ignoring #pragma omp critical [-Wunknown-pragmas] #pragma omp critical shrapnel.cpp:148: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] #pragma omp parallel shrapnel.cpp:150: warning: ignoring #pragma omp for [-Wunknown-pragmas] #pragma omp for shrapnel.cpp:171: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] #pragma omp parallel shrapnel.cpp:173: warning: ignoring #pragma omp for [-Wunknown-pragmas] #pragma omp for In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from shrapnel.cpp:10: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from shrapnel.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from shrapnel.cpp:10: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ lightning.cpp: In member function 'void CLightning::ComputePlasmaSegment(CFloatVector*, int, short int, char, char, int, int)': lightning.cpp:899:8: warning: 'void* memcpy(void*, const void*, size_t)' accessing 32 bytes at offsets 0 and 16 overlaps 16 bytes at offset 16 [-Wrestrict] memcpy (vNormal, vNormal + 1, 2 * sizeof (CFloatVector)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lightning.cpp: In member function 'void CLightning::ComputePlasma(int, int)': lightning.cpp:965:10: warning: 'void* memcpy(void*, const void*, size_t)' accessing 32 bytes at offsets 0 and 16 overlaps 16 bytes at offset 16 [-Wrestrict] memcpy (vPosf, vPosf + 1, 2 * sizeof (CFloatVector)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/glare.Tpo .deps/glare.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT sparkeffect.o -MD -MP -MF .deps/sparkeffect.Tpo -c -o sparkeffect.o sparkeffect.cpp sparkeffect.cpp:152: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] #pragma omp parallel sparkeffect.cpp:154: warning: ignoring #pragma omp for [-Wunknown-pragmas] #pragma omp for In file included from ../include/descent.h:25, from lightning.cpp:14: In function '_T& CArray<_T>::operator=(_T*) [with _T = short int]', inlined from 'CLightningManager::CLightningManager()' at lightning.cpp:1493:13: ../include/carray.h:238:12: warning: argument 2 null where non-null expected [-Wnonnull] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from lightning.cpp:5: /usr/include/string.h: In constructor 'CLightningManager::CLightningManager()': /usr/include/string.h:63:7: note: in a call to function 'void* memcpy(void*, const void*, size_t)' declared here void *memcpy(void * __restrict, const void * __restrict, size_t); ^~~~~~ In file included from ../include/descent.h:25, from lightning.cpp:14: In function '_T& CArray<_T>::operator=(_T*) [with _T = tLightningLight]', inlined from 'CLightningManager::CLightningManager()' at lightning.cpp:1494:12: ../include/carray.h:238:12: warning: argument 2 null where non-null expected [-Wnonnull] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from lightning.cpp:5: /usr/include/string.h: In constructor 'CLightningManager::CLightningManager()': /usr/include/string.h:63:7: note: in a call to function 'void* memcpy(void*, const void*, size_t)' declared here void *memcpy(void * __restrict, const void * __restrict, size_t); ^~~~~~ mv -f .deps/objsmoke.Tpo .deps/objsmoke.Po In file included from shrapnel.cpp:15: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from shrapnel.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from shrapnel.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from shrapnel.cpp:10: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from shrapnel.cpp:10: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from shrapnel.cpp:10: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from shrapnel.cpp:10: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from shrapnel.cpp:10: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from shrapnel.cpp:10: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from shrapnel.cpp:15: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from shrapnel.cpp:15: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from shrapnel.cpp:15: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from shrapnel.cpp:15: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from shrapnel.cpp:20: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CShrapnelCloud]': ../include/shrapnel.h:46:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CShrapnelCloud' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from shrapnel.cpp:22: ../include/shrapnel.h:37:7: note: 'class CShrapnelCloud' declared here class CShrapnelCloud : private CStack { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from shrapnel.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from shrapnel.cpp:10: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from shrapnel.cpp:10: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from shrapnel.cpp:10: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from shrapnel.cpp:10: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from shrapnel.cpp:10: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from shrapnel.cpp:10: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from shrapnel.cpp:10: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from shrapnel.cpp:15: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from shrapnel.cpp:15: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from shrapnel.cpp:16: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from shrapnel.cpp:20: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from shrapnel.cpp:10: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CShrapnelCloud]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CShrapnelCloud]' ../include/shrapnel.h:46:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CShrapnelCloud' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from shrapnel.cpp:22: ../include/shrapnel.h:37:7: note: 'class CShrapnelCloud' declared here class CShrapnelCloud : private CStack { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from shrapnel.cpp:10: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from shrapnel.cpp:10: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from shrapnel.cpp:10: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from shrapnel.cpp:10: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sparkeffect.cpp:10: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sparkeffect.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/network.h:19, from shrapnel.cpp:16: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from shrapnel.cpp:10: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from shrapnel.cpp:10: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from shrapnel.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from shrapnel.cpp:10: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from sparkeffect.cpp:10: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/transprender.h:5, from sparkeffect.cpp:25: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sparkeffect.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sparkeffect.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sparkeffect.cpp:10: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sparkeffect.cpp:10: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sparkeffect.cpp:10: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from sparkeffect.cpp:10: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from sparkeffect.cpp:10: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from sparkeffect.cpp:10: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from sparkeffect.cpp:25: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from sparkeffect.cpp:25: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from sparkeffect.cpp:25: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from sparkeffect.cpp:25: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from sparkeffect.cpp:25: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sparkeffect.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sparkeffect.cpp:10: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sparkeffect.cpp:10: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sparkeffect.cpp:10: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from sparkeffect.cpp:10: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from sparkeffect.cpp:10: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from sparkeffect.cpp:10: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sparkeffect.cpp:10: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from sparkeffect.cpp:25: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sparkeffect.cpp:10: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from sparkeffect.cpp:25: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from sparkeffect.cpp:25: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from sparkeffect.cpp:10: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from sparkeffect.cpp:10: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from sparkeffect.cpp:10: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from sparkeffect.cpp:10: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sparkeffect.cpp:10: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from sparkeffect.cpp:10: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from sparkeffect.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sparkeffect.cpp:10: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/lightning.Tpo .deps/lightning.Po mv -f .deps/shrapnel.Tpo .deps/shrapnel.Po mv -f .deps/sparkeffect.Tpo .deps/sparkeffect.Po mv -f .deps/particles.Tpo .deps/particles.Po rm -f libeffects.a ar cru libeffects.a fireball.o glare.o lightning.o objsmoke.o particles.o perlin.o shrapnel.o sparkeffect.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib libeffects.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/effects' Making all in gameio gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/gameio' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT createmesh.o -MD -MP -MF .deps/createmesh.Tpo -c -o createmesh.o createmesh.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT gamemine.o -MD -MP -MF .deps/gamemine.Tpo -c -o gamemine.o gamemine.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT gamesave.o -MD -MP -MF .deps/gamesave.Tpo -c -o gamesave.o gamesave.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT hoard.o -MD -MP -MF .deps/hoard.Tpo -c -o hoard.o hoard.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT iff.o -MD -MP -MF .deps/iff.Tpo -c -o iff.o iff.cpp In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamesave.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamesave.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from gamesave.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from iff.cpp:27: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from iff.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from iff.cpp:27: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hoard.cpp:11: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hoard.cpp:11: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from hoard.cpp:11: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ gamesave.cpp: In function 'void CheckAndFixTriggers()': gamesave.cpp:869:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (j = 0; j < gameData.walls.nWalls; j++) ^~~ gamesave.cpp:872:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' i++; ^ gamesave.cpp: In function 'int LoadLevelData(char*, int)': gamesave.cpp:1002:6: warning: variable 'sig' set but not used [-Wunused-but-set-variable] int sig, nMineDataOffset, nGameDataOffset; ^~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamesave.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamesave.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamesave.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamesave.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamesave.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamesave.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamesave.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gamesave.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Clear(ubyte, uint) [with _T = CObject; ubyte = unsigned char; uint = unsigned int]': gamesave.cpp:364:46: required from here ../include/carray.h:110:12: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class CObject'; use assignment instead [-Wclass-memaccess] memset (m_data.buffer, filler, sizeof (_T) * ((count < m_data.length) ? count : m_data.length)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:99, from gamesave.cpp:21: ../include/object.h:713:7: note: 'class CObject' declared here class CObject : public CObjectInfo { ^~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamesave.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamesave.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamesave.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamesave.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamesave.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamesave.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gamesave.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamesave.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamesave.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gamesave.cpp:21: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from gamesave.cpp:21: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamesave.cpp:21: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gamesave.cpp:21: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamesave.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gamesave.cpp:21: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamesave.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamesave.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ iff.cpp: In member function 'int CIFF::ParseBody(int, tIFFBitmapHeader*)': iff.cpp:269:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ iff.cpp:272:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' if (wid_cnt==-1) ^~ iff.cpp: In member function 'int CIFF::WriteBody(FILE*, tIFFBitmapHeader*, int)': iff.cpp:748:6: warning: variable 'save_pos' set but not used [-Wunused-but-set-variable] int save_pos; ^~~~~~~~ iff.cpp: In member function 'int CIFF::WritePbm(FILE*, tIFFBitmapHeader*, int)': iff.cpp:783:6: warning: variable 'save_pos' set but not used [-Wunused-but-set-variable] int save_pos; ^~~~~~~~ iff.cpp: In member function 'int CIFF::ReadAnimBrush(const char*, CBitmap**, int, int*)': iff.cpp:856:19: warning: variable 'bmHeader' set but not used [-Wunused-but-set-variable] tIFFBitmapHeader bmHeader; ^~~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from iff.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from iff.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from iff.cpp:27: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from iff.cpp:27: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from iff.cpp:27: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ hoard.cpp: In function 'int InitMonsterball(int)': hoard.cpp:60:78: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tHoardItem' {aka 'struct tHoardItem'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&gameData.hoard.monsterball, &gameData.hoard.orb, sizeof (tHoardItem)); ^ In file included from hoard.cpp:11: ../include/descent.h:2973:16: note: 'tHoardItem' {aka 'struct tHoardItem'} declared here typedef struct tHoardItem { ^~~~~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from iff.cpp:27: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from iff.cpp:27: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ createmesh.cpp: In member function 'bool Mesh::CTriMeshBuilder::Load(int, bool)': createmesh.cpp:743:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (bOk) ^~ createmesh.cpp:748:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' uint nTriVerts = mdh.nTris * 3; ^~~~ hoard.cpp: In function 'void FreeHoardData()': hoard.cpp:354:52: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&gameData.hoard.orb.bm, 0, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hoard.cpp:11: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from iff.cpp:27: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hoard.cpp:11: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hoard.cpp:11: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from iff.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from iff.cpp:27: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from iff.cpp:27: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from iff.cpp:27: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from iff.cpp:27: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from iff.cpp:27: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from iff.cpp:27: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from iff.cpp:27: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from iff.cpp:27: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from iff.cpp:27: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from iff.cpp:27: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from iff.cpp:27: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from iff.cpp:27: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from iff.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from iff.cpp:27: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hoard.cpp:11: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hoard.cpp:11: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hoard.cpp:11: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hoard.cpp:11: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hoard.cpp:11: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/console.h:103:15: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from hoard.cpp:11: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from createmesh.cpp:13: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hoard.cpp:11: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from createmesh.cpp:13: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from createmesh.cpp:13: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hoard.cpp:11: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from createmesh.cpp:13: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hoard.cpp:11: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hoard.cpp:11: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from createmesh.cpp:13: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hoard.cpp:11: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hoard.cpp:11: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from createmesh.cpp:13: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from hoard.cpp:11: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hoard.cpp:11: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from hoard.cpp:14: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hoard.cpp:11: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from hoard.cpp:11: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hoard.cpp:11: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hoard.cpp:11: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from hoard.cpp:14: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hoard.cpp:11: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hoard.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hoard.cpp:11: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/console.h:103:15: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from createmesh.cpp:13: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from createmesh.cpp:13: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from createmesh.cpp:13: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from createmesh.cpp:13: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from createmesh.cpp:13: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from createmesh.cpp:13: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from createmesh.cpp:13: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from createmesh.cpp:25: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from createmesh.cpp:13: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from createmesh.cpp:13: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from createmesh.cpp:13: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from createmesh.cpp:13: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from createmesh.cpp:25: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from createmesh.cpp:13: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from createmesh.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from createmesh.cpp:13: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ gamemine.cpp: In function 'void ComputeSegSideCenters(int)': gamemine.cpp:592:10: warning: variable 'sideP' set but not used [-Wunused-but-set-variable] CSide* sideP; ^~~~~ gamemine.cpp: In function 'int LoadSegmentsPoll(CMenu&, int&, int, int)': gamemine.cpp:626:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ gamemine.cpp:629:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int bLightmaps = 0, bShadows = 0; ^~~ gamemine.cpp:629:6: warning: variable 'bLightmaps' set but not used [-Wunused-but-set-variable] int bLightmaps = 0, bShadows = 0; ^~~~~~~~~~ gamemine.cpp: In function 'int LoadMineGaugeSize()': gamemine.cpp:706:6: warning: variable 'bLightmaps' set but not used [-Wunused-but-set-variable] int bLightmaps = 0, bShadows = 0; ^~~~~~~~~~ gamemine.cpp: In function 'int LoadMineSegmentsCompiled(CFile&)': gamemine.cpp:744:10: warning: variable 'nCompiledVersion' set but not used [-Wunused-but-set-variable] ubyte nCompiledVersion; ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/console.h:103:15: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamemine.cpp:28: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamemine.cpp:28: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamemine.cpp:28: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamemine.cpp:28: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamemine.cpp:28: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gamemine.cpp:28: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/console.h:103:15: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamemine.cpp:28: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamemine.cpp:28: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamemine.cpp:28: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamemine.cpp:28: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamemine.cpp:28: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gamemine.cpp:28: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamemine.cpp:28: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from gamemine.cpp:40: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gamemine.cpp:28: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from gamemine.cpp:28: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamemine.cpp:28: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gamemine.cpp:28: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from gamemine.cpp:40: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gamemine.cpp:28: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from gamemine.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamemine.cpp:28: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/hoard.Tpo .deps/hoard.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT loadgame.o -MD -MP -MF .deps/loadgame.Tpo -c -o loadgame.o loadgame.cpp mv -f .deps/gamemine.Tpo .deps/gamemine.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT loadgamedata.o -MD -MP -MF .deps/loadgamedata.Tpo -c -o loadgamedata.o loadgamedata.cpp mv -f .deps/iff.Tpo .deps/iff.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT loadmodeldata.o -MD -MP -MF .deps/loadmodeldata.Tpo -c -o loadmodeldata.o loadmodeldata.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadgamedata.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadgamedata.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from loadgamedata.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadgame.cpp:27: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadgame.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadmodeldata.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadmodeldata.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from loadgame.cpp:27: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from loadmodeldata.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ loadgamedata.cpp: In function 'void BMReadAll(CFile&, bool)': loadgamedata.cpp:248:143: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CPolyModel' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (gameData.models.polyModels [1].Buffer (), gameData.models.polyModels [0].Buffer (), gameData.models.nPolyModels * sizeof (CPolyModel)); ^ In file included from ../include/descent.h:2204, from loadgamedata.cpp:22: ../include/polymodel.h:82:7: note: 'class CPolyModel' declared here class CPolyModel : public CByteArray { ^~~~~~~~~~ loadgamedata.cpp: In function 'void BMReadGameDataD1(CFile&)': loadgamedata.cpp:426:18: warning: variable 'v10DataOffset' set but not used [-Wunused-but-set-variable] int h, i, j, v10DataOffset; ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadgamedata.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadgamedata.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadgamedata.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadgamedata.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadgamedata.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadgamedata.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadgamedata.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from loadgamedata.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadgamedata.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadgamedata.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadgamedata.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadgamedata.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadgamedata.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadgamedata.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from loadgamedata.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadgamedata.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from loadgamedata.cpp:48: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from loadgamedata.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from loadgamedata.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadgamedata.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from loadgamedata.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from loadgamedata.cpp:48: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from loadgamedata.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadgamedata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadgamedata.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from loadgame.cpp:37: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ loadmodeldata.cpp: In function 'int LoadRobotExtensions(const char*, char*, int)': loadmodeldata.cpp:179:105: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CPolyModel' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (gameData.models.polyModels [1] + j, gameData.models.polyModels [0] + j, sizeof (CPolyModel) * t); ^ In file included from ../include/descent.h:2204, from loadmodeldata.cpp:22: ../include/polymodel.h:82:7: note: 'class CPolyModel' declared here class CPolyModel : public CByteArray { ^~~~~~~~~~ loadmodeldata.cpp:111:6: warning: variable 'version' set but not used [-Wunused-but-set-variable] int version, bVertigoData; ^~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadmodeldata.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadmodeldata.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadmodeldata.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadmodeldata.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadmodeldata.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ loadgame.cpp: In function 'void EnterSecretLevel()': loadgame.cpp:1842:6: warning: variable 'xOldGameTime' set but not used [-Wunused-but-set-variable] fix xOldGameTime; ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadmodeldata.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ loadgame.cpp: In function 'void ShowLevelIntro(int)': loadgame.cpp:1929:10: warning: variable 'bPlayed' set but not used [-Wunused-but-set-variable] uint i, bPlayed = 0; ^~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadmodeldata.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from loadmodeldata.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadgame.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadmodeldata.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadmodeldata.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadmodeldata.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadmodeldata.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadgame.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadgame.cpp:27: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadgame.cpp:27: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadgame.cpp:27: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadgame.cpp:27: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadgame.cpp:27: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from loadgame.cpp:27: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from loadgame.cpp:36: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadgame.cpp:37: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadgame.cpp:37: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadgame.cpp:37: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadgame.cpp:37: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadgame.cpp:107: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadgame.cpp:107: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Clear(ubyte, uint) [with _T = CObject; ubyte = unsigned char; uint = unsigned int]': loadgame.cpp:839:30: required from here ../include/carray.h:110:12: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class CObject'; use assignment instead [-Wclass-memaccess] memset (m_data.buffer, filler, sizeof (_T) * ((count < m_data.length) ? count : m_data.length)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:99, from loadgame.cpp:27: ../include/object.h:713:7: note: 'class CObject' declared here class CObject : public CObjectInfo { ^~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadgame.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadgame.cpp:27: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadgame.cpp:27: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadgame.cpp:27: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadgame.cpp:27: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadgame.cpp:27: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from loadgame.cpp:27: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadgame.cpp:27: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from loadgame.cpp:36: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadgame.cpp:27: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadgame.cpp:37: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadgame.cpp:37: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from loadgame.cpp:46: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadgame.cpp:107: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadgame.cpp:107: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from loadgame.cpp:27: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from loadgame.cpp:27: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadgame.cpp:27: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from loadgame.cpp:27: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadgame.cpp:27: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from loadgame.cpp:46: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from loadgame.cpp:27: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadgame.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadgame.cpp:27: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadmodeldata.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadmodeldata.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from loadmodeldata.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadmodeldata.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from loadmodeldata.cpp:48: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from loadmodeldata.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from loadmodeldata.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadmodeldata.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from loadmodeldata.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from loadmodeldata.cpp:48: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from loadmodeldata.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadmodeldata.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadmodeldata.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/loadgamedata.Tpo .deps/loadgamedata.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT loadsounds.o -MD -MP -MF .deps/loadsounds.Tpo -c -o loadsounds.o loadsounds.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadsounds.cpp:29: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadsounds.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from loadsounds.cpp:29: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/createmesh.Tpo .deps/createmesh.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT loadtextures.o -MD -MP -MF .deps/loadtextures.Tpo -c -o loadtextures.o loadtextures.cpp mv -f .deps/loadmodeldata.Tpo .deps/loadmodeldata.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT mission.o -MD -MP -MF .deps/mission.Tpo -c -o mission.o mission.cpp loadgame.cpp: In function 'char* LevelSongName(int)': loadgame.cpp:611:89: warning: function may return address of local variable [-Wreturn-local-addr] return gameStates.app.bAutoRunMission ? szNoSong : gameData.missions.szSongNames [nLevel]; ^ loadgame.cpp:609:7: note: declared here char szNoSong[] = ""; ^~~~~~~~ loadgame.cpp: In function 'int LoadModData(char*, int, int)': loadgame.cpp:786:41: warning: '/level' directive writing 6 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (gameFolders.szModelDir [2], "%s/level%02d", gameFolders.szModelDir [1], gameData.missions.nCurrentLevel); ^~~~~~~~~~~~~~ loadgame.cpp:786:41: note: directive argument in the range [0, 2147483647] loadgame.cpp:786:12: note: 'sprintf' output between 9 and 271 bytes into a destination of size 255 sprintf (gameFolders.szModelDir [2], "%s/level%02d", gameFolders.szModelDir [1], gameData.missions.nCurrentLevel); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ loadgame.cpp:787:46: warning: '/level' directive writing 6 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (gameFolders.szModelCacheDir [2], "%s/level%02d", gameFolders.szModelCacheDir [1], gameData.missions.nCurrentLevel); ^~~~~~~~~~~~~~ loadgame.cpp:787:12: note: 'sprintf' output between 9 and 272 bytes into a destination of size 255 sprintf (gameFolders.szModelCacheDir [2], "%s/level%02d", gameFolders.szModelCacheDir [1], gameData.missions.nCurrentLevel); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ loadgame.cpp:782:41: warning: '/slevel' directive writing 7 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (gameFolders.szModelDir [2], "%s/slevel%02d", gameFolders.szModelDir [1], -gameData.missions.nCurrentLevel); ^~~~~~~~~~~~~~~ loadgame.cpp:782:41: note: directive argument in the range [1, 2147483647] loadgame.cpp:782:12: note: 'sprintf' output between 10 and 272 bytes into a destination of size 255 sprintf (gameFolders.szModelDir [2], "%s/slevel%02d", gameFolders.szModelDir [1], -gameData.missions.nCurrentLevel); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ loadgame.cpp:783:46: warning: '/slevel' directive writing 7 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (gameFolders.szModelCacheDir [2], "%s/slevel%02d", gameFolders.szModelCacheDir [1], -gameData.missions.nCurrentLevel); ^~~~~~~~~~~~~~~ loadgame.cpp:783:12: note: 'sprintf' output between 10 and 273 bytes into a destination of size 255 sprintf (gameFolders.szModelCacheDir [2], "%s/slevel%02d", gameFolders.szModelCacheDir [1], -gameData.missions.nCurrentLevel); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ loadgame.cpp:737:21: warning: '.vham' directive writing 5 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (szFile, "%s.vham", gameFolders.szModName); ^~~~~~~~~ loadgame.cpp:737:12: note: 'sprintf' output between 6 and 260 bytes into a destination of size 255 sprintf (szFile, "%s.vham", gameFolders.szModName); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ loadgame.cpp: In function 'int LoadLevel(int, bool, bool)': loadgame.cpp:948:22: warning: '%s' directive writing up to 254 bytes into a region of size between 0 and 255 [-Wformat-overflow=] sprintf (szHogName, "%s%s%s%s", ^~~~~~~~~~ loadgame.cpp:950:5: gameFolders.szMsnSubDir, pszLevelName); ~~~~~~~~~~~~~~~~~~~~~~~ loadgame.cpp:948:10: note: 'sprintf' output 1 or more bytes (assuming 510) into a destination of size 255 sprintf (szHogName, "%s%s%s%s", ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ gameFolders.szMissionDir, *gameFolders.szMissionDir ? "/" : "", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gameFolders.szMsnSubDir, pszLevelName); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from mission.cpp:24: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from mission.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from mission.cpp:24: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadtextures.cpp:29: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadtextures.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from loadtextures.cpp:29: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mission.cpp: In function 'void AddMissionsToList(int*, int, int, int, int, int)': mission.cpp:536:54: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the source; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] memcpy (lvlName + strlen (lvlName) - 4, lvlExt, sizeof (lvlExt)); ^~~~~~~~~~~~~~~ mission.cpp:538:71: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the source; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] memcpy (lvlName + strlen (lvlName) - 4, altLvlExt [bD1Mission], sizeof (altLvlExt [bD1Mission])); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp: In function 'int BuildMissionList(int, int)': mission.cpp:611:13: warning: variable 'nMissionCount' set but not used [-Wunused-but-set-variable] static int nMissionCount = -1; ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from mission.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from mission.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mission.cpp:24: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mission.cpp:24: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mission.cpp:24: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from mission.cpp:24: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from mission.cpp:24: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from mission.cpp:24: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from mission.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mission.cpp:24: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mission.cpp:24: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mission.cpp:24: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from mission.cpp:24: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from mission.cpp:24: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from mission.cpp:24: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mission.cpp:24: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mission.cpp:38: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from mission.cpp:24: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from mission.cpp:24: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from mission.cpp:24: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from mission.cpp:24: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mission.cpp:38: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from mission.cpp:24: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from mission.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mission.cpp:24: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/gamesave.Tpo .deps/gamesave.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT paging.o -MD -MP -MF .deps/paging.Tpo -c -o paging.o paging.cpp loadsounds.cpp: In function 'int LoadD2Sounds(bool)': loadsounds.cpp:341:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!(gameData.pig.sound.nType || bCustom)) ^~ loadsounds.cpp:344:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CFile cf; ^~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadsounds.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadsounds.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadsounds.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadsounds.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadsounds.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadsounds.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadsounds.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from loadsounds.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadsounds.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadsounds.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadsounds.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadsounds.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadsounds.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadsounds.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from loadsounds.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadsounds.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadsounds.cpp:53: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from loadsounds.cpp:29: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from loadsounds.cpp:29: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadsounds.cpp:29: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from loadsounds.cpp:29: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadsounds.cpp:53: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from loadsounds.cpp:29: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadsounds.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadsounds.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ loadtextures.cpp: In function 'int PageInBitmap(CBitmap*, const char*, int, int, bool)': loadtextures.cpp:584:7: warning: variable 'bRedone' set but not used [-Wunused-but-set-variable] bRedone = 0, bTGA; ^~~~~~~ loadtextures.cpp: In function 'int PiggyBitmapPageIn(int, int, bool)': loadtextures.cpp:817:10: warning: variable 'bmiSave' set but not used [-Wunused-but-set-variable] int i, bmiSave; ^~~~~~~ loadtextures.cpp: In function 'void LoadReplacementBitmaps(const char*)': loadtextures.cpp:902:35: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&bm, 0, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadtextures.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ loadtextures.cpp:911:21: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] if (!(bm.Width () * bm.Width ())) ~~~~~~~~~~~~~^~~~~~~~~~~~~~ loadtextures.cpp:875:10: warning: variable 'bmDataSize' set but not used [-Wunused-but-set-variable] int bmDataSize, bmDataOffset, bmOffset; ^~~~~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadtextures.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadtextures.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ loadsounds.cpp:359:19: warning: '%s' directive writing 4 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (szFile, "%s%s", gameFolders.szModName, (gameOpts->sound.audioSampleRate >= SAMPLE_RATE_22K) ? ".s22" : ".s11"); ^~~~~~ loadsounds.cpp:359:10: note: 'sprintf' output between 5 and 259 bytes into a destination of size 255 sprintf (szFile, "%s%s", gameFolders.szModName, (gameOpts->sound.audioSampleRate >= SAMPLE_RATE_22K) ? ".s22" : ".s11"); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ loadsounds.cpp:368:41: warning: '/level' directive writing 6 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (gameFolders.szSoundDir [5], "%s/level%02d", gameFolders.szSoundDir [4], gameData.missions.nCurrentLevel); ^~~~~~~~~~~~~~ loadsounds.cpp:368:41: note: directive argument in the range [0, 2147483647] loadsounds.cpp:368:12: note: 'sprintf' output between 9 and 271 bytes into a destination of size 255 sprintf (gameFolders.szSoundDir [5], "%s/level%02d", gameFolders.szSoundDir [4], gameData.missions.nCurrentLevel); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ loadsounds.cpp:366:41: warning: '/slevel' directive writing 7 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (gameFolders.szSoundDir [5], "%s/slevel%02d", gameFolders.szSoundDir [4], -gameData.missions.nCurrentLevel); ^~~~~~~~~~~~~~~ loadsounds.cpp:366:41: note: directive argument in the range [1, 2147483647] loadsounds.cpp:366:12: note: 'sprintf' output between 10 and 272 bytes into a destination of size 255 sprintf (gameFolders.szSoundDir [5], "%s/slevel%02d", gameFolders.szSoundDir [4], -gameData.missions.nCurrentLevel); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ loadsounds.cpp:400:22: warning: 'nLoadedSounds' may be used uninitialized in this function [-Wmaybe-uninitialized] return nLoadedSounds != 0; ~~~~~~~~~~~~~~^~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadtextures.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadtextures.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadtextures.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadtextures.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadtextures.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from loadtextures.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadtextures.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadtextures.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadtextures.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from loadtextures.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ loadsounds.cpp: In function 'Mix_Chunk* LoadAddonSound(const char*, ubyte*)': loadsounds.cpp:462:17: warning: 'd2x-temp.wav' directive writing 12 bytes into a region of size between 0 and 255 [-Wformat-overflow=] sprintf (szWAV, "%s%sd2x-temp.wav", gameFolders.szCacheDir, *gameFolders.szCacheDir ? "/" : ""); ^~~~~~~~~~~~~~~~~~ loadsounds.cpp:462:9: note: 'sprintf' output between 13 and 268 bytes into a destination of size 255 sprintf (szWAV, "%s%sd2x-temp.wav", gameFolders.szCacheDir, *gameFolders.szCacheDir ? "/" : ""); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadtextures.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadtextures.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from loadtextures.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadtextures.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadtextures.cpp:54: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from loadtextures.cpp:29: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from loadtextures.cpp:29: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from loadtextures.cpp:29: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from loadtextures.cpp:29: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadtextures.cpp:54: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from loadtextures.cpp:29: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from loadtextures.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from loadtextures.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ loadtextures.cpp: In function 'int PageInBitmap(CBitmap*, const char*, int, int, bool)': loadtextures.cpp:644:42: warning: '%s' directive writing up to 254 bytes into a region of size between 0 and 254 [-Wformat-overflow=] sprintf (gameFolders.szTextureDir [3], "%s/%s", gameFolders.szTextureDir [2], szLevelFolder); ^~~~~~~ ~~~~~~~~~~~~~ loadtextures.cpp:644:11: note: 'sprintf' output between 2 and 510 bytes into a destination of size 255 sprintf (gameFolders.szTextureDir [3], "%s/%s", gameFolders.szTextureDir [2], szLevelFolder); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ loadtextures.cpp:645:47: warning: '%s' directive writing up to 254 bytes into a region of size between 0 and 254 [-Wformat-overflow=] sprintf (gameFolders.szTextureCacheDir [3], "%s/%s", gameFolders.szTextureCacheDir [2], szLevelFolder); ^~~~~~~ ~~~~~~~~~~~~~ loadtextures.cpp:645:11: note: 'sprintf' output between 2 and 510 bytes into a destination of size 255 sprintf (gameFolders.szTextureCacheDir [3], "%s/%s", gameFolders.szTextureCacheDir [2], szLevelFolder); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from loadtextures.cpp:29: In member function 'void CBitmap::SetName(const char*)', inlined from 'int PageInBitmap(CBitmap*, const char*, int, int, bool)' at loadtextures.cpp:730:14: ../include/bitmap.h:255:68: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 20 equals destination size [-Wstringop-truncation] inline void SetName (const char* pszName) { if (pszName) strncpy (m_info.szName, pszName, sizeof (m_info.szName)); } ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/bitmap.h:255:68: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 20 equals destination size [-Wstringop-truncation] loadtextures.cpp: In function 'void LoadReplacementBitmaps(const char*)': loadtextures.cpp:976:21: warning: ']' directive writing 1 byte into a region of size between 0 and 19 [-Wformat-overflow=] sprintf (szName, "[%s]", gameData.pig.tex.bitmapP [j].Name ()); ^~~~~~ loadtextures.cpp:976:12: note: 'sprintf' output between 3 and 22 bytes into a destination of size 20 sprintf (szName, "[%s]", gameData.pig.tex.bitmapP [j].Name ()); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/loadtextures.Tpo .deps/loadtextures.Po mission.cpp: In function 'int ReadMissionFile(const char*, int, int)': mission.cpp:356:11: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 30 bytes from a string of length 254 [-Wstringop-truncation] strncpy (gameData.missions.list [count].szMissionName, szMissionName, sizeof (gameData.missions.list [count].szMissionName)); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT piggy.o -MD -MP -MF .deps/piggy.Tpo -c -o piggy.o piggy.cpp mv -f .deps/loadsounds.Tpo .deps/loadsounds.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT playsave.o -MD -MP -MF .deps/playsave.Tpo -c -o playsave.o playsave.cpp mv -f .deps/loadgame.Tpo .deps/loadgame.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT state.o -MD -MP -MF .deps/state.Tpo -c -o state.o state.cpp mission.cpp: In function 'void AddMissionsToList(int*, int, int, int, int, int)': mission.cpp:535:24: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf (lvlName, "%s%s", gameFolders.szMissionDirs [nLocation], ffs.name); ^~~~~~ mission.cpp:535:14: note: 'sprintf' output 1 or more bytes (assuming 256) into a destination of size 255 sprintf (lvlName, "%s%s", gameFolders.szMissionDirs [nLocation], ffs.name); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mission.cpp: In function 'int BuildMissionList(int, int)': mission.cpp:655:43: warning: '%s' directive writing between 8 and 16 bytes into a region of size between 0 and 254 [-Wformat-overflow=] sprintf (gameFolders.szMissionDirs [1], "%s/%s%s", gameFolders.szAltHogDir, MISSION_DIR, gameFolders.szMsnSubDir); ^~~~~~~~~ mission.cpp:655:11: note: 'sprintf' output between 10 and 526 bytes into a destination of size 255 sprintf (gameFolders.szMissionDirs [1], "%s/%s%s", gameFolders.szAltHogDir, MISSION_DIR, gameFolders.szMsnSubDir); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from piggy.cpp:28: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from piggy.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from piggy.cpp:28: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from playsave.cpp:29: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from playsave.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from playsave.cpp:29: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ state.cpp: In function 'int LoadStateMenuCallback(int, CMenuItem*, int, int, int)': state.cpp:322:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ state.cpp:325:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int i = nCurItem - NM_IMG_SPACE; ^~~ state.cpp: In member function 'void CSaveGameManager::PushSecretSave(int)': state.cpp:477:6: warning: variable 'rval' set but not used [-Wunused-but-set-variable] int rval; ^~~~ mission.cpp: In function 'int LoadMission(int)': mission.cpp:916:22: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf (szFolder, "%s%s", gameFolders.szMissionDir, *gameFolders.szMissionDir ? "/" : ""); ^~~~~~ mission.cpp:916:11: note: 'sprintf' output between 1 and 256 bytes into a destination of size 255 sprintf (szFolder, "%s%s", gameFolders.szMissionDir, *gameFolders.szMissionDir ? "/" : ""); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:919:22: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf (szFolder, "%s%s", gameFolders.szDataDir, *gameFolders.szDataDir ? "/" : ""); ^~~~~~ mission.cpp:919:11: note: 'sprintf' output between 1 and 256 bytes into a destination of size 255 sprintf (szFolder, "%s%s", gameFolders.szDataDir, *gameFolders.szDataDir ? "/" : ""); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:942:19: warning: '.hog' directive writing 4 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (szFile, "%s%s.hog", szFolder, gameData.missions.list [nMission].filename); ^~~~~~~~~~ mission.cpp:942:10: note: 'sprintf' output 5 or more bytes (assuming 259) into a destination of size 255 sprintf (szFile, "%s%s.hog", szFolder, gameData.missions.list [nMission].filename); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:953:20: warning: '%s' directive writing 4 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (szFile, "%s%s%s", ^~~~~~~~ mission.cpp:953:11: note: 'sprintf' output 5 or more bytes (assuming 259) into a destination of size 255 sprintf (szFile, "%s%s%s", ~~~~~~~~^~~~~~~~~~~~~~~~~~ szFolder, ~~~~~~~~~ gameData.missions.list [nMission].filename, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (gameData.missions.list [nMission].nDescentVersion == 2) ? ".rl2" : ".rdl"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:964:21: warning: '%s' directive writing up to 254 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (szFile, "%s%s", szFolder, gameData.missions.szLevelNames [0]); ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:964:12: note: 'sprintf' output between 1 and 509 bytes into a destination of size 255 sprintf (szFile, "%s%s", szFolder, gameData.missions.szLevelNames [0]); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ state.cpp: In member function 'void CSaveGameManager::PopSecretSave(int)': state.cpp:1112:6: warning: variable 'rval' set but not used [-Wunused-but-set-variable] int rval; ^~~~ mv -f .deps/mission.Tpo .deps/mission.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT tga.o -MD -MP -MF .deps/tga.Tpo -c -o tga.o tga.cpp piggy.cpp: In function 'void PiggyInitPigFile(char*)': piggy.cpp:414:34: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&bm, 0, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from piggy.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ piggy.cpp:361:35: warning: variable 'nDataSize' set but not used [-Wunused-but-set-variable] int nHeaderSize, nBitmapNum, nDataSize, nDataStart, i; ^~~~~~~~~ piggy.cpp: In function 'void PiggyBitmapReadD1(CFile&, CBitmap*, int, tPIGBitmapHeader*, ubyte**, ubyte*)': piggy.cpp:613:33: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (bmP, 0, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from piggy.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ piggy.cpp: In function 'void LoadD1Textures()': piggy.cpp:818:39: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&bmTemp, 0, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from piggy.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from piggy.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from piggy.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from piggy.cpp:28: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from piggy.cpp:28: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from piggy.cpp:28: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from piggy.cpp:28: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from piggy.cpp:28: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from piggy.cpp:28: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from piggy.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from piggy.cpp:28: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from piggy.cpp:28: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from piggy.cpp:28: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from piggy.cpp:28: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from piggy.cpp:28: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from piggy.cpp:28: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from piggy.cpp:28: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from piggy.cpp:51: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from piggy.cpp:28: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from piggy.cpp:28: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from piggy.cpp:28: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from piggy.cpp:28: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from piggy.cpp:51: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from piggy.cpp:28: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from piggy.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from piggy.cpp:28: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ state.cpp: In member function 'int CSaveGameManager::LoadUniFormat(int, fix, int*)': state.cpp:1660:65: warning: variable 'nSavedLocalPlayer' set but not used [-Wunused-but-set-variable] int nOtherObjNum = -1, nServerObjNum = -1, nLocalObjNum = -1, nSavedLocalPlayer = -1; ^~~~~~~~~~~~~~~~~ state.cpp: In member function 'int CSaveGameManager::LoadBinFormat(int, fix, int*)': state.cpp:2010:65: warning: variable 'nSavedLocalPlayer' set but not used [-Wunused-but-set-variable] int nOtherObjNum = -1, nServerObjNum = -1, nLocalObjNum = -1, nSavedLocalPlayer = -1; ^~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/console.h:103:15: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from state.cpp:47: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from state.cpp:47: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from state.cpp:47: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from state.cpp:47: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from state.cpp:47: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from state.cpp:47: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/console.h:103:15: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from state.cpp:47: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from state.cpp:47: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from state.cpp:47: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from state.cpp:47: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from state.cpp:47: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from state.cpp:47: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from state.cpp:47: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from state.cpp:56: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ paging.cpp: In function 'int LoadTexturesPoll(CMenu&, int&, int, int)': paging.cpp:433:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ paging.cpp:436:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int i; ^~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from state.cpp:47: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from state.cpp:47: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from state.cpp:47: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from state.cpp:47: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/console.h:103:15: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from state.cpp:56: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from state.cpp:47: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from state.cpp:46: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from state.cpp:47: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from paging.cpp:27: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from paging.cpp:27: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from paging.cpp:27: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from paging.cpp:27: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from paging.cpp:27: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from paging.cpp:27: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/console.h:103:15: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from paging.cpp:27: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from paging.cpp:27: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from paging.cpp:27: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from paging.cpp:27: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from paging.cpp:27: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from paging.cpp:27: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from paging.cpp:27: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from paging.cpp:48: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from paging.cpp:27: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from paging.cpp:27: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from paging.cpp:27: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from paging.cpp:27: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from paging.cpp:48: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from paging.cpp:27: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from paging.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from paging.cpp:27: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from tga.cpp:5: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from tga.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from tga.cpp:5: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ piggy.cpp: In function 'int ReadHamFile(bool)': piggy.cpp:450:19: warning: '.ham' directive writing 4 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (szFile, "%s.ham", gameFolders.szModName); ^~~~~~~~ piggy.cpp:450:10: note: 'sprintf' output between 5 and 259 bytes into a destination of size 255 sprintf (szFile, "%s.ham", gameFolders.szModName); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ piggy.cpp: In function 'void PiggyInitPigFile(char*)': piggy.cpp:411:20: warning: '%d' directive writing between 1 and 2 bytes into a region of size between 0 and 15 [-Wformat-overflow=] sprintf (szName, "%s#%d", szNameRead, bmh.dflags & DBM_NUM_FRAMES); ^~~~~~~ piggy.cpp:411:20: note: directive argument in the range [0, 63] piggy.cpp:411:11: note: 'sprintf' output between 3 and 19 bytes into a destination of size 16 sprintf (szName, "%s#%d", szNameRead, bmh.dflags & DBM_NUM_FRAMES); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ piggy.cpp:399:9: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 13 bytes from a string of length 254 [-Wstringop-truncation] strncpy (szCurrentPigFile [0], szPigName, sizeof (szCurrentPigFile [0])); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ playsave.cpp: In member function 'int CPlayerProfile::Save()': playsave.cpp:674:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (Busy ()) ^~ playsave.cpp:677:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' char fn [FILENAME_LEN]; ^~~~ playsave.cpp: In member function 'int CPlayerProfile::Load()': playsave.cpp:738:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (Busy ()) ^~ playsave.cpp:741:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' char fn [FILENAME_LEN]; ^~~~ playsave.cpp: In function 'int NewPlayerConfig()': playsave.cpp:1471:6: warning: variable 'nitems' set but not used [-Wunused-but-set-variable] int nitems; ^~~~~~ playsave.cpp: In function 'int LoadPlayerProfile(int)': playsave.cpp:2020:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (profile.Busy ()) ^~ playsave.cpp:2023:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CFile cf; ^~~~~ playsave.cpp: In function 'int SavePlayerProfile()': playsave.cpp:2283:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (profile.Busy ()) ^~ playsave.cpp:2286:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CFile cf; ^~~~~ playsave.cpp: In function 'int SelectPlayer()': playsave.cpp:2498:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!(psz = strchr (filename, '.'))) ^~ playsave.cpp:2502:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' *psz = '\0'; ^ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from playsave.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from playsave.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from playsave.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from playsave.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from playsave.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from playsave.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from playsave.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from playsave.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CFilename]': ../include/menu.h:274:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CFilename' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/carray.h:20, from ../include/descent.h:25, from playsave.cpp:29: ../include/cfile.h:34:7: note: 'class CFilename' declared here class CFilename { ^~~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from playsave.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from playsave.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from playsave.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from playsave.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from playsave.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from playsave.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from playsave.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from playsave.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from playsave.cpp:42: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CFilename]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CFilename]' ../include/menu.h:274:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CFilename' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/carray.h:20, from ../include/descent.h:25, from playsave.cpp:29: ../include/cfile.h:34:7: note: 'class CFilename' declared here class CFilename { ^~~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from playsave.cpp:29: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from playsave.cpp:29: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from playsave.cpp:29: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from playsave.cpp:29: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from playsave.cpp:42: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from playsave.cpp:29: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from playsave.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from playsave.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/piggy.Tpo .deps/piggy.Po state.cpp: In member function 'bool CSaveGameInfo::Load(char*, int)': state.cpp:260:27: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf (m_info.szTime, " [%d-%d-%d %d:%02d:%02d]", ^~~~~~~~~~~~~~~~~~~~~~~~~~ state.cpp:260:11: note: 'sprintf' output between 17 and 75 bytes into a destination of size 36 sprintf (m_info.szTime, " [%d-%d-%d %d:%02d:%02d]", ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ t->tm_mon + 1, t->tm_mday, t->tm_year + 1900, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ t->tm_hour, t->tm_min, t->tm_sec); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tga.cpp: In function 'int WriteTGAImage(CFile&, tTgaHeader*, CBitmap*)': tga.cpp:345:15: warning: variable 'n' set but not used [-Wunused-but-set-variable] int i, j, n, nFrames; ^ tga.cpp: In function 'void TGAChangeBrightness(CBitmap*, double, int, int, int)': tga.cpp:772:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] else if (bSkipAlpha) ^~ tga.cpp:774:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (nOffset) { ^~ tga.cpp: In member function 'void CModelTextures::Destroy()': tga.cpp:1011:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (m_bitmaps.Buffer ()) ^~ tga.cpp:1016:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' m_nTeam.Destroy (); ^~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from tga.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from tga.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from tga.cpp:5: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from tga.cpp:5: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from tga.cpp:5: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from tga.cpp:5: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from tga.cpp:5: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from tga.cpp:5: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Clear(ubyte, uint) [with _T = CCharArray; ubyte = unsigned char; uint = unsigned int]': tga.cpp:1037:16: required from here ../include/carray.h:110:12: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class CCharArray' with no trivial copy-assignment [-Wclass-memaccess] memset (m_data.buffer, filler, sizeof (_T) * ((count < m_data.length) ? count : m_data.length)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from tga.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from tga.cpp:5: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from tga.cpp:5: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from tga.cpp:5: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from tga.cpp:5: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from tga.cpp:5: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from tga.cpp:5: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from tga.cpp:5: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from tga.cpp:5: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from tga.cpp:5: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from tga.cpp:5: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from tga.cpp:5: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from tga.cpp:5: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from tga.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from tga.cpp:5: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/paging.Tpo .deps/paging.Po tga.cpp: In function 'int ReadTGA(const char*, const char*, CBitmap*, int, double, int, int)': tga.cpp:575:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 20 equals destination size [-Wstringop-truncation] strncpy (szName, pszFile, sizeof (szName)); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tga.cpp: In function 'int ReadModelTGA(const char*, CBitmap*, int)': tga.cpp:921:19: warning: '.tga' directive writing 4 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (fnBase, "%s.tga", fn); ^~~~~~~~ tga.cpp:921:10: note: 'sprintf' output between 5 and 259 bytes into a destination of size 255 sprintf (fnBase, "%s.tga", fn); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from tga.cpp:5: In member function 'void CBitmap::SetName(const char*)', inlined from 'CBitmap* CreateAndReadTGA(const char*)' at tga.cpp:596:15: ../include/bitmap.h:255:68: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 20 bytes from a string of length 254 [-Wstringop-truncation] inline void SetName (const char* pszName) { if (pszName) strncpy (m_info.szName, pszName, sizeof (m_info.szName)); } ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/tga.Tpo .deps/tga.Po playsave.cpp: In function 'int MakeNewPlayerFile(int)': playsave.cpp:2449:9: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 8 bytes from a string of length 8 [-Wstringop-truncation] strncpy (LOCALPLAYER.callsign, text, CALLSIGN_LEN); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ playsave.cpp: In function 'int SelectPlayer()': playsave.cpp:2509:20: warning: '*.plr' directive writing 5 bytes into a region of size between 0 and 255 [-Wformat-overflow=] sprintf (filespec, "%s%s*.plr", gameFolders.szProfDir, *gameFolders.szProfDir ? "/" : ""); ^~~~~~~~~~~ playsave.cpp:2509:9: note: 'sprintf' output between 6 and 261 bytes into a destination of size 255 sprintf (filespec, "%s%s*.plr", gameFolders.szProfDir, *gameFolders.szProfDir ? "/" : ""); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ playsave.cpp:2487:10: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 8 bytes from a string of length 8 [-Wstringop-truncation] strncpy (LOCALPLAYER.callsign, gameConfig.szLastPlayer, CALLSIGN_LEN); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ playsave.cpp:2492:10: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 8 bytes from a string of length 8 [-Wstringop-truncation] strncpy (filename, gameData.multiplayer.autoNG.szPlayer, 8); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ playsave.cpp:2527:10: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 8 bytes from a string of length 254 [-Wstringop-truncation] strncpy (LOCALPLAYER.callsign, filename, CALLSIGN_LEN); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/playsave.Tpo .deps/playsave.Po mv -f .deps/state.Tpo .deps/state.Po rm -f libgameio.a ar cru libgameio.a createmesh.o gamemine.o gamesave.o hoard.o iff.o loadgame.o loadgamedata.o loadmodeldata.o loadsounds.o loadtextures.o mission.o paging.o piggy.o playsave.o state.o tga.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib libgameio.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/gameio' Making all in gamemodes gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/gamemodes' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT entropy.o -MD -MP -MF .deps/entropy.Tpo -c -o entropy.o entropy.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT monsterball.o -MD -MP -MF .deps/monsterball.Tpo -c -o monsterball.o monsterball.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from entropy.cpp:18: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from entropy.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from entropy.cpp:18: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from monsterball.cpp:18: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from monsterball.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from monsterball.cpp:18: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from monsterball.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from monsterball.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from monsterball.cpp:18: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from monsterball.cpp:18: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from monsterball.cpp:18: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from monsterball.cpp:18: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from monsterball.cpp:18: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from monsterball.cpp:18: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from monsterball.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from monsterball.cpp:18: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from monsterball.cpp:18: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from monsterball.cpp:18: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from monsterball.cpp:18: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from monsterball.cpp:18: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from monsterball.cpp:18: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from monsterball.cpp:18: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from monsterball.cpp:26: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from monsterball.cpp:18: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from monsterball.cpp:18: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from monsterball.cpp:18: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from monsterball.cpp:18: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from monsterball.cpp:26: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from monsterball.cpp:18: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from monsterball.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from monsterball.cpp:18: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/monsterball.Tpo .deps/monsterball.Po In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from entropy.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from entropy.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from entropy.cpp:18: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from entropy.cpp:18: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from entropy.cpp:18: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from entropy.cpp:18: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from entropy.cpp:18: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from entropy.cpp:18: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from entropy.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from entropy.cpp:18: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from entropy.cpp:18: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from entropy.cpp:18: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from entropy.cpp:18: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from entropy.cpp:18: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from entropy.cpp:18: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from entropy.cpp:18: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from entropy.cpp:20: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from entropy.cpp:18: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from entropy.cpp:18: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from entropy.cpp:18: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from entropy.cpp:18: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from entropy.cpp:20: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from entropy.cpp:18: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from entropy.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from entropy.cpp:18: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/entropy.Tpo .deps/entropy.Po rm -f libgamemodes.a ar cru libgamemodes.a entropy.o monsterball.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib libgamemodes.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/gamemodes' Making all in input gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/input' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT event.o -MD -MP -MF .deps/event.Tpo -c -o event.o event.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT input.o -MD -MP -MF .deps/input.Tpo -c -o input.o input.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT joy.o -MD -MP -MF .deps/joy.Tpo -c -o joy.o joy.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT key.o -MD -MP -MF .deps/key.Tpo -c -o key.o key.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT mouse.o -MD -MP -MF .deps/mouse.Tpo -c -o mouse.o mouse.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from mouse.cpp:20: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from mouse.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from mouse.cpp:20: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from key.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from key.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from key.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from input.cpp:25: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/error.h:19, from input.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/error.h:19, from input.cpp:25: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from mouse.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from mouse.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ key.cpp: In function 'void KeyHandler(SDL_KeyboardEvent*)': key.cpp:500:11: warning: variable 'unicode' set but not used [-Wunused-but-set-variable] wchar_t unicode; ^~~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from key.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from key.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from key.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from key.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from key.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from key.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from key.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from key.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from key.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from key.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from key.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from key.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from joy.cpp:19: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from joy.cpp:19: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from joy.cpp:19: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from key.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from key.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from key.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from key.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from key.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from key.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from joy.cpp:19: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from joy.cpp:19: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from joy.cpp:19: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from joy.cpp:19: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from joy.cpp:19: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from joy.cpp:19: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from joy.cpp:19: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from joy.cpp:19: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from joy.cpp:19: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from joy.cpp:19: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from joy.cpp:19: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from joy.cpp:19: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from joy.cpp:19: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from joy.cpp:19: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from joy.cpp:19: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from joy.cpp:19: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from joy.cpp:19: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from joy.cpp:19: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from joy.cpp:19: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from joy.cpp:19: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from joy.cpp:19: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from joy.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from joy.cpp:19: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ input.cpp: In function 'int ControlsReadJoystick(int*)': input.cpp:232:22: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memset (joyAxis, 0, sizeof (joyAxis)); ^~~~~~~~~~~~~~~~ input.cpp: In function 'void ControlsSetFCSButton(int, int)': input.cpp:252:6: warning: variable 'state' set but not used [-Wunused-but-set-variable] int state, timeDown, upCount, downCount; ^~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from key.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from key.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from key.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from key.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from key.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ key.cpp: In function 'void KeyInit()': key.cpp:648:37: warning: iteration 255 invokes undefined behavior [-Waggressive-loop-optimizations] pszKeyText [i] = keyProperties [i].pszKeyText; ~~~~~~~~~~~~~~~~~~^~~~~~~~~~ key.cpp:647:14: note: within this loop for(i = 0; i < 256; i++) ~~^~~~~ input.cpp: In function 'int ControlsReadAll()': input.cpp:1222:6: warning: variable 'nBankSensMod' set but not used [-Wunused-but-set-variable] int nBankSensMod; ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from input.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from input.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from input.cpp:26: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from input.cpp:26: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from input.cpp:26: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from input.cpp:26: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from input.cpp:26: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from input.cpp:26: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from input.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from input.cpp:26: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from input.cpp:26: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from input.cpp:26: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from input.cpp:26: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from input.cpp:26: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from input.cpp:26: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from input.cpp:26: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from input.cpp:35: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from input.cpp:26: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from input.cpp:26: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from input.cpp:26: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from input.cpp:26: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from input.cpp:35: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from input.cpp:26: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from input.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from input.cpp:26: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/joy.Tpo .deps/joy.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT systemkeys.o -MD -MP -MF .deps/systemkeys.Tpo -c -o systemkeys.o systemkeys.cpp mv -f .deps/key.Tpo .deps/key.Po In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mouse.cpp:20: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mouse.cpp:20: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mouse.cpp:20: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from mouse.cpp:20: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from mouse.cpp:20: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from mouse.cpp:20: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from mouse.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mouse.cpp:20: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mouse.cpp:20: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mouse.cpp:20: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from mouse.cpp:20: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from mouse.cpp:20: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from mouse.cpp:20: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mouse.cpp:20: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from mouse.cpp:20: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from mouse.cpp:20: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from mouse.cpp:20: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from mouse.cpp:20: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from mouse.cpp:20: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from mouse.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mouse.cpp:20: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/mouse.Tpo .deps/mouse.Po In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from event.cpp:28: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from event.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from event.cpp:28: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from systemkeys.cpp:28: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from systemkeys.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from systemkeys.cpp:28: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/input.Tpo .deps/input.Po In file included from ../include/transprender.h:5, from systemkeys.cpp:38: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ systemkeys.cpp: In function 'void HandleGameKey(int)': systemkeys.cpp:828:37: warning: operation on 'gameStates.tGameStates::render.tRenderStates::bShowFrameRate' may be undefined [-Wsequence-point] gameStates.render.bShowFrameRate = ++gameStates.render.bShowFrameRate % (6 + (gameStates.render.bPerPixelLighting == 2)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ systemkeys.cpp: In function 'int ReadControls()': systemkeys.cpp:1211:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (gameStates.app.bPlayerIsDead) ^~ systemkeys.cpp:1213:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (gameStates.app.bEndLevelSequence) ^~ systemkeys.cpp: In function 'void HandleZoom()': systemkeys.cpp:1254:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (extraGameInfo [IsMultiGame].nZoomMode == 0) ^~ systemkeys.cpp:1257:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' bool bAllow = (gameData.weapons.nPrimary == VULCAN_INDEX) || (gameData.weapons.nPrimary == GAUSS_INDEX); ^~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from systemkeys.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from systemkeys.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from systemkeys.cpp:28: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from systemkeys.cpp:28: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from systemkeys.cpp:28: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from systemkeys.cpp:28: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from systemkeys.cpp:28: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from systemkeys.cpp:28: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from systemkeys.cpp:38: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from systemkeys.cpp:38: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from systemkeys.cpp:38: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from systemkeys.cpp:38: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from systemkeys.cpp:38: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from systemkeys.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from systemkeys.cpp:28: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from systemkeys.cpp:28: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from systemkeys.cpp:28: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from systemkeys.cpp:28: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from systemkeys.cpp:28: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from systemkeys.cpp:28: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from systemkeys.cpp:28: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from systemkeys.cpp:30: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from systemkeys.cpp:38: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from systemkeys.cpp:28: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from systemkeys.cpp:38: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from systemkeys.cpp:38: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from systemkeys.cpp:28: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from systemkeys.cpp:28: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from systemkeys.cpp:28: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from systemkeys.cpp:28: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from systemkeys.cpp:30: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from systemkeys.cpp:28: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from systemkeys.cpp:28: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from systemkeys.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from systemkeys.cpp:28: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from event.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from event.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from event.cpp:28: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from event.cpp:28: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from event.cpp:28: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from event.cpp:28: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from event.cpp:28: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from event.cpp:28: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from event.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from event.cpp:28: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from event.cpp:28: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from event.cpp:28: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from event.cpp:28: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from event.cpp:28: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from event.cpp:28: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from event.cpp:28: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from event.cpp:28: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from event.cpp:28: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from event.cpp:28: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from event.cpp:28: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from event.cpp:28: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from event.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from event.cpp:28: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/event.Tpo .deps/event.Po mv -f .deps/systemkeys.Tpo .deps/systemkeys.Po rm -f libinput.a ar cru libinput.a event.o input.o joy.o key.o mouse.o systemkeys.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib libinput.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/input' Making all in io gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/io' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT args.o -MD -MP -MF .deps/args.Tpo -c -o args.o args.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT cfile.o -MD -MP -MF .deps/cfile.Tpo -c -o cfile.o cfile.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT d_io.o -MD -MP -MF .deps/d_io.Tpo -c -o d_io.o d_io.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT hogfile.o -MD -MP -MF .deps/hogfile.Tpo -c -o hogfile.o hogfile.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT findfile.o -MD -MP -MF .deps/findfile.Tpo -c -o findfile.o `test -f './linux/findfile.cpp' || echo './'`./linux/findfile.cpp mv -f .deps/d_io.Tpo .deps/d_io.Po In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cfile.cpp:28: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cfile.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from cfile.cpp:28: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from args.cpp:27: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/console.h:23, from args.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/console.h:23, from args.cpp:27: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hogfile.cpp:27: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hogfile.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from hogfile.cpp:27: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from ./linux/findfile.cpp:12: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/error.h:19, from ./linux/findfile.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/error.h:19, from ./linux/findfile.cpp:12: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ./linux/findfile.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from ./linux/findfile.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ./linux/findfile.cpp:12: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from ./linux/findfile.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from ./linux/findfile.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from ./linux/findfile.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ ./linux/findfile.cpp: In function 'int FileFindNext(FILEFINDSTRUCT*, int)': ./linux/findfile.cpp:28:19: warning: '/' directive writing 1 byte into a region of size between 0 and 255 [-Wformat-overflow=] sprintf (szFile, "%s/%s", ffsP->szDir, deP->d_name); ^~~~~~~ ./linux/findfile.cpp:28:10: note: 'sprintf' output between 2 and 512 bytes into a destination of size 255 sprintf (szFile, "%s/%s", ffsP->szDir, deP->d_name); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hogfile.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hogfile.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hogfile.cpp:27: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hogfile.cpp:27: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hogfile.cpp:27: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hogfile.cpp:27: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hogfile.cpp:27: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from hogfile.cpp:27: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hogfile.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hogfile.cpp:27: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hogfile.cpp:27: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hogfile.cpp:27: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hogfile.cpp:27: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hogfile.cpp:27: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from hogfile.cpp:27: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hogfile.cpp:27: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hogfile.cpp:27: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from hogfile.cpp:27: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hogfile.cpp:27: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hogfile.cpp:27: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hogfile.cpp:27: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from hogfile.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hogfile.cpp:27: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/findfile.Tpo .deps/findfile.Po In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from args.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from args.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from args.cpp:27: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from args.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from args.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/console.h:103:15: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from args.cpp:27: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from args.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from args.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from args.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/console.h:103:15: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from args.cpp:27: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ hogfile.cpp: In member function 'int CHogFile::Setup(const char*, const char*, tHogFile*, int*)': hogfile.cpp:115:10: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 13 equals destination size [-Wstringop-truncation] strncpy (hogFiles [0].name, psz + 1, 13); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/args.Tpo .deps/args.Po hogfile.cpp: In member function 'FILE* CHogFile::Find(tHogFileList*, const char*, const char*, int*)': hogfile.cpp:233:15: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf (fn, "%s/%s", folder, hogP->szName); ^~~~~~~ hogfile.cpp:233:10: note: 'sprintf' output 2 or more bytes (assuming 256) into a destination of size 255 sprintf (fn, "%s/%s", folder, hogP->szName); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/hogfile.Tpo .deps/hogfile.Po cfile.cpp: In member function 'int CFile::Write(const void*, int, int)': cfile.cpp:372:17: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] if (!(nElemSize * nElemCount)) ~~~~~~~~~~~^~~~~~~~~~~~~ cfile.cpp: In member function 'int CFile::Seek(long int, int)': cfile.cpp:488:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!m_cf.size) ^~ cfile.cpp:491:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int destPos; ^~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cfile.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cfile.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cfile.cpp:28: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cfile.cpp:28: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cfile.cpp:28: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cfile.cpp:28: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cfile.cpp:28: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from cfile.cpp:28: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cfile.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cfile.cpp:28: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cfile.cpp:28: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cfile.cpp:28: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cfile.cpp:28: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cfile.cpp:28: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from cfile.cpp:28: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cfile.cpp:28: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from cfile.cpp:28: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from cfile.cpp:28: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cfile.cpp:28: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from cfile.cpp:28: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from cfile.cpp:28: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from cfile.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cfile.cpp:28: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ cfile.cpp: In static member function 'static FILE* CFile::GetFileHandle(const char*, const char*, const char*)': cfile.cpp:177:17: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf (fn, "%s/%s", gameFolders.szAltHogDir, filename); ^~~~~~~ cfile.cpp:177:12: note: 'sprintf' output 2 or more bytes (assuming 256) into a destination of size 255 sprintf (fn, "%s/%s", gameFolders.szAltHogDir, filename); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cfile.cpp: In member function 'int CFile::Extract(const char*, const char*, int, const char*)': cfile.cpp:819:18: warning: '%s' directive writing up to 254 bytes into a region of size between 0 and 255 [-Wformat-overflow=] sprintf (szDest, "%s%s%s", gameFolders.szCacheDir, *gameFolders.szCacheDir ? "/" : "", fn); ^~~~~~~~ ~~ cfile.cpp:819:9: note: 'sprintf' output between 1 and 510 bytes into a destination of size 255 sprintf (szDest, "%s%s%s", gameFolders.szCacheDir, *gameFolders.szCacheDir ? "/" : "", fn); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/cfile.Tpo .deps/cfile.Po rm -f libio.a ar cru libio.a args.o cfile.o d_io.o hogfile.o findfile.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib libio.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/io' Making all in libmve gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/libmve' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT decoder16.o -MD -MP -MF .deps/decoder16.Tpo -c -o decoder16.o decoder16.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT decoder8.o -MD -MP -MF .deps/decoder8.Tpo -c -o decoder8.o decoder8.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT mve_audio.o -MD -MP -MF .deps/mve_audio.Tpo -c -o mve_audio.o mve_audio.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT mvelib.o -MD -MP -MF .deps/mvelib.Tpo -c -o mvelib.o mvelib.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT mveplay.o -MD -MP -MF .deps/mveplay.Tpo -c -o mveplay.o mveplay.cpp decoder16.cpp: In function 'void decodeFrame16(ubyte*, ubyte*, int, ubyte*, int)': decoder16.cpp:17:12: warning: variable 'pOrig' set but not used [-Wunused-but-set-variable] ubyte *pOrig; ^~~~~ decoder16.cpp:18:23: warning: variable 'pEnd' set but not used [-Wunused-but-set-variable] ubyte *pOffData, *pEnd; ^~~~ decoder16.cpp:22:9: warning: variable 'length' set but not used [-Wunused-but-set-variable] int length; ^~~~~~ mveplay.cpp: In function 'int create_audiobuf_handler(ubyte, ubyte, ubyte*, int, void*)': mveplay.cpp:312:6: warning: variable 'desired_buffer' set but not used [-Wunused-but-set-variable] int desired_buffer; ^~~~~~~~~~~~~~ mveplay.cpp: In function 'int create_videobuf_handler(ubyte, ubyte, ubyte*, int, void*)': mveplay.cpp:448:8: warning: variable 'count' set but not used [-Wunused-but-set-variable] short count, truecolor; ^~~~~ mveplay.cpp: In function 'int video_data_handler(ubyte, ubyte, ubyte*, int, void*)': mveplay.cpp:531:8: warning: variable 'nFrameHot' set but not used [-Wunused-but-set-variable] short nFrameHot, nFrameCold; ^~~~~~~~~ mveplay.cpp:531:19: warning: variable 'nFrameCold' set but not used [-Wunused-but-set-variable] short nFrameHot, nFrameCold; ^~~~~~~~~~ mveplay.cpp:532:8: warning: variable 'nXoffset' set but not used [-Wunused-but-set-variable] short nXoffset, nYoffset; ^~~~~~~~ mveplay.cpp:532:18: warning: variable 'nYoffset' set but not used [-Wunused-but-set-variable] short nXoffset, nYoffset; ^~~~~~~~ mveplay.cpp:533:8: warning: variable 'nXsize' set but not used [-Wunused-but-set-variable] short nXsize, nYsize; ^~~~~~ mveplay.cpp:533:16: warning: variable 'nYsize' set but not used [-Wunused-but-set-variable] short nXsize, nYsize; ^~~~~~ mv -f .deps/mve_audio.Tpo .deps/mve_audio.Po mv -f .deps/mvelib.Tpo .deps/mvelib.Po mv -f .deps/mveplay.Tpo .deps/mveplay.Po mv -f .deps/decoder8.Tpo .deps/decoder8.Po mv -f .deps/decoder16.Tpo .deps/decoder16.Po rm -f libmve.a ar cru libmve.a decoder16.o decoder8.o mve_audio.o mvelib.o mveplay.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib libmve.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/libmve' Making all in lighting gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/lighting' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT lightcluster.o -MD -MP -MF .deps/lightcluster.Tpo -c -o lightcluster.o lightcluster.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT dynlight.o -MD -MP -MF .deps/dynlight.Tpo -c -o dynlight.o dynlight.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT headlight.o -MD -MP -MF .deps/headlight.Tpo -c -o headlight.o headlight.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT light.o -MD -MP -MF .deps/light.Tpo -c -o light.o light.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT lightmap.o -MD -MP -MF .deps/lightmap.Tpo -c -o lightmap.o lightmap.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from dynlight.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from dynlight.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from dynlight.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightcluster.cpp:9: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightcluster.cpp:9: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from lightcluster.cpp:9: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightmap.cpp:27: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightmap.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from lightmap.cpp:27: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from light.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from light.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from light.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/renderthreads.h:18, from dynlight.cpp:33: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ dynlight.cpp: In static member function 'static int CLightManager::IsTriggered(short int, short int, bool)': dynlight.cpp:247:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if ((nSegment < 0) || (nSide < 0)) ^~ dynlight.cpp:250:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CTrigger* trigP; ^~~~~~~~ lightcluster.cpp: In member function 'void CLightClusterManager::Reset()': lightcluster.cpp:46:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!m_bUse) ^~ lightcluster.cpp:49:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CObject *objP; ^~~~~~~ lightcluster.cpp: In member function 'void CLightClusterManager::Set()': lightcluster.cpp:62:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!m_bUse) ^~ lightcluster.cpp:65:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CObject *objP; ^~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightcluster.cpp:9: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightcluster.cpp:9: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightcluster.cpp:9: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightcluster.cpp:9: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightcluster.cpp:9: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightcluster.cpp:9: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightcluster.cpp:9: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/renderthreads.h:18, from lightmap.cpp:47: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from lightcluster.cpp:9: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightcluster.cpp:9: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightcluster.cpp:9: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightcluster.cpp:9: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightcluster.cpp:9: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightcluster.cpp:9: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightcluster.cpp:9: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from dynlight.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from dynlight.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ lightmap.cpp: In member function 'int CLightmapManager::Init(int)': lightmap.cpp:240:9: warning: variable 'bIsLight' set but not used [-Wunused-but-set-variable] int bIsLight, nIndex, i; ^~~~~~~~ lightmap.cpp:241:11: warning: variable 't' set but not used [-Wunused-but-set-variable] short t; ^ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from lightcluster.cpp:9: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from lightcluster.cpp:9: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ lightmap.cpp: In member function 'void CLightmapManager::Init()': lightmap.cpp:704:36: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'tLightmapData' {aka 'struct tLightmapData'}; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data, 0, sizeof (m_data)); ^ In file included from lightmap.cpp:34: ../include/lightmap.h:48:16: note: 'tLightmapData' {aka 'struct tLightmapData'} declared here typedef struct tLightmapData { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from lightcluster.cpp:9: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from lightcluster.cpp:9: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightcluster.cpp:9: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from lightcluster.cpp:9: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightmap.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightmap.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from lightcluster.cpp:9: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightcluster.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from lightcluster.cpp:9: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from dynlight.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from dynlight.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from dynlight.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from dynlight.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from dynlight.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from light.cpp:33: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ light.cpp: In function 'void ApplyLight(fix, int, CFixVector*, int, CArray&, int, tRgbaColorf*)': light.cpp:227:9: warning: variable 'bApplyLight' set but not used [-Wunused-but-set-variable] int bApplyLight; ^~~~~~~~~~~ light.cpp:232:13: warning: variable 'lightObjP' set but not used [-Wunused-but-set-variable] CObject* lightObjP, *objP = (nObject < 0) ? NULL : OBJECTS + nObject; ^~~~~~~~~ In file included from ../include/cfile.h:26, from ../include/carray.h:20, from ../include/descent.h:25, from light.cpp:21: light.cpp: In function 'void ComputeEngineGlow(CObject*, fix*)': ../include/maths.h:31:40: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] #define I2X(i) ((static_cast (i)) * 65536) ^ ../include/maths.h:55:44: note: in definition of macro 'FixDiv' #define FixDiv(_a, _b) (static_cast ((_b) ? (((static_cast (_a)) * 65536) / (static_cast (_b))) : 1)) ^~ ../include/object.h:146:22: note: in expansion of macro 'I2X' #define MAX_VELOCITY I2X(50) ^~~ light.cpp:803:43: note: in expansion of macro 'MAX_VELOCITY' xEngineGlowValue [0] += (FixDiv (speed, MAX_VELOCITY) * 3) / 5; ^~~~~~~~~~~~ light.cpp: In function 'void FlickerLights()': light.cpp:821:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!(flP = gameData.render.lights.flicker.Buffer ())) ^~ light.cpp:824:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int l; ^~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from light.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from light.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from light.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from light.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from light.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from light.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from light.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from light.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from light.cpp:33: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from light.cpp:33: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from light.cpp:33: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from light.cpp:33: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from light.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from light.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from light.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from light.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from light.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from light.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from light.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from light.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from light.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from light.cpp:33: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from light.cpp:33: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from light.cpp:21: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from light.cpp:21: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from light.cpp:21: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from light.cpp:21: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from light.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from light.cpp:21: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from light.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from light.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from dynlight.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from dynlight.cpp:33: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from dynlight.cpp:33: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from dynlight.cpp:33: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from dynlight.cpp:33: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from dynlight.cpp:33: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from dynlight.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from dynlight.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from dynlight.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from dynlight.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from dynlight.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from dynlight.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from dynlight.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from dynlight.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from dynlight.cpp:26: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from dynlight.cpp:33: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from dynlight.cpp:33: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from dynlight.cpp:33: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from dynlight.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from dynlight.cpp:21: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from dynlight.cpp:21: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from dynlight.cpp:21: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from dynlight.cpp:21: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from dynlight.cpp:26: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from dynlight.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from dynlight.cpp:21: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from dynlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from dynlight.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from headlight.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from headlight.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from headlight.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightmap.cpp:27: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightmap.cpp:27: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightmap.cpp:27: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightmap.cpp:27: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightmap.cpp:27: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from lightmap.cpp:27: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from lightmap.cpp:47: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from lightmap.cpp:47: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from lightmap.cpp:47: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from lightmap.cpp:47: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from lightmap.cpp:47: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightmap.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightmap.cpp:27: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightmap.cpp:27: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightmap.cpp:27: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightmap.cpp:27: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightmap.cpp:27: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from lightmap.cpp:27: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ mv -f .deps/lightcluster.Tpo .deps/lightcluster.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT lightprecalc.o -MD -MP -MF .deps/lightprecalc.Tpo -c -o lightprecalc.o lightprecalc.cpp In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ headlight.cpp: In member function 'fix CHeadlightManager::ComputeLightOnObject(CObject*)': headlight.cpp:65:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if ((objP->info.nType != OBJ_ROBOT) && (objP->info.nType != OBJ_PLAYER)) ^~ headlight.cpp:68:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' fix dot, dist, light = 0; ^~~ headlight.cpp: In member function 'void CHeadlightManager::Transform()': headlight.cpp:95:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (automap.m_bDisplay) ^~ headlight.cpp:98:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CDynLight* pl; ^~~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from headlight.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from headlight.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from headlight.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from headlight.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from headlight.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from headlight.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from headlight.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from headlight.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from headlight.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from headlight.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from headlight.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from headlight.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from headlight.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from headlight.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from headlight.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from headlight.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from headlight.cpp:30: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from headlight.cpp:21: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from headlight.cpp:21: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from headlight.cpp:21: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from headlight.cpp:21: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from headlight.cpp:30: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from headlight.cpp:21: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from headlight.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from headlight.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/light.Tpo .deps/light.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT lightrender.o -MD -MP -MF .deps/lightrender.Tpo -c -o lightrender.o lightrender.cpp mv -f .deps/headlight.Tpo .deps/headlight.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT lightshaders.o -MD -MP -MF .deps/lightshaders.Tpo -c -o lightshaders.o lightshaders.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightrender.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightrender.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from lightrender.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ lightprecalc.cpp: In function 'void SetSegAndVertVis(short int, short int, int)': lightprecalc.cpp:274:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!bLights) ^~ lightprecalc.cpp:277:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' tSegFaces* segFaceP = SEGFACES + nSegment; ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/console.h:103:15: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightprecalc.cpp:26: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightprecalc.cpp:26: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightprecalc.cpp:26: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightprecalc.cpp:26: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightprecalc.cpp:26: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from lightprecalc.cpp:26: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/console.h:103:15: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightprecalc.cpp:26: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightprecalc.cpp:26: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightprecalc.cpp:26: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightprecalc.cpp:26: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightprecalc.cpp:26: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from lightprecalc.cpp:26: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from lightprecalc.cpp:26: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from lightprecalc.cpp:30: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from lightprecalc.cpp:26: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from lightprecalc.cpp:26: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightprecalc.cpp:26: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from lightprecalc.cpp:26: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from lightprecalc.cpp:30: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from lightprecalc.cpp:26: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from ../include/mono.h:19, from lightprecalc.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from lightprecalc.cpp:26: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from lightmap.cpp:27: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from lightmap.cpp:34: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from lightmap.cpp:47: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from lightmap.cpp:47: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from lightmap.cpp:47: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightmap.cpp:27: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from lightmap.cpp:27: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from lightmap.cpp:27: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightmap.cpp:27: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from lightmap.cpp:27: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightshaders.cpp:9: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightshaders.cpp:9: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from lightshaders.cpp:9: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from lightmap.cpp:34: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightmap.cpp:27: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from lightmap.cpp:27: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightmap.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from lightmap.cpp:27: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/renderthreads.h:18, from lightrender.cpp:33: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ lightrender.cpp: In member function 'void CLightManager::SetNearestStatic(int, int, ubyte, int)': lightrender.cpp:355:15: warning: variable 'nActiveLights' set but not used [-Wunused-but-set-variable] static short nActiveLights [4] = {-1, -1, -1, -1}; ^~~~~~~~~~~~~ lightrender.cpp: In member function 'short int CLightManager::SetNearestToPixel(short int, short int, CFixVector*, CFixVector*, float, int)': lightrender.cpp:503:11: warning: variable 'xLightDist' set but not used [-Wunused-but-set-variable] fix xLightDist, xMaxLightRange = F2X (fLightRad) + (/*(gameStates.render.bPerPixelLighting == 2) ? MAX_LIGHT_RANGE * 2 :*/ MAX_LIGHT_RANGE); ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightrender.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightrender.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/renderthreads.h:18, from lightshaders.cpp:23: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightshaders.cpp:9: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightshaders.cpp:9: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightshaders.cpp:9: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightshaders.cpp:9: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightshaders.cpp:9: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightshaders.cpp:9: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightshaders.cpp:9: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from lightshaders.cpp:9: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from lightshaders.cpp:23: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from lightshaders.cpp:23: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from lightshaders.cpp:23: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from lightshaders.cpp:23: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from lightshaders.cpp:23: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightshaders.cpp:9: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightshaders.cpp:9: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightshaders.cpp:9: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightshaders.cpp:9: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightshaders.cpp:9: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightshaders.cpp:9: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from lightshaders.cpp:9: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from lightshaders.cpp:9: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from lightshaders.cpp:14: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from lightshaders.cpp:23: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from lightshaders.cpp:23: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from lightshaders.cpp:23: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightshaders.cpp:9: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from lightshaders.cpp:9: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from lightshaders.cpp:9: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightshaders.cpp:9: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from lightshaders.cpp:9: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from lightshaders.cpp:14: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightshaders.cpp:9: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from lightshaders.cpp:9: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightshaders.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from lightshaders.cpp:9: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/dynlight.Tpo .deps/dynlight.Po lightshaders.cpp: In function 'char* BuildLightingShader(const char*, int)': lightshaders.cpp:1180:21: warning: '%d' directive writing between 1 and 11 bytes into a region of size 2 [-Wformat-overflow=] sprintf (szLights, "%d", nLights); ^~~~ lightshaders.cpp:1180:21: note: directive argument in the range [-2147483648, 8] lightshaders.cpp:1180:10: note: 'sprintf' output between 2 and 12 bytes into a destination of size 2 sprintf (szLights, "%d", nLights); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/lightprecalc.Tpo .deps/lightprecalc.Po In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightrender.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightrender.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightrender.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightrender.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightrender.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from lightrender.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from lightrender.cpp:33: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from lightrender.cpp:33: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from lightrender.cpp:33: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from lightrender.cpp:33: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from lightrender.cpp:33: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightrender.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightrender.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightrender.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ mv -f .deps/lightmap.Tpo .deps/lightmap.Po mv -f .deps/lightshaders.Tpo .deps/lightshaders.Po In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from lightrender.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightrender.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightrender.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from lightrender.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from lightrender.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from lightrender.cpp:26: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from lightrender.cpp:33: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from lightrender.cpp:33: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from lightrender.cpp:33: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightrender.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from lightrender.cpp:21: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from lightrender.cpp:21: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from lightrender.cpp:21: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from lightrender.cpp:21: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from lightrender.cpp:26: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from lightrender.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from lightrender.cpp:21: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from lightrender.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from lightrender.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/lightrender.Tpo .deps/lightrender.Po rm -f liblighting.a ar cru liblighting.a lightcluster.o dynlight.o headlight.o light.o lightmap.o lightprecalc.o lightrender.o lightshaders.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib liblighting.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/lighting' Making all in main gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/main' gmake[5]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/main' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT briefings.o -MD -MP -MF .deps/briefings.Tpo -c -o briefings.o briefings.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT cheats.o -MD -MP -MF .deps/cheats.Tpo -c -o cheats.o cheats.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT cmd.o -MD -MP -MF .deps/cmd.Tpo -c -o cmd.o cmd.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT config.o -MD -MP -MF .deps/config.Tpo -c -o config.o config.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT controls.o -MD -MP -MF .deps/controls.Tpo -c -o controls.o controls.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cheats.cpp:27: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cheats.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from cheats.cpp:27: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from briefings.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from briefings.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from briefings.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cheats.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cheats.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from config.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from config.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from config.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cheats.cpp:27: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cheats.cpp:27: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cheats.cpp:27: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from cmd.cpp:12: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/console.h:23, from cmd.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/console.h:23, from cmd.cpp:12: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cheats.cpp:27: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from cmd.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from cmd.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from cmd.cpp:12: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from cmd.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cheats.cpp:27: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from cmd.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/console.h:103:15: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from cmd.cpp:12: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from cmd.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/console.h:23, from cmd.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from cmd.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/console.h:103:15: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/console.h:23, from cmd.cpp:12: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from cheats.cpp:27: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cheats.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cheats.cpp:27: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cheats.cpp:27: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cheats.cpp:27: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from controls.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from controls.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from controls.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cheats.cpp:27: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cheats.cpp:27: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from cheats.cpp:27: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cheats.cpp:27: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from cheats.cpp:32: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from cheats.cpp:27: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from cheats.cpp:27: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cheats.cpp:27: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from cheats.cpp:27: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from cheats.cpp:32: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from cheats.cpp:27: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from cheats.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cheats.cpp:27: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ cmd.cpp: In function 'void cmd_parse(char*)': cmd.cpp:30:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 2048 equals destination size [-Wstringop-truncation] strncpy( buffer, &input[i], CMD_MAX_LENGTH ); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/cmd.Tpo .deps/cmd.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT credits.o -MD -MP -MF .deps/credits.Tpo -c -o credits.o credits.cpp In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from config.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from config.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from config.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from config.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from config.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from config.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from config.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from config.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from config.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from config.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from config.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from config.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from config.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from config.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from config.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from config.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from config.cpp:34: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from config.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from config.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from config.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from config.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from config.cpp:34: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from config.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from config.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from config.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from credits.cpp:36: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from credits.cpp:36: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from credits.cpp:36: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ controls.cpp: In function 'void ReadFlyingControls(CObject*)': controls.cpp:75:7: warning: variable 'bMulti' set but not used [-Wunused-but-set-variable] int bMulti; ^~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from controls.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from controls.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from controls.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from controls.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from controls.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from controls.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from controls.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from controls.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from controls.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from controls.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from controls.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from controls.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from controls.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from controls.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from controls.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from controls.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from controls.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from controls.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from controls.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from controls.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from controls.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from controls.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from controls.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from controls.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from controls.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/controls.Tpo .deps/controls.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT crypt.o -MD -MP -MF .deps/crypt.Tpo -c -o crypt.o crypt.cpp mv -f .deps/crypt.Tpo .deps/crypt.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT dropobject.o -MD -MP -MF .deps/dropobject.Tpo -c -o dropobject.o dropobject.cpp briefings.cpp: In member function 'int CBriefing::HandleB()': briefings.cpp:930:34: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&bmGuy, 0, sizeof (bmGuy)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from briefings.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ briefings.cpp: In member function 'int CBriefing::HandleNewPage()': briefings.cpp:1305:11: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] return NULL; ^~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from briefings.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from briefings.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from briefings.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from briefings.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from briefings.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from briefings.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from briefings.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from briefings.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from briefings.cpp:38: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from briefings.cpp:38: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from briefings.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from briefings.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from briefings.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from briefings.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from briefings.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from briefings.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from briefings.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from briefings.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from briefings.cpp:37: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from briefings.cpp:38: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from briefings.cpp:38: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from briefings.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from briefings.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from briefings.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from briefings.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from briefings.cpp:37: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from briefings.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from briefings.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from briefings.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from credits.cpp:36: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from credits.cpp:36: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from credits.cpp:36: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from credits.cpp:36: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from credits.cpp:36: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from credits.cpp:36: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from credits.cpp:36: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from credits.cpp:36: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from credits.cpp:36: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from credits.cpp:36: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from credits.cpp:36: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from credits.cpp:36: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from credits.cpp:36: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from credits.cpp:36: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from credits.cpp:36: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from credits.cpp:36: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from credits.cpp:41: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from credits.cpp:36: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from credits.cpp:36: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from credits.cpp:36: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from credits.cpp:36: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from credits.cpp:41: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from credits.cpp:36: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from credits.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from credits.cpp:36: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/cheats.Tpo .deps/cheats.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT effects.o -MD -MP -MF .deps/effects.Tpo -c -o effects.o effects.cpp mv -f .deps/config.Tpo .deps/config.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT endlevel.o -MD -MP -MF .deps/endlevel.Tpo -c -o endlevel.o endlevel.cpp credits.cpp: In member function 'bool CCreditsManager::Open(char*)': credits.cpp:239:18: warning: '.txb' directive writing 4 bytes into a region of size between 1 and 32 [-Wformat-overflow=] sprintf (nfile, "%s.txb", filename); ^~~~~~~~ credits.cpp:239:10: note: 'sprintf' output between 5 and 36 bytes into a destination of size 32 sprintf (nfile, "%s.txb", filename); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from effects.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from effects.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from effects.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/credits.Tpo .deps/credits.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT flightpath.o -MD -MP -MF .deps/flightpath.Tpo -c -o flightpath.o flightpath.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from endlevel.cpp:29: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from endlevel.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from endlevel.cpp:29: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from dropobject.cpp:5: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from dropobject.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from dropobject.cpp:5: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from effects.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from effects.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from effects.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from effects.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from effects.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from effects.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from effects.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from effects.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from effects.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from effects.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from effects.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from effects.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from effects.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from effects.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from effects.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effects.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from effects.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from effects.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from effects.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from effects.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from effects.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from effects.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effects.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from dropobject.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from dropobject.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from dropobject.cpp:5: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/transprender.h:5, from endlevel.cpp:37: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ endlevel.cpp: In function 'void StartRenderedEndLevelSequence()': endlevel.cpp:275:6: warning: variable 'nLastSeg' set but not used [-Wunused-but-set-variable] int nLastSeg, nExitSide, nTunnelLength; ^~~~~~~~ endlevel.cpp: In function 'void DoEndLevelFrame()': endlevel.cpp:485:13: warning: variable 'expl' set but not used [-Wunused-but-set-variable] CObject *expl; ^~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from endlevel.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from endlevel.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from endlevel.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from endlevel.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from endlevel.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from endlevel.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from endlevel.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from endlevel.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from endlevel.cpp:37: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from endlevel.cpp:37: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from endlevel.cpp:37: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from endlevel.cpp:37: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from endlevel.cpp:37: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from endlevel.cpp:46: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from endlevel.cpp:46: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from endlevel.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from endlevel.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from endlevel.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from endlevel.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from dropobject.cpp:5: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from dropobject.cpp:5: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from dropobject.cpp:5: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from dropobject.cpp:5: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from dropobject.cpp:5: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from dropobject.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from dropobject.cpp:5: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from dropobject.cpp:5: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from dropobject.cpp:5: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from dropobject.cpp:5: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from dropobject.cpp:5: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from dropobject.cpp:5: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from dropobject.cpp:5: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from dropobject.cpp:11: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from dropobject.cpp:5: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from dropobject.cpp:5: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from dropobject.cpp:5: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from dropobject.cpp:5: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from dropobject.cpp:11: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from dropobject.cpp:5: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from dropobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from dropobject.cpp:5: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from endlevel.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from endlevel.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from endlevel.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from endlevel.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from endlevel.cpp:37: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from endlevel.cpp:29: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from endlevel.cpp:37: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from endlevel.cpp:37: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from endlevel.cpp:39: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from endlevel.cpp:46: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from endlevel.cpp:46: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from endlevel.cpp:29: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from endlevel.cpp:29: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from flightpath.cpp:5: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from flightpath.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from endlevel.cpp:29: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from endlevel.cpp:29: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from flightpath.cpp:5: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from endlevel.cpp:29: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from endlevel.cpp:39: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from endlevel.cpp:29: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from endlevel.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from endlevel.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/briefings.Tpo .deps/briefings.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT fuelcen.o -MD -MP -MF .deps/fuelcen.Tpo -c -o fuelcen.o fuelcen.cpp In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from flightpath.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from flightpath.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from flightpath.cpp:5: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from flightpath.cpp:5: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from flightpath.cpp:5: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from flightpath.cpp:5: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from flightpath.cpp:5: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ mv -f .deps/effects.Tpo .deps/effects.Po In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from flightpath.cpp:5: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT game.o -MD -MP -MF .deps/game.Tpo -c -o game.o game.cpp In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from flightpath.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from flightpath.cpp:5: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from flightpath.cpp:5: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from flightpath.cpp:5: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from flightpath.cpp:5: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from flightpath.cpp:5: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from flightpath.cpp:5: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from flightpath.cpp:5: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from flightpath.cpp:5: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from flightpath.cpp:5: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from flightpath.cpp:5: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from flightpath.cpp:5: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from flightpath.cpp:5: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from flightpath.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from flightpath.cpp:5: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from fuelcen.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from fuelcen.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from fuelcen.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/flightpath.Tpo .deps/flightpath.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT gameargs.o -MD -MP -MF .deps/gameargs.Tpo -c -o gameargs.o gameargs.cpp In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from fuelcen.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from fuelcen.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fuelcen.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fuelcen.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fuelcen.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fuelcen.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fuelcen.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from fuelcen.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from fuelcen.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fuelcen.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fuelcen.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fuelcen.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fuelcen.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fuelcen.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from fuelcen.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fuelcen.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from fuelcen.cpp:25: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from fuelcen.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from fuelcen.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fuelcen.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from fuelcen.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from fuelcen.cpp:25: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from fuelcen.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from fuelcen.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fuelcen.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/endlevel.Tpo .deps/endlevel.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT gamecntl.o -MD -MP -MF .deps/gamecntl.Tpo -c -o gamecntl.o gamecntl.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gameargs.cpp:38: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gameargs.cpp:38: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ mv -f .deps/dropobject.Tpo .deps/dropobject.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT gamedata.o -MD -MP -MF .deps/gamedata.Tpo -c -o gamedata.o gamedata.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from game.cpp:25: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from game.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from game.cpp:25: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from gameargs.cpp:38: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/fuelcen.Tpo .deps/fuelcen.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT gamefolders.o -MD -MP -MF .deps/gamefolders.Tpo -c -o gamefolders.o gamefolders.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamedata.cpp:38: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamedata.cpp:38: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from gamedata.cpp:38: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/transprender.h:5, from game.cpp:32: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamecntl.cpp:27: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamecntl.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from gamecntl.cpp:27: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ game.cpp: In function 'void ShowHelp()': game.cpp:729:6: warning: variable 'nitems' set but not used [-Wunused-but-set-variable] int nitems, opt = 0; ^~~~~~ game.cpp: In function 'void DoAmbientSounds()': game.cpp:1278:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (gameStates.app.bPlayerIsDead) ^~ game.cpp:1281:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int bLava, bWater; ^~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from game.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from game.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from game.cpp:25: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from game.cpp:25: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from game.cpp:25: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from game.cpp:25: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from game.cpp:25: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from game.cpp:25: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from game.cpp:31: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from game.cpp:32: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from game.cpp:32: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from game.cpp:32: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from game.cpp:32: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from game.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from game.cpp:25: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from game.cpp:25: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from game.cpp:25: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from game.cpp:25: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from game.cpp:25: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from game.cpp:25: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from game.cpp:25: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from game.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from game.cpp:31: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from game.cpp:25: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from game.cpp:32: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from game.cpp:32: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBanListEntry]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CBanListEntry]' ../include/banlist.h:20:15: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CBanListEntry'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from game.cpp:82: ../include/banlist.h:10:7: note: 'class CBanListEntry' declared here class CBanListEntry { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from game.cpp:25: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from game.cpp:25: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from game.cpp:25: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from game.cpp:25: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from game.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from game.cpp:25: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBanListEntry]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBanListEntry]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CBanListEntry]' ../include/banlist.h:20:15: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CBanListEntry'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from game.cpp:82: ../include/banlist.h:10:7: note: 'class CBanListEntry' declared here class CBanListEntry { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from game.cpp:25: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from game.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from game.cpp:25: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/renderthreads.h:18, from gamedata.cpp:60: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ gamedata.cpp: In member function 'void CShadowData::Init()': gamedata.cpp:300:46: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&lightSource, 0, sizeof (lightSource)); ^ In file included from ../include/descent.h:99, from gamedata.cpp:38: ../include/object.h:713:7: note: 'class CObject' declared here class CObject : public CObjectInfo { ^~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamedata.cpp:38: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamedata.cpp:38: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamedata.cpp:38: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamedata.cpp:38: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamedata.cpp:38: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamedata.cpp:38: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamedata.cpp:38: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gamedata.cpp:38: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gamedata.cpp:60: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gamedata.cpp:60: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gamedata.cpp:60: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gamedata.cpp:60: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from gamedata.cpp:60: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamedata.cpp:69: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamedata.cpp:69: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Clear(ubyte, uint) [with _T = CFloatVector3; ubyte = unsigned char; uint = unsigned int]': gamedata.cpp:486:1: required from here ../include/carray.h:110:12: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class CFloatVector3' with 'private' member 'CFloatVector3::v' [-Wclass-memaccess] memset (m_data.buffer, filler, sizeof (_T) * ((count < m_data.length) ? count : m_data.length)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cfile.h:27, from ../include/carray.h:20, from ../include/descent.h:25, from gamedata.cpp:38: ../include/vecmat.h:230:16: note: 'class CFloatVector3' declared here class __pack__ CFloatVector3 { ^~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gameargs.cpp:60: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Clear(ubyte, uint) [with _T = CFixVector; ubyte = unsigned char; uint = unsigned int]': gamedata.cpp:574:1: required from here ../include/carray.h:110:12: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class CFixVector' with 'private' member 'CFixVector::v' [-Wclass-memaccess] memset (m_data.buffer, filler, sizeof (_T) * ((count < m_data.length) ? count : m_data.length)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cfile.h:27, from ../include/carray.h:20, from ../include/descent.h:25, from gamedata.cpp:38: ../include/vecmat.h:57:16: note: 'class CFixVector' declared here class __pack__ CFixVector { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Clear(ubyte, uint) [with _T = CFloatVector; ubyte = unsigned char; uint = unsigned int]': gamedata.cpp:575:1: required from here ../include/carray.h:110:12: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class CFloatVector' with 'private' member 'CFloatVector::v' [-Wclass-memaccess] memset (m_data.buffer, filler, sizeof (_T) * ((count < m_data.length) ? count : m_data.length)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cfile.h:27, from ../include/carray.h:20, from ../include/descent.h:25, from gamedata.cpp:38: ../include/vecmat.h:157:16: note: 'class CFloatVector' declared here class __pack__ CFloatVector { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CSoundSample]': gamedata.cpp:716:25: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gamedata.cpp:38: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>& CArray<_T>::ShareBuffer(CArray<_T>&) [with _T = CSoundSample]': gamedata.cpp:720:31: required from here ../include/carray.h:316:11: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CArray::CArrayData' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&child.m_data, &m_data, sizeof (m_data)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h:30:8: note: 'class CArray::CArrayData' declared here class CArrayData { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>& CArray<_T>::ShareBuffer(CArray<_T>&) [with _T = CBitmap]': gamedata.cpp:751:33: required from here ../include/carray.h:316:11: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CArray::CArrayData' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&child.m_data, &m_data, sizeof (m_data)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h:30:8: note: 'class CArray::CArrayData' declared here class CArrayData { ^~~~~~~~~~ ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CModel]': gamedata.cpp:790:25: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamedata.cpp:38: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = ASE::CModel]': gamedata.cpp:875:25: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class ASE::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:107, from gamedata.cpp:38: ../include/ase.h:68:7: note: 'class ASE::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CModel]': gamedata.cpp:875:25: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamedata.cpp:38: ../include/oof.h:367:7: note: 'class OOF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CPolyModel]': gamedata.cpp:875:25: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CPolyModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2204, from gamedata.cpp:38: ../include/polymodel.h:82:7: note: 'class CPolyModel' declared here class CPolyModel : public CByteArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CModel]': gamedata.cpp:875:25: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class RenderModel::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gamedata.cpp:38: ../include/rendermodel.h:140:7: note: 'class RenderModel::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CObjTypeData]': gamedata.cpp:1068:27: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CObjTypeData' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamedata.cpp:38: ../include/descent.h:1820:7: note: 'class CObjTypeData' declared here class CObjTypeData { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CObject]': gamedata.cpp:1068:27: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:99, from gamedata.cpp:38: ../include/object.h:713:7: note: 'class CObject' declared here class CObject : public CObjectInfo { ^~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Clear(ubyte, uint) [with _T = CObject; ubyte = unsigned char; uint = unsigned int]': gamedata.cpp:1121:1: required from here ../include/carray.h:110:12: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class CObject'; use assignment instead [-Wclass-memaccess] memset (m_data.buffer, filler, sizeof (_T) * ((count < m_data.length) ? count : m_data.length)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:99, from gamedata.cpp:38: ../include/object.h:713:7: note: 'class CObject' declared here class CObject : public CObjectInfo { ^~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamedata.cpp:38: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamedata.cpp:38: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamedata.cpp:38: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamedata.cpp:38: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamedata.cpp:38: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamedata.cpp:38: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gamedata.cpp:38: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamedata.cpp:38: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamedata.cpp:48: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gamedata.cpp:60: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gamedata.cpp:60: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from gamedata.cpp:60: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamedata.cpp:38: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamedata.cpp:69: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamedata.cpp:69: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDynLight]': ../include/carray.h:418:19: required from 'CStaticArray<_T, length>::CStaticArray() [with _T = CDynLight; unsigned int length = 4096]' gamedata.cpp:156:31: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from gamedata.cpp:38: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CSoundSample]' gamedata.cpp:716:25: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gamedata.cpp:38: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CModel]' gamedata.cpp:790:25: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamedata.cpp:38: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = ASE::CModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = ASE::CModel]' gamedata.cpp:875:25: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class ASE::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:107, from gamedata.cpp:38: ../include/ase.h:68:7: note: 'class ASE::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CModel]' gamedata.cpp:875:25: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamedata.cpp:38: ../include/oof.h:367:7: note: 'class OOF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CPolyModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CPolyModel]' gamedata.cpp:875:25: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CPolyModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2204, from gamedata.cpp:38: ../include/polymodel.h:82:7: note: 'class CPolyModel' declared here class CPolyModel : public CByteArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CModelHitboxes]': ../include/carray.h:418:19: required from 'CStaticArray<_T, length>::CStaticArray() [with _T = CModelHitboxes; unsigned int length = 500]' gamedata.cpp:875:25: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CModelHitboxes' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamedata.cpp:38: ../include/descent.h:2211:7: note: 'class CModelHitboxes' declared here class CModelHitboxes { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CModel]' gamedata.cpp:875:25: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class RenderModel::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gamedata.cpp:38: ../include/rendermodel.h:140:7: note: 'class RenderModel::CModel' declared here class CModel { ^~~~~~ gameargs.cpp: In function 'void EvalAutoNetGameArgs()': gameargs.cpp:95:78: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CAutoNetGame'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&gameData.multiplayer.autoNG, 0, sizeof (gameData.multiplayer.autoNG)); ^ In file included from gameargs.cpp:38: ../include/descent.h:2285:7: note: 'class CAutoNetGame' declared here class CAutoNetGame { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gameargs.cpp:38: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gameargs.cpp:38: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/transprender.h:5, from gamecntl.cpp:38: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameargs.cpp:38: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameargs.cpp:38: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameargs.cpp:38: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gameargs.cpp:38: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gameargs.cpp:38: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gameargs.cpp:38: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gameargs.cpp:60: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gameargs.cpp:60: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gameargs.cpp:60: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gameargs.cpp:60: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from gameargs.cpp:60: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameargs.cpp:69: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameargs.cpp:69: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gameargs.cpp:38: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameargs.cpp:38: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameargs.cpp:38: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameargs.cpp:38: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gameargs.cpp:38: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gameargs.cpp:38: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gameargs.cpp:38: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameargs.cpp:38: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameargs.cpp:48: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gameargs.cpp:60: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gameargs.cpp:60: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from gameargs.cpp:60: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamecntl.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamecntl.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gameargs.cpp:38: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameargs.cpp:69: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameargs.cpp:69: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gameargs.cpp:38: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from gameargs.cpp:38: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gameargs.cpp:38: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gameargs.cpp:38: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamecntl.cpp:27: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamecntl.cpp:27: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamecntl.cpp:27: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameargs.cpp:48: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gameargs.cpp:38: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gameargs.cpp:38: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameargs.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameargs.cpp:38: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamecntl.cpp:27: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamecntl.cpp:27: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gamecntl.cpp:27: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from gamecntl.cpp:38: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from gamecntl.cpp:38: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from gamecntl.cpp:38: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from gamecntl.cpp:38: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from gamecntl.cpp:38: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamecntl.cpp:27: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamecntl.cpp:27: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamecntl.cpp:27: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamecntl.cpp:27: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamecntl.cpp:27: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamecntl.cpp:27: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gamecntl.cpp:27: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamecntl.cpp:27: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamecntl.cpp:30: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from gamecntl.cpp:38: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamecntl.cpp:27: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from gamecntl.cpp:38: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from gamecntl.cpp:38: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gamecntl.cpp:27: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from gamecntl.cpp:27: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamecntl.cpp:27: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gamecntl.cpp:27: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamecntl.cpp:30: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamecntl.cpp:27: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gamecntl.cpp:27: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamecntl.cpp:27: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamecntl.cpp:27: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ gameargs.cpp: In function 'void EvalMusicArgs()': gameargs.cpp:231:10: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 255 equals destination size [-Wstringop-truncation] strncpy (songManager.IntroSong (), p, FILENAME_LEN); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gameargs.cpp:233:10: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 255 equals destination size [-Wstringop-truncation] strncpy (songManager.BriefingSong (), p, FILENAME_LEN); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gameargs.cpp:235:10: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 255 equals destination size [-Wstringop-truncation] strncpy (songManager.CreditsSong (), p, FILENAME_LEN); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gameargs.cpp:237:10: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 255 equals destination size [-Wstringop-truncation] strncpy (songManager.MenuSong (), p, FILENAME_LEN); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gameargs.cpp: In function 'void EvalMenuArgs()': gameargs.cpp:269:10: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 255 equals destination size [-Wstringop-truncation] strncpy (gameOptions [0].menus.altBg.szName, pszArgList [t+1], sizeof (gameOptions [0].menus.altBg.szName)); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gameargs.cpp: In function 'void EvalAppArgs()': gameargs.cpp:449:10: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 255 equals destination size [-Wstringop-truncation] strncpy (gameData.demo.fnAuto, *pszArgList [t+1] ? pszArgList [t+1] : "descent.dem", sizeof (gameData.demo.fnAuto)); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/gameargs.Tpo .deps/gameargs.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT gameoptions.o -MD -MP -MF .deps/gameoptions.Tpo -c -o gameoptions.o gameoptions.cpp gamecntl.cpp: In function 'int DoGamePause()': gamecntl.cpp:137:14: warning: '%02d' directive writing between 2 and 3 bytes into a region of size between 0 and 4 [-Wformat-overflow=] sprintf(str, "%1d:%02d:%02d", h, m, s ); ^~~~~~~~~~~~~~~ gamecntl.cpp:137:14: note: directive argument in the range [-59, 59] gamecntl.cpp:137:8: note: 'sprintf' output between 8 and 13 bytes into a destination of size 9 sprintf(str, "%1d:%02d:%02d", h, m, s ); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamecntl.cpp:137:14: warning: '%02d' directive writing between 2 and 3 bytes into a region of size between 0 and 4 [-Wformat-overflow=] sprintf(str, "%1d:%02d:%02d", h, m, s ); ^~~~~~~~~~~~~~~ gamecntl.cpp:137:14: note: directive argument in the range [-59, 59] gamecntl.cpp:137:8: note: 'sprintf' output between 8 and 13 bytes into a destination of size 9 sprintf(str, "%1d:%02d:%02d", h, m, s ); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CObjTypeData]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CObjTypeData]' gamedata.cpp:1068:27: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CObjTypeData' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamedata.cpp:38: ../include/descent.h:1820:7: note: 'class CObjTypeData' declared here class CObjTypeData { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CObject]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CObject]' gamedata.cpp:1068:27: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:99, from gamedata.cpp:38: ../include/object.h:713:7: note: 'class CObject' declared here class CObject : public CObjectInfo { ^~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gamedata.cpp:38: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from gamedata.cpp:38: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamedata.cpp:48: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamedata.cpp:38: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CModelHitboxes]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CModelHitboxes]' ../include/carray.h:418:19: required from 'CStaticArray<_T, length>::CStaticArray() [with _T = CModelHitboxes; unsigned int length = 500]' gamedata.cpp:875:25: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CModelHitboxes' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamedata.cpp:38: ../include/descent.h:2211:7: note: 'class CModelHitboxes' declared here class CModelHitboxes { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gamedata.cpp:38: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamedata.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamedata.cpp:38: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/gamecntl.Tpo .deps/gamecntl.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT gameseg.o -MD -MP -MF .deps/gameseg.Tpo -c -o gameseg.o gameseg.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gameseg.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gameseg.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from gameseg.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gameoptions.cpp:38: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gameoptions.cpp:38: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from gameoptions.cpp:38: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gameseg.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gameseg.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameseg.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameseg.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameseg.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gameseg.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gameseg.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gameseg.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gameseg.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameseg.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameseg.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameseg.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gameseg.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gameseg.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gameseg.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameseg.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gameseg.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from gameseg.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gameseg.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gameseg.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gameseg.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameseg.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameseg.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/renderthreads.h:18, from gameoptions.cpp:60: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ gameoptions.cpp: In function 'void InitRenderOptions(int)': gameoptions.cpp:313:45: warning: operation on 'gameOptions[0].tGameOptions::render.tRenderOptions::particles.tParticleOptions::nDens[0]' may be undefined [-Wsequence-point] gameOptions [0].render.particles.nDens [0] = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ gameOptions [0].render.particles.nDens [0] = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gameOptions [0].render.particles.nDens [2] = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gameOptions [0].render.particles.nDens [3] = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gameOptions [0].render.particles.nDens [4] = 2; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gameoptions.cpp:318:45: warning: operation on 'gameOptions[0].tGameOptions::render.tRenderOptions::particles.tParticleOptions::nSize[0]' may be undefined [-Wsequence-point] gameOptions [0].render.particles.nSize [0] = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ gameOptions [0].render.particles.nSize [0] = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gameOptions [0].render.particles.nSize [2] = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gameOptions [0].render.particles.nSize [3] = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gameOptions [0].render.particles.nSize [4] = 1; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gameoptions.cpp:323:45: warning: operation on 'gameOptions[0].tGameOptions::render.tRenderOptions::particles.tParticleOptions::nLife[0]' may be undefined [-Wsequence-point] gameOptions [0].render.particles.nLife [0] = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ gameOptions [0].render.particles.nLife [0] = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gameOptions [0].render.particles.nLife [2] = 0; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gameoptions.cpp:328:46: warning: operation on 'gameOptions[0].tGameOptions::render.tRenderOptions::particles.tParticleOptions::nAlpha[0]' may be undefined [-Wsequence-point] gameOptions [0].render.particles.nAlpha [0] = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ gameOptions [0].render.particles.nAlpha [0] = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gameOptions [0].render.particles.nAlpha [2] = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gameOptions [0].render.particles.nAlpha [3] = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gameOptions [0].render.particles.nAlpha [4] = 0; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gameoptions.cpp:38: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gameoptions.cpp:38: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ mv -f .deps/game.Tpo .deps/game.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT gamestates.o -MD -MP -MF .deps/gamestates.Tpo -c -o gamestates.o gamestates.cpp In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameoptions.cpp:38: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameoptions.cpp:38: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameoptions.cpp:38: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gameoptions.cpp:38: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gameoptions.cpp:38: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gameoptions.cpp:38: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gameoptions.cpp:60: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gameoptions.cpp:60: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gameoptions.cpp:60: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gameoptions.cpp:60: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from gameoptions.cpp:60: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameoptions.cpp:69: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameoptions.cpp:69: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gameoptions.cpp:38: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameoptions.cpp:38: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameoptions.cpp:38: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameoptions.cpp:38: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gameoptions.cpp:38: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gameoptions.cpp:38: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gameoptions.cpp:38: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameoptions.cpp:38: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameoptions.cpp:48: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gameoptions.cpp:60: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gameoptions.cpp:60: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from gameoptions.cpp:60: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gameoptions.cpp:38: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameoptions.cpp:69: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameoptions.cpp:69: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gameoptions.cpp:38: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from gameoptions.cpp:38: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gameoptions.cpp:38: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gameoptions.cpp:38: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameoptions.cpp:48: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gameoptions.cpp:38: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gameoptions.cpp:38: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gameoptions.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameoptions.cpp:38: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamestates.cpp:38: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamestates.cpp:38: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from gamestates.cpp:38: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamefolders.cpp:38: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamefolders.cpp:38: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from gamefolders.cpp:38: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/renderthreads.h:18, from gamestates.cpp:60: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ gamestates.cpp: In function 'void InitGameStates()': gamestates.cpp:362:44: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'tGameStates' {aka 'struct tGameStates'} with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&gameStates, 0, sizeof (gameStates)); ^ In file included from gamestates.cpp:38: ../include/descent.h:1171:16: note: 'tGameStates' {aka 'struct tGameStates'} declared here typedef struct tGameStates { ^~~~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamestates.cpp:38: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamestates.cpp:38: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamestates.cpp:38: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamestates.cpp:38: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ mv -f .deps/gameseg.Tpo .deps/gameseg.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT highscores.o -MD -MP -MF .deps/highscores.Tpo -c -o highscores.o highscores.cpp mv -f .deps/gameoptions.Tpo .deps/gameoptions.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT descent.o -MD -MP -MF .deps/descent.Tpo -c -o descent.o descent.cpp In file included from ../include/renderthreads.h:18, from gamefolders.cpp:61: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ gamefolders.cpp: At global scope: gamefolders.cpp:476:1: warning: converting 'false' to pointer type 'const char*' [-Wconversion-null] }; ^ gamefolders.cpp:476:1: warning: converting 'false' to pointer type 'const char*' [-Wconversion-null] gamefolders.cpp:476:1: warning: converting 'false' to pointer type 'const char*' [-Wconversion-null] In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamestates.cpp:38: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamestates.cpp:38: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamestates.cpp:38: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gamestates.cpp:38: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from highscores.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from highscores.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from descent.cpp:40: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from descent.cpp:40: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from descent.cpp:40: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from highscores.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gamestates.cpp:60: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gamestates.cpp:60: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gamestates.cpp:60: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gamestates.cpp:60: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from gamestates.cpp:60: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamestates.cpp:69: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamestates.cpp:69: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamestates.cpp:38: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamestates.cpp:38: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamestates.cpp:38: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamestates.cpp:38: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamestates.cpp:38: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamestates.cpp:38: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ highscores.cpp: In function 'void ScoreTableDrawDeaths(int*)': highscores.cpp:170:8: warning: variable 'x' set but not used [-Wunused-but-set-variable] int y,x; ^ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gamestates.cpp:38: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamestates.cpp:38: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamestates.cpp:48: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gamestates.cpp:60: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gamestates.cpp:60: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ highscores.cpp: In function 'void ScoreTableView(int)': highscores.cpp:465:4: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ highscores.cpp:467:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' if (choice == 0) { ^~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from gamestates.cpp:60: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ highscores.cpp:515:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (szConditionLetters [gameData.multiplayer.players [i].connected] != szConditionLetters [oldstates [i]]) ^~ highscores.cpp:517:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' oldstates [i] = gameData.multiplayer.players [i].connected; ^~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamestates.cpp:38: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamestates.cpp:69: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamestates.cpp:69: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from highscores.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from highscores.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gamestates.cpp:38: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from gamestates.cpp:38: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamestates.cpp:38: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gamestates.cpp:38: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamestates.cpp:48: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamestates.cpp:38: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gamestates.cpp:38: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from highscores.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamestates.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamestates.cpp:38: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from highscores.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from highscores.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from highscores.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from highscores.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from highscores.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from highscores.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from highscores.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from highscores.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from highscores.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from highscores.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from highscores.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from highscores.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from highscores.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from highscores.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from highscores.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from highscores.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from highscores.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from highscores.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from highscores.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from highscores.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from highscores.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from highscores.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/gamestates.Tpo .deps/gamestates.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT kconfig.o -MD -MP -MF .deps/kconfig.Tpo -c -o kconfig.o kconfig.cpp In file included from ../include/renderthreads.h:18, from descent.cpp:62: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ descent.cpp: In function 'void PrintVersionInfo()': descent.cpp:206:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (gameStates.app.bGameRunning || gameStates.app.bBetweenLevels) ^~ descent.cpp:209:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' static int bVertigo = -1; ^~~~~~ descent.cpp: In function 'int InitGraphics(bool)': descent.cpp:583:12: warning: variable 'nScreenSize' set but not used [-Wunused-but-set-variable] u_int32_t nScreenSize; ^~~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from descent.cpp:40: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from descent.cpp:40: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from descent.cpp:40: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from descent.cpp:40: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from descent.cpp:40: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from descent.cpp:40: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from descent.cpp:40: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from descent.cpp:40: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from descent.cpp:62: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from descent.cpp:62: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from descent.cpp:62: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from descent.cpp:62: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from descent.cpp:62: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from descent.cpp:72: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from descent.cpp:72: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from descent.cpp:40: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from descent.cpp:40: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from descent.cpp:40: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from descent.cpp:40: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from descent.cpp:40: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from descent.cpp:40: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from descent.cpp:40: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from descent.cpp:40: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from descent.cpp:50: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from descent.cpp:62: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from descent.cpp:62: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from descent.cpp:62: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from descent.cpp:40: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from descent.cpp:72: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from descent.cpp:72: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBanListEntry]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CBanListEntry]' ../include/banlist.h:20:15: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CBanListEntry'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from descent.cpp:84: ../include/banlist.h:10:7: note: 'class CBanListEntry' declared here class CBanListEntry { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from descent.cpp:40: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from descent.cpp:40: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from descent.cpp:40: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from descent.cpp:40: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from descent.cpp:50: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from descent.cpp:40: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBanListEntry]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBanListEntry]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CBanListEntry]' ../include/banlist.h:20:15: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CBanListEntry'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from descent.cpp:84: ../include/banlist.h:10:7: note: 'class CBanListEntry' declared here class CBanListEntry { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CObjTypeData]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CObjTypeData]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CObjTypeData]' ../include/descent.h:1898:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CObjTypeData' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from descent.cpp:40: ../include/descent.h:1820:7: note: 'class CObjTypeData' declared here class CObjTypeData { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CObject]' ../include/descent.h:1898:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:99, from descent.cpp:40: ../include/object.h:713:7: note: 'class CObject' declared here class CObject : public CObjectInfo { ^~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = ASE::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = ASE::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = ASE::CModel]' ../include/descent.h:2244:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class ASE::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:107, from descent.cpp:40: ../include/ase.h:68:7: note: 'class ASE::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = OOF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = OOF::CModel]' ../include/descent.h:2244:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from descent.cpp:40: ../include/oof.h:367:7: note: 'class OOF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CPolyModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CPolyModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CPolyModel]' ../include/descent.h:2244:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CPolyModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2204, from descent.cpp:40: ../include/polymodel.h:82:7: note: 'class CPolyModel' declared here class CPolyModel : public CByteArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CModelHitboxes]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CModelHitboxes]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CModelHitboxes]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CModelHitboxes' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from descent.cpp:40: ../include/descent.h:2211:7: note: 'class CModelHitboxes' declared here class CModelHitboxes { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = RenderModel::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = RenderModel::CModel]' ../include/descent.h:2244:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class RenderModel::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from descent.cpp:40: ../include/rendermodel.h:140:7: note: 'class RenderModel::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from descent.cpp:40: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from descent.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CBossInfo]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CBossInfo]' ../include/descent.h:2685:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from descent.cpp:40: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from kconfig.cpp:24: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from kconfig.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from kconfig.cpp:24: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamefolders.cpp:38: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamefolders.cpp:38: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamefolders.cpp:38: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamefolders.cpp:38: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamefolders.cpp:38: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamefolders.cpp:38: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamefolders.cpp:38: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gamefolders.cpp:38: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ mv -f .deps/highscores.Tpo .deps/highscores.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT mglobal.o -MD -MP -MF .deps/mglobal.Tpo -c -o mglobal.o mglobal.cpp kconfig.cpp: In function 'void KConfigSub(kcItem*, int, const char*)': kconfig.cpp:1195:9: warning: variable 'font' set but not used [-Wunused-but-set-variable] CFont* font; ^~~~ kconfig.cpp: In function 'void KCDrawItemExt(kcItem*, int, int)': kconfig.cpp:1509:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (bRedraw && MODERN_STYLE) ^~ kconfig.cpp:1512:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (is_current) ^~ kconfig.cpp: In member function 'void CExternalControls::Read()': kconfig.cpp:1762:4: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if (m_version>0) ^~~~ kconfig.cpp:1767:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' if (m_version > 1) { ^~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from kconfig.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from kconfig.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gamefolders.cpp:61: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gamefolders.cpp:61: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gamefolders.cpp:61: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gamefolders.cpp:61: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from gamefolders.cpp:61: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamefolders.cpp:70: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamefolders.cpp:70: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamefolders.cpp:38: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamefolders.cpp:38: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamefolders.cpp:38: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gamefolders.cpp:38: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamefolders.cpp:38: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamefolders.cpp:38: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gamefolders.cpp:38: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamefolders.cpp:38: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamefolders.cpp:49: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gamefolders.cpp:61: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gamefolders.cpp:61: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from gamefolders.cpp:61: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamefolders.cpp:38: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamefolders.cpp:70: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamefolders.cpp:70: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gamefolders.cpp:38: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from gamefolders.cpp:38: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gamefolders.cpp:38: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gamefolders.cpp:38: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamefolders.cpp:49: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gamefolders.cpp:38: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gamefolders.cpp:38: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gamefolders.cpp:38: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gamefolders.cpp:38: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ gamefolders.cpp: In function 'int CheckAndCopyFiles(tFileDesc*, int)': gamefolders.cpp:633:21: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf (szDest, "%s%s\\%s", fileList [i].bUser ? szUserFolder : szRootFolder, fileList [i].pszFolder, fileList [i].pszFile + 1); ^~~~~~~~~~ gamefolders.cpp:633:12: note: 'sprintf' output 2 or more bytes (assuming 256) into a destination of size 255 sprintf (szDest, "%s%s\\%s", fileList [i].bUser ? szUserFolder : szRootFolder, fileList [i].pszFolder, fileList [i].pszFile + 1); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamefolders.cpp:600:19: warning: '%s' directive writing up to 255 bytes into a region of size 254 [-Wformat-overflow=] sprintf (szDest, "\002%s", ffs.name); ^~~~~~~~ ~~~~~~~~ gamefolders.cpp:600:10: note: 'sprintf' output between 2 and 257 bytes into a destination of size 255 sprintf (szDest, "\002%s", ffs.name); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamefolders.cpp:603:19: warning: '%s' directive writing up to 255 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (szSrc, "%s%s", fileDesc->bUser ? szHomeFolder : szRootFolder, ffs.name); ^~~~~~ ~~~~~~~~ gamefolders.cpp:603:11: note: 'sprintf' output between 1 and 510 bytes into a destination of size 255 sprintf (szSrc, "%s%s", fileDesc->bUser ? szHomeFolder : szRootFolder, ffs.name); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamefolders.cpp:604:20: warning: '%s' directive writing up to 255 bytes into a region of size between 0 and 254 [-Wformat-overflow=] sprintf (szDest, "%s%s\\%s", fileDesc->bUser ? szUserFolder : szRootFolder, fileDesc->pszFolder, ffs.name); ^~~~~~~~~~ ~~~~~~~~ gamefolders.cpp:604:11: note: 'sprintf' output 2 or more bytes (assuming 511) into a destination of size 255 sprintf (szDest, "%s%s\\%s", fileDesc->bUser ? szUserFolder : szRootFolder, fileDesc->pszFolder, ffs.name); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamefolders.cpp:596:21: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf (szFilter, "%s%s\\%s", fileDesc->bUser ? szHomeFolder : szRootFolder, fileDesc->pszFolder, fileDesc->pszFile); ^~~~~~~~~~ gamefolders.cpp:596:10: note: 'sprintf' output 2 or more bytes (assuming 256) into a destination of size 255 sprintf (szFilter, "%s%s\\%s", fileDesc->bUser ? szHomeFolder : szRootFolder, fileDesc->pszFolder, fileDesc->pszFile); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamefolders.cpp: In function 'void GetAppFolders()': gamefolders.cpp:242:34: warning: '%s' directive writing 4 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (gameFolders.szDataDir, "%s%s", gameFolders.szGameDir, DATADIR); ^~~~~~ gamefolders.cpp:242:10: note: 'sprintf' output between 5 and 259 bytes into a destination of size 255 sprintf (gameFolders.szDataDir, "%s%s", gameFolders.szGameDir, DATADIR); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamefolders.cpp:252:35: warning: '%s' directive writing 4 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (gameFolders.szDataDir, "%s%s", gameFolders.szGameDir, DATADIR); ^~~~~~ gamefolders.cpp:252:11: note: 'sprintf' output between 5 and 259 bytes into a destination of size 255 sprintf (gameFolders.szDataDir, "%s%s", gameFolders.szGameDir, DATADIR); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamefolders.cpp:280:26: warning: '/.d2x-xl' directive writing 8 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (szDataRootDir, "%s/.d2x-xl", gameFolders.szHomeDir); ^~~~~~~~~~~~ gamefolders.cpp:280:10: note: 'sprintf' output between 9 and 263 bytes into a destination of size 255 sprintf (szDataRootDir, "%s/.d2x-xl", gameFolders.szHomeDir); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamefolders.cpp:282:15: warning: '%s' directive writing 8 bytes into a region of size between 0 and 254 [-Wformat-overflow=] sprintf (fn, "%s/%s", szDataRootDir, PROFDIR); ^~~~~~~ gamefolders.cpp:282:10: note: 'sprintf' output between 10 and 264 bytes into a destination of size 255 sprintf (fn, "%s/%s", szDataRootDir, PROFDIR); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamefolders.cpp:284:15: warning: '%s' directive writing 9 bytes into a region of size between 0 and 254 [-Wformat-overflow=] sprintf (fn, "%s/%s", szDataRootDir, SAVEDIR); ^~~~~~~ gamefolders.cpp:284:10: note: 'sprintf' output between 11 and 265 bytes into a destination of size 255 sprintf (fn, "%s/%s", szDataRootDir, SAVEDIR); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamefolders.cpp:286:15: warning: '%s' directive writing 11 bytes into a region of size between 0 and 254 [-Wformat-overflow=] sprintf (fn, "%s/%s", szDataRootDir, SCRSHOTDIR); ^~~~~~~ gamefolders.cpp:286:10: note: 'sprintf' output between 13 and 267 bytes into a destination of size 255 sprintf (fn, "%s/%s", szDataRootDir, SCRSHOTDIR); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamefolders.cpp:288:15: warning: '%s' directive writing 5 bytes into a region of size between 0 and 254 [-Wformat-overflow=] sprintf (fn, "%s/%s", szDataRootDir, DEMODIR); ^~~~~~~ gamefolders.cpp:288:10: note: 'sprintf' output between 7 and 261 bytes into a destination of size 255 sprintf (fn, "%s/%s", szDataRootDir, DEMODIR); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamefolders.cpp:290:15: warning: '%s' directive writing 6 bytes into a region of size between 0 and 254 [-Wformat-overflow=] sprintf (fn, "%s/%s", szDataRootDir, CONFIGDIR); ^~~~~~~ gamefolders.cpp:290:10: note: 'sprintf' output between 8 and 262 bytes into a destination of size 255 sprintf (fn, "%s/%s", szDataRootDir, CONFIGDIR); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamefolders.cpp:292:15: warning: '%s' directive writing 6 bytes into a region of size between 0 and 254 [-Wformat-overflow=] sprintf (fn, "%s/%s", szDataRootDir, CONFIGDIR); ^~~~~~~ gamefolders.cpp:292:10: note: 'sprintf' output between 8 and 262 bytes into a destination of size 255 sprintf (fn, "%s/%s", szDataRootDir, CONFIGDIR); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamefolders.cpp:294:15: warning: '%s' directive writing 9 bytes into a region of size between 0 and 254 [-Wformat-overflow=] sprintf (fn, "%s/%s", szDataRootDir, DOWNLOADDIR); ^~~~~~~ gamefolders.cpp:294:10: note: 'sprintf' output between 11 and 265 bytes into a destination of size 255 sprintf (fn, "%s/%s", szDataRootDir, DOWNLOADDIR); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamefolders.cpp:321:26: warning: '/.d2x-xl' directive writing 8 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (szDataRootDir, "%s/.d2x-xl", gameFolders.szHomeDir); ^~~~~~~~~~~~ gamefolders.cpp:321:10: note: 'sprintf' output between 9 and 263 bytes into a destination of size 255 sprintf (szDataRootDir, "%s/.d2x-xl", gameFolders.szHomeDir); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamefolders.cpp:335:35: warning: '%s' directive writing 5 bytes into a region of size between 0 and 254 [-Wformat-overflow=] sprintf (gameFolders.szCacheDir, "%s/%s", szDataRootDir, CACHEDIR); ^~~~~~~ gamefolders.cpp:335:10: note: 'sprintf' output between 7 and 261 bytes into a destination of size 255 sprintf (gameFolders.szCacheDir, "%s/%s", szDataRootDir, CACHEDIR); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamefolders.cpp:337:38: warning: '%s' directive writing 9 bytes into a region of size between 0 and 254 [-Wformat-overflow=] sprintf (gameFolders.szDownloadDir, "%s/%s", szDataRootDir, DOWNLOADDIR); ^~~~~~~ gamefolders.cpp:337:10: note: 'sprintf' output between 11 and 265 bytes into a destination of size 255 sprintf (gameFolders.szDownloadDir, "%s/%s", szDataRootDir, DOWNLOADDIR); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamefolders.cpp:355:36: warning: '%s' directive writing 8 bytes into a region of size between 0 and 254 [-Wformat-overflow=] sprintf (gameFolders.szMissionDir, "%s/%s", gameFolders.szGameDir, BASE_MISSION_DIR); ^~~~~~~ gamefolders.cpp:355:9: note: 'sprintf' output between 10 and 264 bytes into a destination of size 255 sprintf (gameFolders.szMissionDir, "%s/%s", gameFolders.szGameDir, BASE_MISSION_DIR); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamefolders.cpp:362:44: warning: '%s' directive writing 9 bytes into a region of size between 0 and 254 [-Wformat-overflow=] sprintf (gameFolders.szMissionDownloadDir, "%s/%s", gameFolders.szMissionDir, DOWNLOADDIR); ^~~~~~~ gamefolders.cpp:362:9: note: 'sprintf' output between 11 and 265 bytes into a destination of size 255 sprintf (gameFolders.szMissionDownloadDir, "%s/%s", gameFolders.szMissionDir, DOWNLOADDIR); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamefolders.cpp: In function 'int CheckAndFixSetup()': gamefolders.cpp:754:24: warning: '/.d2x-xl/' directive writing 9 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (szUserFolder, "%s/.d2x-xl/", szHomeFolder); ^~~~~~~~~~~~~ gamefolders.cpp:754:9: note: 'sprintf' output between 10 and 264 bytes into a destination of size 255 sprintf (szUserFolder, "%s/.d2x-xl/", szHomeFolder); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gamefolders.cpp:771:1: warning: 'bDemoData' may be used uninitialized in this function [-Wmaybe-uninitialized] if (!bDemoData) { ^~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from mglobal.cpp:18: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from mglobal.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from mglobal.cpp:18: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:106, from kconfig.cpp:24: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from kconfig.cpp:24: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from kconfig.cpp:24: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from kconfig.cpp:24: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from kconfig.cpp:24: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from kconfig.cpp:24: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from kconfig.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from kconfig.cpp:24: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from kconfig.cpp:24: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from kconfig.cpp:24: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from kconfig.cpp:24: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from kconfig.cpp:24: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from kconfig.cpp:24: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from kconfig.cpp:24: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from kconfig.cpp:33: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from kconfig.cpp:24: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from kconfig.cpp:24: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from kconfig.cpp:24: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from kconfig.cpp:24: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from kconfig.cpp:33: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from kconfig.cpp:24: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from kconfig.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from kconfig.cpp:24: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/gamefolders.Tpo .deps/gamefolders.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT movie.o -MD -MP -MF .deps/movie.Tpo -c -o movie.o movie.cpp In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from mglobal.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from mglobal.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mglobal.cpp:18: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mglobal.cpp:18: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mglobal.cpp:18: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from mglobal.cpp:18: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from mglobal.cpp:18: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from mglobal.cpp:18: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from mglobal.cpp:18: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mglobal.cpp:18: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mglobal.cpp:18: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mglobal.cpp:18: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from mglobal.cpp:18: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from mglobal.cpp:18: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from mglobal.cpp:18: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mglobal.cpp:18: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from mglobal.cpp:18: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from mglobal.cpp:18: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from mglobal.cpp:18: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from mglobal.cpp:18: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from mglobal.cpp:18: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from mglobal.cpp:18: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mglobal.cpp:18: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ kconfig.cpp: In function 'void KConfigSub(kcItem*, int, const char*)': kconfig.cpp:1337:76: warning: iteration 64 invokes undefined behavior [-Waggressive-loop-optimizations] items [i].value = controlSettings.defaults [gameConfig.nControlType][i]; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ kconfig.cpp:1336:19: note: within this loop for (i = 0; i < NUM_JOY_CONTROLS; i++) { kconfig.cpp:1317:52: warning: iteration 64 invokes undefined behavior [-Waggressive-loop-optimizations] items [i].value=controlSettings.defaults [0][i]; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ kconfig.cpp:1316:16: note: within this loop for (i=0; i { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from movie.cpp:29: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/mglobal.Tpo .deps/mglobal.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT newdemo.o -MD -MP -MF .deps/newdemo.Tpo -c -o newdemo.o newdemo.cpp movie.cpp: In member function 'int CMovieManager::RotateRobot()': movie.cpp:843:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!m_robotP) ^~ movie.cpp:846:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int res; ^~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from movie.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from movie.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from movie.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from movie.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from movie.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from movie.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from movie.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from movie.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from movie.cpp:30: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from movie.cpp:30: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from movie.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from movie.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from movie.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from movie.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from movie.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from movie.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from movie.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from movie.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from movie.cpp:30: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from movie.cpp:30: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from movie.cpp:36: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from movie.cpp:29: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from movie.cpp:29: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from movie.cpp:29: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from movie.cpp:29: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from movie.cpp:36: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from movie.cpp:29: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from movie.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from movie.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ kconfig.cpp: In function 'int KCGetItemHeight(kcItem*)': kconfig.cpp:653:12: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 10 equals destination size [-Wstringop-truncation] strncpy (szText, YesNoText (item->value), sizeof (szText)); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kconfig.cpp:611:12: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 10 equals destination size [-Wstringop-truncation] strncpy (szText, MouseAxisText (item->value), sizeof (szText)); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kconfig.cpp:607:12: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 10 equals destination size [-Wstringop-truncation] strncpy (szText, MouseButtonText (item->value), sizeof (szText)); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kconfig.cpp:603:12: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 10 equals destination size [-Wstringop-truncation] strncpy (szText, (size_t (item->value) < sizeofa (pszKeyText)) ? pszKeyText [item->value] : "", sizeof (szText)); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from newdemo.cpp:31: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from newdemo.cpp:31: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from newdemo.cpp:31: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ movie.cpp:862:6: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized] else if (res) { ^~ newdemo.cpp: In function 'void NDReadObject(CObject*)': newdemo.cpp:546:34: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (objP, 0, sizeof (CObject)); ^ In file included from ../include/descent.h:99, from newdemo.cpp:31: ../include/object.h:713:7: note: 'class CObject' declared here class CObject : public CObjectInfo { ^~~~~~~ newdemo.cpp: In function 'void NDRecordViewerObject(CObject*)': newdemo.cpp:1017:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (gameStates.render.cameras.bActive) ^~ newdemo.cpp:1020:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int i = objP->Index (); ^~~ newdemo.cpp: In function 'int NDReadFrameInfo()': newdemo.cpp:1865:10: warning: variable 'nPrevFrameLength' set but not used [-Wunused-but-set-variable] short nPrevFrameLength; ^~~~~~~~~~~~~~~~ newdemo.cpp:1841:14: warning: variable 'nPrevTag' set but not used [-Wunused-but-set-variable] ubyte nTag, nPrevTag, WhichWindow; ^~~~~~~~ newdemo.cpp:1845:14: warning: variable 'LastReadValue' set but not used [-Wunused-but-set-variable] static char LastReadValue = 101; ^~~~~~~~~~~~~ newdemo.cpp: In function 'void NDGotoEnd()': newdemo.cpp:2765:33: warning: variable 'bshort' set but not used [-Wunused-but-set-variable] short nFrameLength, byteCount, bshort; ^~~~~~ newdemo.cpp:2766:15: warning: variable 'bbyte' set but not used [-Wunused-but-set-variable] sbyte level, bbyte, laserLevel; ^~~~~ newdemo.cpp:2768:14: warning: variable 'bint' set but not used [-Wunused-but-set-variable] int i, loc, bint; ^~~~ newdemo.cpp: In function 'void NDInterpolateFrame(fix, fix)': newdemo.cpp:2892:33: warning: variable 'j' set but not used [-Wunused-but-set-variable] CObject *curObjP, *objP, *i, *j; ^ newdemo.cpp: In function 'void NDPlayBackOneFrame()': newdemo.cpp:3083:74: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CObject'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (curObjs, OBJECTS.Buffer (), (nObjects + 1) * sizeof (CObject)); ^ In file included from ../include/descent.h:99, from newdemo.cpp:31: ../include/object.h:713:7: note: 'class CObject' declared here class CObject : public CObjectInfo { ^~~~~~~ newdemo.cpp: In function 'void NDRenderExtras(ubyte, CObject*)': newdemo.cpp:3584:49: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CObject'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&demoRightExtra, objP, sizeof (CObject)); ^ In file included from ../include/descent.h:99, from newdemo.cpp:31: ../include/object.h:713:7: note: 'class CObject' declared here class CObject : public CObjectInfo { ^~~~~~~ newdemo.cpp:3588:48: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CObject'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&demoLeftExtra, objP, sizeof (CObject)); ^ In file included from ../include/descent.h:99, from newdemo.cpp:31: ../include/object.h:713:7: note: 'class CObject' declared here class CObject : public CObjectInfo { ^~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from newdemo.cpp:31: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from newdemo.cpp:31: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from newdemo.cpp:31: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from newdemo.cpp:31: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from newdemo.cpp:31: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from newdemo.cpp:31: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from newdemo.cpp:31: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from newdemo.cpp:31: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from newdemo.cpp:50: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CObject]': newdemo.cpp:2970:11: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CObject'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:99, from newdemo.cpp:31: ../include/object.h:713:7: note: 'class CObject' declared here class CObject : public CObjectInfo { ^~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from newdemo.cpp:31: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from newdemo.cpp:31: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from newdemo.cpp:31: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from newdemo.cpp:31: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from newdemo.cpp:31: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from newdemo.cpp:31: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from newdemo.cpp:31: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from newdemo.cpp:31: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from newdemo.cpp:40: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from newdemo.cpp:50: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from newdemo.cpp:31: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from newdemo.cpp:31: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from newdemo.cpp:31: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from newdemo.cpp:31: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from newdemo.cpp:31: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from newdemo.cpp:40: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from newdemo.cpp:31: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from newdemo.cpp:31: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from newdemo.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from newdemo.cpp:31: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/movie.Tpo .deps/movie.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT scores.o -MD -MP -MF .deps/scores.Tpo -c -o scores.o scores.cpp mv -f .deps/kconfig.Tpo .deps/kconfig.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT segment.o -MD -MP -MF .deps/segment.Tpo -c -o segment.o segment.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from scores.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from scores.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from scores.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/gamedata.Tpo .deps/gamedata.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT side.o -MD -MP -MF .deps/side.Tpo -c -o side.o side.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from segment.cpp:5: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from segment.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from segment.cpp:5: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from side.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from side.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from side.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from side.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from side.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from side.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from side.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from side.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from side.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from side.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from side.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from side.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from side.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from side.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from side.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from side.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from side.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from side.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from side.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from side.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from side.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from side.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from side.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from side.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from side.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from side.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ descent.cpp: In function 'void PrintVersion()': descent.cpp:324:14: warning: 'd2x-xl-version.txt' directive writing 18 bytes into a region of size between 0 and 255 [-Wformat-overflow=] sprintf (fn, "%s%sd2x-xl-version.txt", gameFolders.szDataDir, *gameFolders.szDataDir ? "/" : ""); ^~~~~~~~~~~~~~~~~~~~~~~~ descent.cpp:324:9: note: 'sprintf' output between 19 and 274 bytes into a destination of size 255 sprintf (fn, "%s%sd2x-xl-version.txt", gameFolders.szDataDir, *gameFolders.szDataDir ? "/" : ""); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ segment.cpp: In member function 'void CSegment::OpenDoor(int)': segment.cpp:566:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!(doorP = wallP->OpenDoor ())) ^~ segment.cpp:569:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' short nConnSide, nConnWall = NO_WALL; ^~~~~ segment.cpp: In member function 'void CSegment::CloseDoor(int, bool)': segment.cpp:626:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (DoorIsBlocked (nSide, wallP->IgnoreMarker ())) ^~ segment.cpp:629:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CActiveDoor* doorP; ^~~~~~~~~~~ segment.cpp:631:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!(doorP = wallP->CloseDoor (bForce))) ^~ segment.cpp:634:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CSegment* connSegP; ^~~~~~~~ segment.cpp: In member function 'void CSegment::StartCloak(int)': segment.cpp:671:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (wallP->nType == WALL_OPEN || wallP->state == WALL_DOOR_CLOAKING) //already open or cloaking ^~ segment.cpp:674:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CCloakingWall* cloakWallP; ^~~~~~~~~~~~~ segment.cpp: In member function 'void CSegment::StartDecloak(int)': segment.cpp:712:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (gameData.demo.nState == ND_STATE_PLAYBACK) ^~ segment.cpp:714:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CWall *wallP; ^~~~~ segment.cpp:718:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (wallP->nType == WALL_CLOSED || wallP->state == WALL_DOOR_DECLOAKING) //already closed or decloaking ^~ segment.cpp:721:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CCloakingWall *cloakWallP; ^~~~~~~~~~~~~ segment.cpp: In member function 'void CSegment::IllusionOn(int)': segment.cpp:777:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!wallP) ^~ segment.cpp:780:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CSegment* connSegP; ^~~~~~~~ segment.cpp: In member function 'void CSegment::IllusionOff(int)': segment.cpp:806:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!wallP) ^~ segment.cpp:809:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CSegment *connSegP; ^~~~~~~~ segment.cpp:810:9: warning: variable 'nConnSide' set but not used [-Wunused-but-set-variable] short nConnSide; ^~~~~~~~~ segment.cpp: In member function 'int CSegment::CheckEffectBlowup(int, CFixVector&, CObject*, int)': segment.cpp:908:13: warning: variable 'bmP' set but not used [-Wunused-but-set-variable] CBitmap* bmP; ^~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from segment.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from segment.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from segment.cpp:5: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from segment.cpp:5: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from segment.cpp:5: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from segment.cpp:5: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from segment.cpp:5: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from segment.cpp:5: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from segment.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from segment.cpp:5: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from segment.cpp:5: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from segment.cpp:5: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from segment.cpp:5: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from segment.cpp:5: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from segment.cpp:5: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from segment.cpp:5: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from segment.cpp:5: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from segment.cpp:5: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from segment.cpp:5: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from segment.cpp:5: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from segment.cpp:5: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from segment.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from segment.cpp:5: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ scores.cpp: In function 'void ScoresView(int)': scores.cpp:339:6: warning: variable 't0' set but not used [-Wunused-but-set-variable] fix t0 = 0, t1; ^~ scores.cpp:341:9: warning: variable 'bRedraw' set but not used [-Wunused-but-set-variable] int k, bRedraw = 0; ^~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from scores.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from scores.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from scores.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from scores.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from scores.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from scores.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from scores.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from scores.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from scores.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from scores.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from scores.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from scores.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from scores.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from scores.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ newdemo.cpp: In function 'int NDCountDemos()': newdemo.cpp:3348:22: warning: '*.dem' directive writing 5 bytes into a region of size between 0 and 255 [-Wformat-overflow=] sprintf (searchName, "%s%s*.dem", gameFolders.szDemoDir, *gameFolders.szDemoDir ? "/" : ""); ^~~~~~~~~~~ newdemo.cpp:3348:9: note: 'sprintf' output between 6 and 261 bytes into a destination of size 255 sprintf (searchName, "%s%s*.dem", gameFolders.szDemoDir, *gameFolders.szDemoDir ? "/" : ""); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ newdemo.cpp:3356:23: warning: '%s' directive writing up to 254 bytes into a region of size between 0 and 254 [-Wformat-overflow=] sprintf (searchName, "%s/%s%s*.dem", gameFolders.szAltHogDir, gameFolders.szDemoDir, gameFolders.szDemoDir ? "/" : ""); ^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ newdemo.cpp:3356:10: note: 'sprintf' output between 8 and 516 bytes into a destination of size 255 sprintf (searchName, "%s/%s%s*.dem", gameFolders.szAltHogDir, gameFolders.szDemoDir, gameFolders.szDemoDir ? "/" : ""); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from scores.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from scores.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from scores.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from scores.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from scores.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from scores.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from scores.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from scores.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from scores.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from scores.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from scores.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ newdemo.cpp: In function 'void NDStopRecording()': newdemo.cpp:3264:20: warning: '%d' directive writing between 1 and 11 bytes into a region of size between 1 and 15 [-Wformat-overflow=] sprintf (newfile, "%s%d", filename, num); ^~~~~~ newdemo.cpp:3264:20: note: directive argument in the range [-2147483647, 2147483647] newdemo.cpp:3264:10: note: 'sprintf' output between 2 and 26 bytes into a destination of size 15 sprintf (newfile, "%s%d", filename, num); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/side.Tpo .deps/side.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT skybox.o -MD -MP -MF .deps/skybox.Tpo -c -o skybox.o skybox.cpp scores.cpp: In function 'void MaybeAddPlayerScore(int)': scores.cpp:254:12: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 50 bytes from a string of length 59 [-Wstringop-truncation] strncpy (Scores.cool_saying, text1, COOL_MESSAGE_LEN); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from skybox.cpp:5: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from skybox.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from skybox.cpp:5: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/scores.Tpo .deps/scores.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT slew.o -MD -MP -MF .deps/slew.Tpo -c -o slew.o slew.cpp mv -f .deps/segment.Tpo .deps/segment.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT trigger.o -MD -MP -MF .deps/trigger.Tpo -c -o trigger.o trigger.cpp In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from skybox.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from skybox.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from skybox.cpp:5: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from skybox.cpp:5: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from skybox.cpp:5: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from skybox.cpp:5: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from skybox.cpp:5: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from skybox.cpp:5: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from skybox.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from skybox.cpp:5: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from skybox.cpp:5: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from skybox.cpp:5: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from skybox.cpp:5: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from skybox.cpp:5: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from skybox.cpp:5: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from skybox.cpp:5: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from skybox.cpp:5: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from skybox.cpp:5: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from skybox.cpp:5: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from skybox.cpp:5: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from skybox.cpp:5: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from skybox.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from skybox.cpp:5: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from trigger.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from trigger.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from trigger.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from slew.cpp:20: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from slew.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from slew.cpp:20: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from slew.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from slew.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from slew.cpp:20: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from slew.cpp:20: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from slew.cpp:20: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from slew.cpp:20: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from slew.cpp:20: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from slew.cpp:20: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from slew.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from slew.cpp:20: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from slew.cpp:20: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from slew.cpp:20: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from slew.cpp:20: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from slew.cpp:20: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from slew.cpp:20: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from slew.cpp:20: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from slew.cpp:20: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from slew.cpp:20: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from slew.cpp:20: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from slew.cpp:20: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from slew.cpp:20: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from slew.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from slew.cpp:20: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ newdemo.cpp: In function 'int NDReadFrameInfo()': newdemo.cpp:2393:37: warning: 'nFrame' may be used uninitialized in this function [-Wmaybe-uninitialized] SEGMENTS [nSegment].SetTexture (nSide, SEGMENTS + nConnSeg, nConnSide, nAnim, nFrame); newdemo.cpp:2393:37: warning: 'nAnim' may be used uninitialized in this function [-Wmaybe-uninitialized] newdemo.cpp:2396:63: warning: 'tmap' may be used uninitialized in this function [-Wmaybe-uninitialized] SEGMENTS [nSegment].m_sides [nSide].m_nOvlOrient = (tmap >> 14) & 3; ~~~~~~^~~~~~ newdemo.cpp:2366:37: warning: 'nFrame' may be used uninitialized in this function [-Wmaybe-uninitialized] SEGMENTS [nSegment].SetTexture (nSide, SEGMENTS + nConnSeg, nConnSide, nAnim, nFrame); newdemo.cpp:2366:37: warning: 'nAnim' may be used uninitialized in this function [-Wmaybe-uninitialized] newdemo.cpp:2368:53: warning: 'tmap' may be used uninitialized in this function [-Wmaybe-uninitialized] SEGMENTS [nSegment].m_sides [nSide].m_nBaseTex = SEGMENTS [nConnSeg].m_sides [nConnSide].m_nBaseTex = tmap; mv -f .deps/skybox.Tpo .deps/skybox.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT terrain.o -MD -MP -MF .deps/terrain.Tpo -c -o terrain.o terrain.cpp mv -f .deps/slew.Tpo .deps/slew.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT texmerge.o -MD -MP -MF .deps/texmerge.Tpo -c -o texmerge.o texmerge.cpp trigger.cpp: In function 'CTrigger* FindObjTrigger(short int, short int, short int)': trigger.cpp:1261:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!OBJTRIGGERS.Buffer ()) ^~ trigger.cpp:1264:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' short i = (nTrigger < 0) ? gameData.trigs.firstObjTrigger [nObject] : gameData.trigs.objTriggerRefs [nTrigger].next; ^~~~~ trigger.cpp: In function 'void ExecObjTriggers(short int, int)': trigger.cpp:1280:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!OBJTRIGGERS.Buffer ()) ^~ trigger.cpp:1283:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' short i = gameData.trigs.firstObjTrigger [nObject], j = 0; ^~~~~ trigger.cpp: In function 'int FindTriggerTarget(short int, short int, int)': trigger.cpp:1426:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (i < 0) ^~ trigger.cpp:1429:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int j = i, nSegSide, nOvlTex, ec; ^~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from trigger.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from trigger.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from trigger.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from trigger.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from trigger.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from trigger.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from trigger.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from trigger.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from trigger.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from trigger.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from trigger.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from trigger.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from trigger.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from trigger.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from trigger.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from trigger.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from trigger.cpp:24: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from trigger.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from trigger.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from trigger.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from trigger.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from trigger.cpp:24: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from trigger.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from trigger.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from trigger.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ trigger.cpp: At global scope: trigger.cpp:891:12: warning: 'nDbgType' defined but not used [-Wunused-variable] static int nDbgType = -1; ^~~~~~~~ trigger.cpp:890:12: warning: 'nDbgTrigger' defined but not used [-Wunused-variable] static int nDbgTrigger = -1; ^~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from texmerge.cpp:20: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from texmerge.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from texmerge.cpp:20: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from terrain.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from terrain.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from terrain.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ texmerge.cpp: In function 'void MergeTextures(int, CBitmap*, CBitmap*, CBitmap*, int)': texmerge.cpp:305:20: warning: variable 'bh' set but not used [-Wunused-but-set-variable] int i, x, y, bw, bh, tw, th, dw, dh; ^~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from texmerge.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from texmerge.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from texmerge.cpp:20: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from texmerge.cpp:20: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from texmerge.cpp:20: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from texmerge.cpp:20: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from texmerge.cpp:20: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from texmerge.cpp:20: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from texmerge.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from texmerge.cpp:20: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from texmerge.cpp:20: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from texmerge.cpp:20: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from texmerge.cpp:20: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from texmerge.cpp:20: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from texmerge.cpp:20: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from texmerge.cpp:20: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from texmerge.cpp:26: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from texmerge.cpp:20: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from texmerge.cpp:20: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from texmerge.cpp:20: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from texmerge.cpp:20: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from texmerge.cpp:26: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from texmerge.cpp:20: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from texmerge.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from texmerge.cpp:20: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ terrain.cpp: In function 'void LoadTerrain(char*)': terrain.cpp:291:40: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&bmHeight, 0, sizeof (bmHeight)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from terrain.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from terrain.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from terrain.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from terrain.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from terrain.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from terrain.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from terrain.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from terrain.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from terrain.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from terrain.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from terrain.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from terrain.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from terrain.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from terrain.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from terrain.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from terrain.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from terrain.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from terrain.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from terrain.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from terrain.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from terrain.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from terrain.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from terrain.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from terrain.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from terrain.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from terrain.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ newdemo.cpp: In function 'void NDStopPlayback()': newdemo.cpp:3487:9: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 8 bytes from a string of length 8 [-Wstringop-truncation] strncpy (LOCALPLAYER.callsign, gameData.demo.callSignSave, CALLSIGN_LEN); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/texmerge.Tpo .deps/texmerge.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT text.o -MD -MP -MF .deps/text.Tpo -c -o text.o text.cpp newdemo.cpp: In function 'void NDStartPlayback(char*)': newdemo.cpp:3390:23: warning: '*.dem' directive writing 5 bytes into a region of size between 0 and 255 [-Wformat-overflow=] sprintf (searchName, "%s%s*.dem", gameFolders.szDemoDir, *gameFolders.szDemoDir ? "/" : ""); ^~~~~~~~~~~ newdemo.cpp:3390:10: note: 'sprintf' output between 6 and 261 bytes into a destination of size 255 sprintf (searchName, "%s%s*.dem", gameFolders.szDemoDir, *gameFolders.szDemoDir ? "/" : ""); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ newdemo.cpp:3402:24: warning: '%s' directive writing up to 254 bytes into a region of size between 0 and 254 [-Wformat-overflow=] sprintf (searchName, "%s/%s%s*.dem", gameFolders.szAltHogDir, gameFolders.szDemoDir, gameFolders.szDemoDir ? "/" : ""); ^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ newdemo.cpp:3402:11: note: 'sprintf' output between 8 and 516 bytes into a destination of size 255 sprintf (searchName, "%s/%s%s*.dem", gameFolders.szAltHogDir, gameFolders.szDemoDir, gameFolders.szDemoDir ? "/" : ""); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/trigger.Tpo .deps/trigger.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT textdata.o -MD -MP -MF .deps/textdata.Tpo -c -o textdata.o textdata.cpp mv -f .deps/newdemo.Tpo .deps/newdemo.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT trackobject.o -MD -MP -MF .deps/trackobject.Tpo -c -o trackobject.o trackobject.cpp mv -f .deps/terrain.Tpo .deps/terrain.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT vclip.o -MD -MP -MF .deps/vclip.Tpo -c -o vclip.o vclip.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from text.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from text.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from text.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from textdata.cpp:7: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from textdata.cpp:7: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from textdata.cpp:7: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from textdata.cpp:7: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from textdata.cpp:7: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from textdata.cpp:7: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from textdata.cpp:7: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from textdata.cpp:7: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from textdata.cpp:7: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from textdata.cpp:7: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from textdata.cpp:7: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from textdata.cpp:7: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from textdata.cpp:7: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from textdata.cpp:7: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from textdata.cpp:7: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from textdata.cpp:7: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from textdata.cpp:7: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from textdata.cpp:7: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from textdata.cpp:7: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from textdata.cpp:12: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from textdata.cpp:7: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from textdata.cpp:7: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from textdata.cpp:7: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from textdata.cpp:7: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from textdata.cpp:12: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from textdata.cpp:7: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from textdata.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from textdata.cpp:7: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from trackobject.cpp:5: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from trackobject.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from trackobject.cpp:5: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from vclip.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from vclip.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from vclip.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from text.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from text.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from text.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from text.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from text.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from text.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from text.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from text.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from text.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from text.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from text.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from text.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from text.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from text.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from text.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from text.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from trackobject.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from trackobject.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from text.cpp:21: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from text.cpp:21: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from text.cpp:21: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from text.cpp:21: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from text.cpp:21: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from text.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from text.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from trackobject.cpp:5: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from trackobject.cpp:5: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from trackobject.cpp:5: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from vclip.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from vclip.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from vclip.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from vclip.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from vclip.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from vclip.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from vclip.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from vclip.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from vclip.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from vclip.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from vclip.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from vclip.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from vclip.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from vclip.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from vclip.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from vclip.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from vclip.cpp:23: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from vclip.cpp:21: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from vclip.cpp:21: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from vclip.cpp:21: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from vclip.cpp:21: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from vclip.cpp:23: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from vclip.cpp:21: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from vclip.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from vclip.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ text.cpp: In function 'void LoadModTexts()': text.cpp:2742:18: warning: '%s' directive writing up to 254 bytes into a region of size between 0 and 254 [-Wformat-overflow=] sprintf (szFile, "%s/%s.txt", gameFolders.szModDir [1], gameFolders.szModName); ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ text.cpp:2742:9: note: 'sprintf' output between 6 and 514 bytes into a destination of size 255 sprintf (szFile, "%s/%s.txt", gameFolders.szModDir [1], gameFolders.szModName); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/vclip.Tpo .deps/vclip.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT wall.o -MD -MP -MF .deps/wall.Tpo -c -o wall.o wall.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from wall.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from wall.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from wall.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/text.Tpo .deps/text.Po mv -f .deps/textdata.Tpo .deps/textdata.Po mv -f .deps/descent.Tpo .deps/descent.Po In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from trackobject.cpp:5: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from trackobject.cpp:5: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from trackobject.cpp:5: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from trackobject.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from trackobject.cpp:5: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from trackobject.cpp:5: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from trackobject.cpp:5: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from trackobject.cpp:5: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from trackobject.cpp:5: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from trackobject.cpp:5: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from trackobject.cpp:5: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from trackobject.cpp:7: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from trackobject.cpp:5: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from trackobject.cpp:5: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from trackobject.cpp:5: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from trackobject.cpp:5: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from trackobject.cpp:7: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from trackobject.cpp:5: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from trackobject.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from trackobject.cpp:5: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/trackobject.Tpo .deps/trackobject.Po In file included from ../include/cfile.h:26, from ../include/carray.h:20, from ../include/descent.h:25, from wall.cpp:23: wall.cpp: In function 'void DoExplodingWallFrame()': ../include/maths.h:31:40: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] #define I2X(i) ((static_cast (i)) * 65536) ^ ../include/maths.h:55:44: note: in definition of macro 'FixDiv' #define FixDiv(_a, _b) (static_cast ((_b) ? (((static_cast (_a)) * 65536) / (static_cast (_b))) : 1)) ^~ wall.cpp:1298:29: note: in expansion of macro 'I2X' #define EXPL_WALL_TIME (I2X (1)) ^~~ wall.cpp:1333:55: note: in expansion of macro 'EXPL_WALL_TIME' oldfrac = FixDiv (gameData.walls.exploding [i].time, EXPL_WALL_TIME); ^~~~~~~~~~~~~~ ../include/maths.h:31:40: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] #define I2X(i) ((static_cast (i)) * 65536) ^ ../include/maths.h:55:44: note: in definition of macro 'FixDiv' #define FixDiv(_a, _b) (static_cast ((_b) ? (((static_cast (_a)) * 65536) / (static_cast (_b))) : 1)) ^~ wall.cpp:1298:29: note: in expansion of macro 'I2X' #define EXPL_WALL_TIME (I2X (1)) ^~~ wall.cpp:1351:55: note: in expansion of macro 'EXPL_WALL_TIME' newfrac = FixDiv (gameData.walls.exploding [i].time, EXPL_WALL_TIME); ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from wall.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from wall.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from wall.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from wall.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from wall.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from wall.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from wall.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from wall.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from wall.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from wall.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from wall.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from wall.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from wall.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from wall.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from wall.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from wall.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from wall.cpp:26: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from wall.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from wall.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from wall.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from wall.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from wall.cpp:26: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from wall.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from wall.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from wall.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/wall.Tpo .deps/wall.Po rm -f libmain.a ar cru libmain.a briefings.o cheats.o cmd.o config.o controls.o credits.o crypt.o dropobject.o effects.o endlevel.o flightpath.o fuelcen.o game.o gameargs.o gamecntl.o gamedata.o gamefolders.o gameoptions.o gameseg.o gamestates.o highscores.o descent.o kconfig.o mglobal.o movie.o newdemo.o scores.o segment.o side.o skybox.o slew.o trigger.o terrain.o texmerge.o text.o textdata.o trackobject.o vclip.o wall.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib libmain.a gmake[5]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/main' gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/main' Making all in maths gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/maths' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT vecmat.o -MD -MP -MF .deps/vecmat.Tpo -c -o vecmat.o vecmat.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT rand.o -MD -MP -MF .deps/rand.Tpo -c -o rand.o rand.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT tables.o -MD -MP -MF .deps/tables.Tpo -c -o tables.o tables.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT fixc.o -MD -MP -MF .deps/fixc.Tpo -c -o fixc.o fixc.cpp mv -f .deps/rand.Tpo .deps/rand.Po tables.cpp:1017:1: warning: narrowing conversion of '2147483648' from 'unsigned int' to 'fix' {aka 'int'} inside { } is ill-formed in C++11 [-Wnarrowing] }; ^ mv -f .deps/tables.Tpo .deps/tables.Po In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from fixc.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from fixc.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from vecmat.cpp:25: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from vecmat.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from vecmat.cpp:25: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from fixc.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from fixc.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from fixc.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fixc.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fixc.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fixc.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fixc.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fixc.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from fixc.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from fixc.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fixc.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fixc.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fixc.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fixc.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fixc.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from fixc.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fixc.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from fixc.cpp:21: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from fixc.cpp:21: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fixc.cpp:21: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from fixc.cpp:21: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from fixc.cpp:21: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from fixc.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fixc.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/fixc.Tpo .deps/fixc.Po In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from vecmat.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from vecmat.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from vecmat.cpp:25: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from vecmat.cpp:25: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from vecmat.cpp:25: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from vecmat.cpp:25: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from vecmat.cpp:25: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from vecmat.cpp:25: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from vecmat.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from vecmat.cpp:25: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from vecmat.cpp:25: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from vecmat.cpp:25: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from vecmat.cpp:25: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from vecmat.cpp:25: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from vecmat.cpp:25: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from vecmat.cpp:25: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from vecmat.cpp:25: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from vecmat.cpp:25: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from vecmat.cpp:25: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from vecmat.cpp:25: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from vecmat.cpp:25: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from vecmat.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from vecmat.cpp:25: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/vecmat.Tpo .deps/vecmat.Po rm -f libmaths.a ar cru libmaths.a vecmat.o rand.o tables.o fixc.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib libmaths.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/maths' Making all in menus gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/menus' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT mainmenu.o -MD -MP -MF .deps/mainmenu.Tpo -c -o mainmenu.o mainmenu.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT cockpitmenu.o -MD -MP -MF .deps/cockpitmenu.Tpo -c -o cockpitmenu.o cockpitmenu.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT configmenu.o -MD -MP -MF .deps/configmenu.Tpo -c -o configmenu.o configmenu.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT detailsmenu.o -MD -MP -MF .deps/detailsmenu.Tpo -c -o detailsmenu.o detailsmenu.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT effectsmenu.o -MD -MP -MF .deps/effectsmenu.Tpo -c -o effectsmenu.o effectsmenu.cpp In file included from ../include/gr.h:20, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from configmenu.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/menu.h:82, from configmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/menu.h:82, from configmenu.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from mainmenu.cpp:59: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from effectsmenu.cpp:59: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ effectsmenu.cpp: In function 'int EffectOptionsCallback(CMenu&, int&, int, int)': effectsmenu.cpp:95:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ effectsmenu.cpp:98:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CMenuItem *m; ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from effectsmenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from effectsmenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from effectsmenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from effectsmenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from effectsmenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from effectsmenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectsmenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectsmenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectsmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectsmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectsmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectsmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from effectsmenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectsmenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from effectsmenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from effectsmenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from effectsmenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from effectsmenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from effectsmenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from effectsmenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectsmenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectsmenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectsmenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectsmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectsmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from effectsmenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectsmenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from effectsmenu.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from effectsmenu.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from effectsmenu.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from effectsmenu.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from effectsmenu.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from effectsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectsmenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from configmenu.cpp:59: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from configmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from configmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from configmenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from configmenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from configmenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from configmenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from configmenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from configmenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from configmenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from configmenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from configmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from configmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from configmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from configmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from configmenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from configmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from configmenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from configmenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from configmenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from configmenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from configmenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from configmenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from configmenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from configmenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from configmenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from configmenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from configmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from configmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from configmenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from configmenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from configmenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from configmenu.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from configmenu.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from configmenu.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from configmenu.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from configmenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from configmenu.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from configmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from configmenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ configmenu.cpp: In function 'void ConfigMenu()': configmenu.cpp:192:9: warning: 'optEffects' may be used uninitialized in this function [-Wmaybe-uninitialized] else if (i == optEffects) ^~ In file included from detailsmenu.cpp:60: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ mv -f .deps/configmenu.Tpo .deps/configmenu.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT entropymenu.o -MD -MP -MF .deps/entropymenu.Tpo -c -o entropymenu.o entropymenu.cpp In file included from cockpitmenu.cpp:59: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ cockpitmenu.cpp: In function 'int CockpitOptionsCallback(CMenu&, int&, int, int)': cockpitmenu.cpp:89:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ cockpitmenu.cpp:92:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CMenuItem* m; ^~~~~~~~~ cockpitmenu.cpp: In function 'void CockpitOptionsMenu()': cockpitmenu.cpp:159:54: warning: variable 'optPosition' set but not used [-Wunused-but-set-variable] int optTextGauges, optHUD, optReticle, optMissiles, optPosition, optAlignment, optZoomType = -1; ^~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cockpitmenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cockpitmenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cockpitmenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cockpitmenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cockpitmenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from cockpitmenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cockpitmenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cockpitmenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cockpitmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cockpitmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cockpitmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cockpitmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from cockpitmenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cockpitmenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cockpitmenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cockpitmenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cockpitmenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cockpitmenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cockpitmenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from cockpitmenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cockpitmenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cockpitmenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cockpitmenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cockpitmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cockpitmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from cockpitmenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cockpitmenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from cockpitmenu.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from cockpitmenu.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cockpitmenu.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from cockpitmenu.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from cockpitmenu.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from cockpitmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cockpitmenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ detailsmenu.cpp: In function 'int CustomDetailsCallback(CMenu&, int&, int, int)': detailsmenu.cpp:137:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ detailsmenu.cpp:140:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' nCurItem = nCurItem; ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from detailsmenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from detailsmenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from detailsmenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from detailsmenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from detailsmenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from detailsmenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from detailsmenu.cpp:49: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from detailsmenu.cpp:49: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from detailsmenu.cpp:60: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from detailsmenu.cpp:60: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from detailsmenu.cpp:60: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from detailsmenu.cpp:60: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from detailsmenu.cpp:66: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from detailsmenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from detailsmenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from detailsmenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from detailsmenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from detailsmenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from detailsmenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from detailsmenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from detailsmenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from detailsmenu.cpp:49: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from detailsmenu.cpp:49: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from detailsmenu.cpp:60: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from detailsmenu.cpp:60: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from detailsmenu.cpp:66: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from detailsmenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from detailsmenu.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from detailsmenu.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from detailsmenu.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from detailsmenu.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from detailsmenu.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from detailsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from detailsmenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/cockpitmenu.Tpo .deps/cockpitmenu.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT fileselector.o -MD -MP -MF .deps/fileselector.Tpo -c -o fileselector.o fileselector.cpp mv -f .deps/effectsmenu.Tpo .deps/effectsmenu.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT gameplaymenu.o -MD -MP -MF .deps/gameplaymenu.Tpo -c -o gameplaymenu.o gameplaymenu.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from entropymenu.cpp:16: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from entropymenu.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from entropymenu.cpp:16: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mainmenu.cpp: In function 'int AutoDemoMenuCheck(CMenu&, int&, int, int)': mainmenu.cpp:112:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ mainmenu.cpp:115:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int curtime; ^~~ mainmenu.cpp: In function 'int MainMenu()': mainmenu.cpp:195:22: warning: variable 'nOptions' set but not used [-Wunused-but-set-variable] int i, nChoice = 0, nOptions = 0; ^~~~~~~~ mainmenu.cpp: In function 'int QuitSaveLoadMenu()': mainmenu.cpp:386:21: warning: variable 'optQuit' set but not used [-Wunused-but-set-variable] int i, choice = 0, optQuit, optOptions, optLoad, optSave; ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mainmenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mainmenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mainmenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from mainmenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from mainmenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from mainmenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mainmenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mainmenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mainmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mainmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mainmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mainmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from mainmenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CFilename]': ../include/menu.h:274:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CFilename' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/palette.h:21, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/cfile.h:34:7: note: 'class CFilename' declared here class CFilename { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mainmenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mainmenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mainmenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from mainmenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from mainmenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from mainmenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from mainmenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mainmenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mainmenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mainmenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mainmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mainmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from mainmenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CFilename]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CFilename]' ../include/menu.h:274:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CFilename' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/palette.h:21, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/cfile.h:34:7: note: 'class CFilename' declared here class CFilename { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mainmenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from mainmenu.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from mainmenu.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from mainmenu.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from mainmenu.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from mainmenu.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from mainmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mainmenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from fileselector.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/menu.h:82, from fileselector.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/menu.h:82, from fileselector.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/detailsmenu.Tpo .deps/detailsmenu.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT inputdevicemenu.o -MD -MP -MF .deps/inputdevicemenu.Tpo -c -o inputdevicemenu.o inputdevicemenu.cpp In file included from ../include/gr.h:20, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from fileselector.cpp:61: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ fileselector.cpp: In member function 'int CFileSelector::FileSelector(const char*, const char*, char*, int)': fileselector.cpp:138:16: warning: variable 'm_nOldChoice' set but not used [-Wunused-but-set-variable] int done, m_nOldChoice; ^~~~~~~~~~~~ fileselector.cpp:139:10: warning: variable 'nPrevItem' set but not used [-Wunused-but-set-variable] int nPrevItem; ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from fileselector.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from fileselector.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fileselector.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fileselector.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fileselector.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fileselector.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fileselector.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from fileselector.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fileselector.cpp:49: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fileselector.cpp:49: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fileselector.cpp:61: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fileselector.cpp:61: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fileselector.cpp:61: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fileselector.cpp:61: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from fileselector.cpp:68: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from fileselector.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fileselector.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fileselector.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fileselector.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fileselector.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fileselector.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fileselector.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from gameplaymenu.cpp:59: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from fileselector.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fileselector.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fileselector.cpp:49: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fileselector.cpp:49: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fileselector.cpp:61: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fileselector.cpp:61: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from fileselector.cpp:68: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from fileselector.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fileselector.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from fileselector.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from fileselector.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fileselector.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from fileselector.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from fileselector.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CFilename]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CFilename]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CFilename; uint = unsigned int]' fileselector.cpp:163:40: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CFilename' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/palette.h:21, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/cfile.h:34:7: note: 'class CFilename' declared here class CFilename { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from fileselector.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from fileselector.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fileselector.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mainmenu.cpp: In function 'int ExecMainMenuOption(int)': mainmenu.cpp:347:21: warning: '*.dem' directive writing 5 bytes into a region of size between 0 and 255 [-Wformat-overflow=] sprintf (demoPath, "%s%s*.dem", gameFolders.szDemoDir, *gameFolders.szDemoDir ? "/" : ""); ^~~~~~~~~~~ mainmenu.cpp:347:10: note: 'sprintf' output between 6 and 261 bytes into a destination of size 255 sprintf (demoPath, "%s%s*.dem", gameFolders.szDemoDir, *gameFolders.szDemoDir ? "/" : ""); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gameplaymenu.cpp: In function 'int LoadoutCallback(CMenu&, int&, int, int)': gameplaymenu.cpp:133:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ gameplaymenu.cpp:136:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CMenuItem *m = menu + nCurItem; ^~~~~~~~~ gameplaymenu.cpp: In function 'int GameplayOptionsCallback(CMenu&, int&, int, int)': gameplaymenu.cpp:218:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ gameplaymenu.cpp:221:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CMenuItem* m; ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameplaymenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameplaymenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameplaymenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gameplaymenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gameplaymenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gameplaymenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameplaymenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameplaymenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameplaymenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameplaymenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameplaymenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameplaymenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from gameplaymenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameplaymenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameplaymenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameplaymenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gameplaymenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gameplaymenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gameplaymenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from inputdevicemenu.cpp:14: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from inputdevicemenu.cpp:14: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from inputdevicemenu.cpp:14: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gameplaymenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameplaymenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameplaymenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameplaymenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameplaymenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameplaymenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from gameplaymenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameplaymenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gameplaymenu.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from gameplaymenu.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gameplaymenu.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gameplaymenu.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gameplaymenu.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from gameplaymenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gameplaymenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ fileselector.cpp:189:12: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] strncpy (pszFn, ffs.name, FILENAME_LEN); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from entropymenu.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from entropymenu.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from entropymenu.cpp:16: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from entropymenu.cpp:16: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from entropymenu.cpp:16: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ mv -f .deps/fileselector.Tpo .deps/fileselector.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT listbox.o -MD -MP -MF .deps/listbox.Tpo -c -o listbox.o listbox.cpp In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from entropymenu.cpp:16: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from entropymenu.cpp:16: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from entropymenu.cpp:16: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from entropymenu.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from entropymenu.cpp:16: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from entropymenu.cpp:16: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from entropymenu.cpp:16: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from entropymenu.cpp:16: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ mv -f .deps/mainmenu.Tpo .deps/mainmenu.Po In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from entropymenu.cpp:16: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT menuitem.o -MD -MP -MF .deps/menuitem.Tpo -c -o menuitem.o menuitem.cpp In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from entropymenu.cpp:16: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from entropymenu.cpp:16: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from entropymenu.cpp:22: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from entropymenu.cpp:16: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from entropymenu.cpp:16: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from entropymenu.cpp:16: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from entropymenu.cpp:16: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from entropymenu.cpp:22: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from entropymenu.cpp:16: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from entropymenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from entropymenu.cpp:16: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from listbox.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/menu.h:82, from listbox.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/menu.h:82, from listbox.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ inputdevicemenu.cpp: In function 'int MouseConfigCallback(CMenu&, int&, int, int)': inputdevicemenu.cpp:143:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ inputdevicemenu.cpp:146:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int h, i, v; ^~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from menuitem.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/menu.h:82, from menuitem.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/menu.h:82, from menuitem.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/gameplaymenu.Tpo .deps/gameplaymenu.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT messagebox.o -MD -MP -MF .deps/messagebox.Tpo -c -o messagebox.o messagebox.cpp mv -f .deps/entropymenu.Tpo .deps/entropymenu.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT miscmenu.o -MD -MP -MF .deps/miscmenu.Tpo -c -o miscmenu.o miscmenu.cpp inputdevicemenu.cpp: In function 'int JoystickConfigCallback(CMenu&, int&, int, int)': inputdevicemenu.cpp:300:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ inputdevicemenu.cpp:302:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int h, i, v; ^~~ inputdevicemenu.cpp: In function 'void JoystickConfigMenu()': inputdevicemenu.cpp:389:6: warning: variable 'h' set but not used [-Wunused-but-set-variable] int h, i, j, choice = 0; ^ inputdevicemenu.cpp: In function 'int TrackIRConfigCallback(CMenu&, int&, int, int)': inputdevicemenu.cpp:452:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ inputdevicemenu.cpp:455:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int h, i, v; ^~~ inputdevicemenu.cpp: In function 'int KeyboardConfigCallback(CMenu&, int&, int, int)': inputdevicemenu.cpp:582:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ inputdevicemenu.cpp:585:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int i, v; ^~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from inputdevicemenu.cpp:14: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from inputdevicemenu.cpp:14: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from inputdevicemenu.cpp:14: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from inputdevicemenu.cpp:14: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from inputdevicemenu.cpp:14: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from inputdevicemenu.cpp:14: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from inputdevicemenu.cpp:14: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from inputdevicemenu.cpp:14: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from inputdevicemenu.cpp:14: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from inputdevicemenu.cpp:14: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from inputdevicemenu.cpp:14: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from inputdevicemenu.cpp:14: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from inputdevicemenu.cpp:14: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from inputdevicemenu.cpp:14: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from inputdevicemenu.cpp:14: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from inputdevicemenu.cpp:14: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from inputdevicemenu.cpp:15: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from inputdevicemenu.cpp:14: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from inputdevicemenu.cpp:14: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from inputdevicemenu.cpp:14: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from inputdevicemenu.cpp:14: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from inputdevicemenu.cpp:15: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from inputdevicemenu.cpp:14: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from inputdevicemenu.cpp:14: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from inputdevicemenu.cpp:14: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from listbox.cpp:61: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ listbox.cpp: In member function 'int CListBox::ListBox(const char*, CStack&, int, int, pListBoxCallback)': listbox.cpp:116:12: warning: variable 'nOldChoice' set but not used [-Wunused-but-set-variable] int done, nOldChoice, nPrevItem, m_bRedraw; ^~~~~~~~~~ listbox.cpp:116:24: warning: variable 'nPrevItem' set but not used [-Wunused-but-set-variable] int done, nOldChoice, nPrevItem, m_bRedraw; ^~~~~~~~~ listbox.cpp:116:35: warning: variable 'm_bRedraw' set but not used [-Wunused-but-set-variable] int done, nOldChoice, nPrevItem, m_bRedraw; ^~~~~~~~~ listbox.cpp:119:6: warning: variable 'nTotalWidth' set but not used [-Wunused-but-set-variable] int nTotalWidth, nTotalHeight; ^~~~~~~~~~~ listbox.cpp:119:19: warning: variable 'nTotalHeight' set but not used [-Wunused-but-set-variable] int nTotalWidth, nTotalHeight; ^~~~~~~~~~~~ listbox.cpp: In function 'int FileList(char*, char*, char*)': listbox.cpp:398:45: warning: passing NULL to non-pointer argument 4 of 'int CListBox::ListBox(const char*, CStack&, int, int, pListBoxCallback)' [-Wconversion-null] i = lb.ListBox (pszTitle, filenames, 1, NULL); ^ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from listbox.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from listbox.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from listbox.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from listbox.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from listbox.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from listbox.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from listbox.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from listbox.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from listbox.cpp:49: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from listbox.cpp:49: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from listbox.cpp:61: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from listbox.cpp:61: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from listbox.cpp:61: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from listbox.cpp:61: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from listbox.cpp:68: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from listbox.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from listbox.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from listbox.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from listbox.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from listbox.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from listbox.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from listbox.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from listbox.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from listbox.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from messagebox.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from messagebox.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from listbox.cpp:49: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from listbox.cpp:49: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from listbox.cpp:61: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from listbox.cpp:61: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from listbox.cpp:68: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from listbox.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from listbox.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from listbox.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from listbox.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from listbox.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from listbox.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from listbox.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from listbox.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from listbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from listbox.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from messagebox.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ listbox.cpp:393:11: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] strncpy (filenameList [nFiles], ffs.name, FILENAME_LEN); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menuitem.cpp:61: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from menuitem.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from menuitem.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/renderthreads.h:18, from messagebox.cpp:35: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from menuitem.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from menuitem.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from menuitem.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from menuitem.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from menuitem.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from menuitem.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menuitem.cpp:49: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menuitem.cpp:49: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menuitem.cpp:61: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menuitem.cpp:61: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menuitem.cpp:61: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menuitem.cpp:61: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from menuitem.cpp:68: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from menuitem.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menuitem.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ mv -f .deps/listbox.Tpo .deps/listbox.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT monsterballmenu.o -MD -MP -MF .deps/monsterballmenu.Tpo -c -o monsterballmenu.o monsterballmenu.cpp In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from menuitem.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from menuitem.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from menuitem.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from menuitem.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from menuitem.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from menuitem.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menuitem.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menuitem.cpp:49: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menuitem.cpp:49: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menuitem.cpp:61: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menuitem.cpp:61: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from menuitem.cpp:68: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from menuitem.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menuitem.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from menuitem.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from menuitem.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from menuitem.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from menuitem.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from menuitem.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from menuitem.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menuitem.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menuitem.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from messagebox.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from messagebox.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ menuitem.cpp: In member function 'void CMenuItem::DrawHotKeyString(int, int, int, int)': menuitem.cpp:202:11: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 1000 bytes from a string of length 1000 [-Wstringop-truncation] strncpy (s, ps, sizeof (s)); ~~~~~~~~^~~~~~~~~~~~~~~~~~~ In member function 'void CMenuItem::SetText(const char*, char*)', inlined from 'void CMenuItem::DrawHotKeyString(int, int, int, int)' at menuitem.cpp:215:11: menuitem.cpp:666:10: warning: 'char* strncpy(char*, const char*, size_t)' source argument is the same as destination [-Wrestrict] strncpy (pszDest, pszSrc, MENU_MAX_TEXTLEN); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ menuitem.cpp: In member function 'void CMenuItem::DrawHotKeyString(int, int, int, int)': menuitem.cpp:186:11: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 1000 bytes from a string of length 1000 [-Wstringop-truncation] strncpy (s, ps, sizeof (s)); ~~~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from messagebox.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from messagebox.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from messagebox.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from messagebox.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from messagebox.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from messagebox.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from messagebox.cpp:35: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from messagebox.cpp:35: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from messagebox.cpp:35: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from messagebox.cpp:35: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from messagebox.cpp:35: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from messagebox.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from messagebox.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from messagebox.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from messagebox.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from messagebox.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from messagebox.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from messagebox.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from messagebox.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from messagebox.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from messagebox.cpp:35: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from messagebox.cpp:35: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In member function 'void CMenuItem::SetText(const char*, char*)', inlined from 'void CMenuItem::SaveText()' at menuitem.cpp:675:9, inlined from 'void CMenuItem::DrawRightString(int, int, char*)' at menuitem.cpp:367:10: menuitem.cpp:666:10: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 1000 bytes from a string of length 1000 [-Wstringop-truncation] strncpy (pszDest, pszSrc, MENU_MAX_TEXTLEN); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'void CMenuItem::SetText(const char*, char*)', inlined from 'void CMenuItem::DrawRightString(int, int, char*)' at menuitem.cpp:682:9: menuitem.cpp:666:10: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 1000 bytes from a string of length 1000 [-Wstringop-truncation] strncpy (pszDest, pszSrc, MENU_MAX_TEXTLEN); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from messagebox.cpp:35: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from messagebox.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from messagebox.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from messagebox.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from messagebox.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from messagebox.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from messagebox.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from messagebox.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from messagebox.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from messagebox.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from messagebox.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ menuitem.cpp: In member function 'void CMenuItem::Draw(int, int)': menuitem.cpp:519:20: warning: '%s' directive writing up to 1 bytes into a region of size between 0 and 1000 [-Wformat-overflow=] sprintf (m_text, "%s\t%s", m_savedText, SLIDER_LEFT); ^~~~~~~~ ~~~~~~~~~~~ menuitem.cpp:519:11: note: 'sprintf' output between 2 and 1003 bytes into a destination of size 1001 sprintf (m_text, "%s\t%s", m_savedText, SLIDER_LEFT); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'void CMenuItem::SetText(const char*, char*)', inlined from 'void CMenuItem::SaveText()' at menuitem.cpp:675:9, inlined from 'void CMenuItem::Draw(int, int)' at menuitem.cpp:514:12: menuitem.cpp:666:10: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 1000 bytes from a string of length 1000 [-Wstringop-truncation] strncpy (pszDest, pszSrc, MENU_MAX_TEXTLEN); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'void CMenuItem::SetText(const char*, char*)', inlined from 'void CMenuItem::Draw(int, int)' at menuitem.cpp:682:9: menuitem.cpp:666:10: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 1000 bytes from a string of length 1000 [-Wstringop-truncation] strncpy (pszDest, pszSrc, MENU_MAX_TEXTLEN); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ menuitem.cpp: In member function 'int CMenuItem::GetSize(int, int, int&, int&, int&, int&, int&, int)': menuitem.cpp:577:11: warning: array subscript 18446744073709551615 is above array bounds of 'char [1001]' [-Warray-bounds] m_nKey = *(m_text - 1); ^~~~~~~~~~~~~ In member function 'void CMenuItem::SetText(const char*, char*)', inlined from 'int CMenuItem::GetSize(int, int, int&, int&, int&, int&, int&, int)' at menuitem.cpp:648:10: menuitem.cpp:666:10: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 1000 bytes from a string of length 1000 [-Wstringop-truncation] strncpy (pszDest, pszSrc, MENU_MAX_TEXTLEN); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'void CMenuItem::SetText(const char*, char*)', inlined from 'int CMenuItem::GetSize(int, int, int&, int&, int&, int&, int&, int)' at menuitem.cpp:640:10: menuitem.cpp:666:10: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 1000 bytes from a string of length 1000 [-Wstringop-truncation] strncpy (pszDest, pszSrc, MENU_MAX_TEXTLEN); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from monsterballmenu.cpp:16: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from monsterballmenu.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from monsterballmenu.cpp:16: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In member function 'void CMenuItem::SetText(const char*, char*)', inlined from 'void CMenuItem::SaveText()' at menuitem.cpp:675:9: menuitem.cpp:666:10: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 1000 bytes from a string of length 1000 [-Wstringop-truncation] strncpy (pszDest, pszSrc, MENU_MAX_TEXTLEN); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'void CMenuItem::SetText(const char*, char*)', inlined from 'void CMenuItem::RestoreText()' at menuitem.cpp:682:9: menuitem.cpp:666:10: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 1000 bytes from a string of length 1000 [-Wstringop-truncation] strncpy (pszDest, pszSrc, MENU_MAX_TEXTLEN); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/menuitem.Tpo .deps/menuitem.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT menu.o -MD -MP -MF .deps/menu.Tpo -c -o menu.o menu.cpp mv -f .deps/messagebox.Tpo .deps/messagebox.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT menubackground.o -MD -MP -MF .deps/menubackground.Tpo -c -o menubackground.o menubackground.cpp In file included from miscmenu.cpp:59: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ miscmenu.cpp: In function 'int MiscellaneousCallback(CMenu&, int&, int, int)': miscmenu.cpp:84:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ miscmenu.cpp:87:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CMenuItem * m; ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ mv -f .deps/inputdevicemenu.Tpo .deps/inputdevicemenu.Po In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT msgbox.o -MD -MP -MF .deps/msgbox.Tpo -c -o msgbox.o msgbox.cpp In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from miscmenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from miscmenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from miscmenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from miscmenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from miscmenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from miscmenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from miscmenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from miscmenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from miscmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from miscmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from miscmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from miscmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from miscmenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from miscmenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from miscmenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from miscmenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from miscmenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from miscmenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from miscmenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from miscmenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from miscmenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from miscmenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from miscmenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from miscmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from miscmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from miscmenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from miscmenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from miscmenu.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from miscmenu.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from miscmenu.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from miscmenu.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from miscmenu.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from miscmenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from miscmenu.cpp:21: ../include/carray.h: In function 'void MiscellaneousMenu()': ../include/carray.h:231:57: warning: 'optNotebook' may be used uninitialized in this function [-Wmaybe-uninitialized] inline _T& operator[] (uint i) { return m_data.buffer [i]; } ~~~~~~~~~~~~~~^ miscmenu.cpp:117:63: note: 'optNotebook' was declared here int optHeadlight, optAutoLevel, optEpileptic, optColorblind, optNotebook, ^~~~~~~~~~~ mv -f .deps/miscmenu.Tpo .deps/miscmenu.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT netgamebrowser.o -MD -MP -MF .deps/netgamebrowser.Tpo -c -o netgamebrowser.o netgamebrowser.cpp monsterballmenu.cpp: In function 'int MonsterballMenuCallback(CMenu&, int&, int, int)': monsterballmenu.cpp:75:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ monsterballmenu.cpp:78:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CMenuItem *m; ^~~~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from monsterballmenu.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from monsterballmenu.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from monsterballmenu.cpp:16: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from monsterballmenu.cpp:16: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from monsterballmenu.cpp:16: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from monsterballmenu.cpp:16: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from monsterballmenu.cpp:16: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from monsterballmenu.cpp:16: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from menubackground.cpp:40: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/error.h:19, from menubackground.cpp:40: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from monsterballmenu.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/error.h:19, from menubackground.cpp:40: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from monsterballmenu.cpp:16: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from monsterballmenu.cpp:16: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from monsterballmenu.cpp:16: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from monsterballmenu.cpp:16: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from monsterballmenu.cpp:16: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from monsterballmenu.cpp:16: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from monsterballmenu.cpp:16: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from monsterballmenu.cpp:22: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from monsterballmenu.cpp:16: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from monsterballmenu.cpp:16: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from monsterballmenu.cpp:16: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from monsterballmenu.cpp:16: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from monsterballmenu.cpp:22: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from monsterballmenu.cpp:16: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from monsterballmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from monsterballmenu.cpp:16: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from msgbox.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/menu.h:82, from msgbox.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/menu.h:82, from msgbox.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from menu.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/menu.h:82, from menu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/menu.h:82, from menu.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/monsterballmenu.Tpo .deps/monsterballmenu.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT netgamehelp.o -MD -MP -MF .deps/netgamehelp.Tpo -c -o netgamehelp.o netgamehelp.cpp menubackground.cpp: In member function 'void CBackground::Draw(bool, bool)': menubackground.cpp:251:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ menubackground.cpp:253:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' CCanvas::Pop (); ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from menubackground.cpp:40: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from menubackground.cpp:40: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from menubackground.cpp:41: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from menubackground.cpp:41: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from menubackground.cpp:41: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from menubackground.cpp:41: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from menubackground.cpp:41: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from menubackground.cpp:41: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from menubackground.cpp:40: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from menubackground.cpp:41: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from menubackground.cpp:41: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from menubackground.cpp:41: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from menubackground.cpp:41: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from menubackground.cpp:41: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from menubackground.cpp:41: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menubackground.cpp:41: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from menubackground.cpp:51: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBackground]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CBackground]' menubackground.cpp:372:41: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CBackground'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menubackground.cpp:55: ../include/menubackground.h:33:7: note: 'class CBackground' declared here class CBackground { ^~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from menubackground.cpp:41: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from menubackground.cpp:41: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from menubackground.cpp:41: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from menubackground.cpp:41: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from menubackground.cpp:51: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBackground]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBackground]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CBackground]' menubackground.cpp:372:41: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CBackground'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menubackground.cpp:55: ../include/menubackground.h:33:7: note: 'class CBackground' declared here class CBackground { ^~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from menubackground.cpp:41: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from menubackground.cpp:40: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menubackground.cpp:41: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netgamebrowser.cpp:16: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netgamebrowser.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from netgamebrowser.cpp:16: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netgamehelp.cpp:16: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netgamehelp.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from msgbox.cpp:60: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from netgamehelp.cpp:16: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from menubackground.cpp:40: In member function 'void CBitmap::SetName(const char*)', inlined from 'CBitmap* CBackgroundManager::LoadBackground(char*)' at menubackground.cpp:505:14: ../include/bitmap.h:255:68: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 20 equals destination size [-Wstringop-truncation] inline void SetName (const char* pszName) { if (pszName) strncpy (m_info.szName, pszName, sizeof (m_info.szName)); } ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from msgbox.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from msgbox.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from msgbox.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from msgbox.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from msgbox.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from msgbox.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from msgbox.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from msgbox.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from msgbox.cpp:49: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from msgbox.cpp:49: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from msgbox.cpp:60: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from msgbox.cpp:60: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from msgbox.cpp:60: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from msgbox.cpp:60: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from msgbox.cpp:67: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from msgbox.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from msgbox.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from msgbox.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from msgbox.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from msgbox.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from msgbox.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from msgbox.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from msgbox.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from msgbox.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from msgbox.cpp:49: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from msgbox.cpp:49: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from msgbox.cpp:60: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from msgbox.cpp:60: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from msgbox.cpp:67: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from msgbox.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from msgbox.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from msgbox.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from msgbox.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from msgbox.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from msgbox.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from msgbox.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from msgbox.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from msgbox.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from msgbox.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/menubackground.Tpo .deps/menubackground.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT netgameinfo.o -MD -MP -MF .deps/netgameinfo.Tpo -c -o netgameinfo.o netgameinfo.cpp mv -f .deps/msgbox.Tpo .deps/msgbox.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT netmenu.o -MD -MP -MF .deps/netmenu.Tpo -c -o netmenu.o netmenu.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netgameinfo.cpp:16: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netgameinfo.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from netgameinfo.cpp:16: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ netgamebrowser.cpp: In function 'int NetworkJoinPoll(CMenu&, int&, int, int)': netgamebrowser.cpp:119:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ netgamebrowser.cpp:123:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' static fix t1 = 0; ^~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netgamebrowser.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netgamebrowser.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netgamebrowser.cpp:16: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netgamebrowser.cpp:16: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netgamebrowser.cpp:16: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netgamebrowser.cpp:16: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netgamebrowser.cpp:16: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from netgamebrowser.cpp:16: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netgamebrowser.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netmenu.cpp:16: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netmenu.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from netmenu.cpp:16: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netgamebrowser.cpp:16: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netgamebrowser.cpp:16: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netgamebrowser.cpp:16: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netgamebrowser.cpp:16: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netgamebrowser.cpp:16: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from netgamebrowser.cpp:16: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from netgamebrowser.cpp:16: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from netgamebrowser.cpp:22: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from netgamebrowser.cpp:16: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from netgamebrowser.cpp:16: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netgamebrowser.cpp:16: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from netgamebrowser.cpp:16: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from netgamebrowser.cpp:22: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from netgamebrowser.cpp:16: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from netgamebrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from netgamebrowser.cpp:16: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ netgamehelp.cpp: In function 'void DoShowNetgameHelp()': netgamehelp.cpp:83:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (i = 0; i < gameData.multiplayer.nPlayers; i++) ^~~ netgamehelp.cpp:103:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' m.AddText (""); ^ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netgamehelp.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netgamehelp.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netgamehelp.cpp:16: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netgamehelp.cpp:16: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netgamehelp.cpp:16: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netgamehelp.cpp:16: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netgamehelp.cpp:16: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from netgamehelp.cpp:16: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netgamehelp.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netgamehelp.cpp:16: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netgamehelp.cpp:16: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netgamehelp.cpp:16: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netgamehelp.cpp:16: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netgamehelp.cpp:16: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from menu.cpp:61: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from netgamehelp.cpp:16: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from netgamehelp.cpp:16: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from netgamehelp.cpp:22: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from netgamehelp.cpp:16: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from netgamehelp.cpp:16: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netgamehelp.cpp:16: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from netgamehelp.cpp:16: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from netgamehelp.cpp:22: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from netgamehelp.cpp:16: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from netgamehelp.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from netgamehelp.cpp:16: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ menu.cpp: In member function 'int CMenu::InitProps(const char*, const char*)': menu.cpp:274:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if ((m_props.scWidth == screen.Width ()) && (m_props.scHeight == screen.Height ())) ^~ menu.cpp:277:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int i, gap, haveTitle; ^~~ menu.cpp: In member function 'int CMenu::Menu(const char*, const char*, pMenuCallback, int*, char*, int, int, int)': menu.cpp:560:8: warning: variable 'bRedrawAll' set but not used [-Wunused-but-set-variable] int bRedrawAll = 0; ^~~~~~~~~~ menu.cpp: In function 'void NMWrapText(char*, char*, int)': menu.cpp:1568:12: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf (dbuf, "%s\n%s ", dbuf, wordptr); ^~~~ ~~~~ menu.cpp:1571:12: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf (dbuf, "%s%s ", dbuf, wordptr); ^~~~ ~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from menu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from menu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from menu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from menu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from menu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from menu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from menu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ mv -f .deps/netgamehelp.Tpo .deps/netgamehelp.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT netplayerbrowser.o -MD -MP -MF .deps/netplayerbrowser.Tpo -c -o netplayerbrowser.o netplayerbrowser.cpp In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from menu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menu.cpp:49: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menu.cpp:49: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menu.cpp:61: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menu.cpp:61: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menu.cpp:61: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menu.cpp:61: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from menu.cpp:68: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from menu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ mv -f .deps/netgamebrowser.Tpo .deps/netgamebrowser.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT newgamemenu.o -MD -MP -MF .deps/newgamemenu.Tpo -c -o newgamemenu.o newgamemenu.cpp In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from menu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from menu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from menu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from menu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from menu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from menu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menu.cpp:49: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menu.cpp:49: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menu.cpp:61: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menu.cpp:61: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from menu.cpp:68: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from menu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CMenuItem]': ../include/cstack.h:42:54: required from 'bool CStack<_T>::Push(_T) [with _T = CMenuItem]' menu.cpp:1404:11: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CMenuItem'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from menu.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from menu.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from menu.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from menu.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from menu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from menu.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from menu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from menu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netgameinfo.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netgameinfo.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netgameinfo.cpp:16: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netgameinfo.cpp:16: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netgameinfo.cpp:16: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netgameinfo.cpp:16: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netgameinfo.cpp:16: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from netgameinfo.cpp:16: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netgameinfo.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netgameinfo.cpp:16: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netgameinfo.cpp:16: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netgameinfo.cpp:16: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netgameinfo.cpp:16: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netgameinfo.cpp:16: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from netgameinfo.cpp:16: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from netgameinfo.cpp:16: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from netgameinfo.cpp:22: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from netgameinfo.cpp:16: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from netgameinfo.cpp:16: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netgameinfo.cpp:16: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from netgameinfo.cpp:16: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from netgameinfo.cpp:22: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from netgameinfo.cpp:16: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from netgameinfo.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from netgameinfo.cpp:16: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netplayerbrowser.cpp:16: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netplayerbrowser.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from netplayerbrowser.cpp:16: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from newgamemenu.cpp:59: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ newgamemenu.cpp: In function 'int NewGameMenuCallback(CMenu&, int&, int, int)': newgamemenu.cpp:242:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ newgamemenu.cpp:245:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CMenuItem* m; ^~~~~~~~~ newgamemenu.cpp:251:34: warning: operation on 'gameStates.tGameStates::app.tApplicationStates::nDifficultyLevel' may be undefined [-Wsequence-point] gameStates.app.nDifficultyLevel = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ gameStates.app.nDifficultyLevel = v; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ newgamemenu.cpp: In function 'void NewGameMenu()': newgamemenu.cpp:265:20: warning: variable 'optMsnName' set but not used [-Wunused-but-set-variable] int optSelMsn, optMsnName, optLevelText, optLevel, optUseMod, optLaunch, optLoadout; ^~~~~~~~~~ newgamemenu.cpp: In function 'void MultiplayerMenu()': newgamemenu.cpp:493:21: warning: variable 'optCreate' set but not used [-Wunused-but-set-variable] int choice = 0, i, optCreate, optJoin = -1, optConn = -1, nConnections = 0; ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netplayerbrowser.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netplayerbrowser.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netplayerbrowser.cpp:16: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netplayerbrowser.cpp:16: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netplayerbrowser.cpp:16: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netplayerbrowser.cpp:16: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netplayerbrowser.cpp:16: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from netplayerbrowser.cpp:16: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netplayerbrowser.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netplayerbrowser.cpp:16: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netplayerbrowser.cpp:16: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netplayerbrowser.cpp:16: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netplayerbrowser.cpp:16: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netplayerbrowser.cpp:16: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from newgamemenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from newgamemenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from newgamemenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from newgamemenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from newgamemenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from newgamemenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from netplayerbrowser.cpp:16: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from netplayerbrowser.cpp:16: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from newgamemenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from newgamemenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from netplayerbrowser.cpp:22: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from newgamemenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from newgamemenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from newgamemenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from newgamemenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from netplayerbrowser.cpp:16: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from netplayerbrowser.cpp:16: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from newgamemenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netplayerbrowser.cpp:16: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from netplayerbrowser.cpp:16: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from newgamemenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from newgamemenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from newgamemenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from newgamemenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from newgamemenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from newgamemenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from newgamemenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from newgamemenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from newgamemenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from newgamemenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from newgamemenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from newgamemenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from newgamemenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from netplayerbrowser.cpp:22: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from netplayerbrowser.cpp:16: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from netplayerbrowser.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from netplayerbrowser.cpp:16: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from newgamemenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from newgamemenu.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from newgamemenu.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from newgamemenu.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from newgamemenu.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from newgamemenu.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from newgamemenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from newgamemenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ netmenu.cpp: In function 'void NetworkSetWeaponsAllowed()': netmenu.cpp:56:17: warning: variable 'choice' set but not used [-Wunused-but-set-variable] int opt = 0, choice, optPrimary, optSecond, opt_power; ^~~~~~ netmenu.cpp: In function 'int NetworkEndLevelPoll2(CMenu&, int&, int, int)': netmenu.cpp:218:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ netmenu.cpp:223:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' static fix t1 = 0; ^~~~~~ netmenu.cpp: In function 'int NetworkStartPoll(CMenu&, int&, int, int)': netmenu.cpp:279:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ netmenu.cpp:282:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int i, n, nm; ^~~ netmenu.cpp: In function 'int NetworkGameParamPoll(CMenu&, int&, int, int)': netmenu.cpp:364:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ netmenu.cpp:367:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' static int oldmaxnet = 0; ^~~~~~ netmenu.cpp: In function 'int NetworkD2XOptionsPoll(CMenu&, int&, int, int)': netmenu.cpp:604:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ netmenu.cpp:607:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int v; ^~~ netmenu.cpp: In function 'int QueryPoll(CMenu&, int&, int, int)': netmenu.cpp:1139:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ netmenu.cpp:1142:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' time_t t; ^~~~~~ netmenu.cpp: In function 'int NetworkGetIpAddr(bool, bool)': netmenu.cpp:1296:6: warning: variable 'optServer' set but not used [-Wunused-but-set-variable] int optServer = -1, optCheckPort, optPort [2] = {-1, -1}; ^~~~~~~~~ netmenu.cpp:1296:36: warning: variable 'optPort' set but not used [-Wunused-but-set-variable] int optServer = -1, optCheckPort, optPort [2] = {-1, -1}; ^~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netmenu.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netmenu.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netmenu.cpp:16: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netmenu.cpp:16: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netmenu.cpp:16: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netmenu.cpp:16: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netmenu.cpp:16: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from netmenu.cpp:16: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netmenu.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netmenu.cpp:16: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netmenu.cpp:16: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netmenu.cpp:16: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netmenu.cpp:16: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netmenu.cpp:16: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from netmenu.cpp:16: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from netmenu.cpp:16: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from netmenu.cpp:22: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from netmenu.cpp:16: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from netmenu.cpp:16: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netmenu.cpp:16: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from netmenu.cpp:16: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from netmenu.cpp:22: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from netmenu.cpp:16: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from netmenu.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from netmenu.cpp:16: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/netplayerbrowser.Tpo .deps/netplayerbrowser.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT physicsmenu.o -MD -MP -MF .deps/physicsmenu.Tpo -c -o physicsmenu.o physicsmenu.cpp mv -f .deps/netgameinfo.Tpo .deps/netgameinfo.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT rendermenu.o -MD -MP -MF .deps/rendermenu.Tpo -c -o rendermenu.o rendermenu.cpp In file included from ../include/gr.h:20, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/newgamemenu.Tpo .deps/newgamemenu.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT screenresmenu.o -MD -MP -MF .deps/screenresmenu.Tpo -c -o screenresmenu.o screenresmenu.cpp In file included from ../include/gr.h:20, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from physicsmenu.cpp:59: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ physicsmenu.cpp: In function 'int PhysicsOptionsCallback(CMenu&, int&, int, int)': physicsmenu.cpp:115:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ physicsmenu.cpp:118:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CMenuItem* m; ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from physicsmenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from physicsmenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from physicsmenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from physicsmenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from physicsmenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from physicsmenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from physicsmenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from physicsmenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from physicsmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from physicsmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from physicsmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from physicsmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from physicsmenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from physicsmenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from physicsmenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from physicsmenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from physicsmenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from physicsmenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from physicsmenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from physicsmenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from physicsmenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from physicsmenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from physicsmenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from physicsmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from physicsmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from physicsmenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from physicsmenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from physicsmenu.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from physicsmenu.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from physicsmenu.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from physicsmenu.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from physicsmenu.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from physicsmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from physicsmenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from rendermenu.cpp:59: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ rendermenu.cpp: In function 'int RenderOptionsCallback(CMenu&, int&, int, int)': rendermenu.cpp:145:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ rendermenu.cpp:148:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CMenuItem* m; ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rendermenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rendermenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rendermenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rendermenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rendermenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from rendermenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rendermenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rendermenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rendermenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rendermenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rendermenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rendermenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from rendermenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rendermenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rendermenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rendermenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rendermenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rendermenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rendermenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from rendermenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rendermenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rendermenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rendermenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rendermenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rendermenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from rendermenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rendermenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from rendermenu.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from rendermenu.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rendermenu.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from rendermenu.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from rendermenu.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from rendermenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rendermenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from screenresmenu.cpp:59: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ screenresmenu.cpp: In function 'int ScreenResCallback(CMenu&, int&, int, int)': screenresmenu.cpp:118:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ screenresmenu.cpp:121:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int i, j; ^~~ screenresmenu.cpp: In function 'void ScreenResMenu()': screenresmenu.cpp:236:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (i = 0; i <= screenResOpts.nCustom; i++) ^~~ screenresmenu.cpp:242:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' if (!bStdRes) ^~ netmenu.cpp: In function 'int GameParamsMenu(CMenu&, int&, int&, char*, char*, char*, char*, int&)': netmenu.cpp:1018:10: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 16 equals destination size [-Wstringop-truncation] strncpy (mpParams.szGameName, szName, sizeof (mpParams.szGameName)); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from screenresmenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from screenresmenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from screenresmenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from screenresmenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from screenresmenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from screenresmenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from screenresmenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from screenresmenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from screenresmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from screenresmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from screenresmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from screenresmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from screenresmenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from screenresmenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from screenresmenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from screenresmenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from screenresmenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from screenresmenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from screenresmenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from screenresmenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from screenresmenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from screenresmenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from screenresmenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from screenresmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from screenresmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from screenresmenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from screenresmenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from screenresmenu.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from screenresmenu.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from screenresmenu.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from screenresmenu.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from screenresmenu.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from screenresmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from screenresmenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/physicsmenu.Tpo .deps/physicsmenu.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT soundmenu.o -MD -MP -MF .deps/soundmenu.Tpo -c -o soundmenu.o soundmenu.cpp screenresmenu.cpp:205:21: warning: '%d' directive writing between 1 and 6 bytes into a region of size 5 [-Wformat-overflow=] sprintf (szCustX, "%d", displayModeInfo [NUM_DISPLAY_MODES].w); ^~~~ screenresmenu.cpp:205:21: note: directive argument in the range [-32768, 32767] screenresmenu.cpp:205:11: note: 'sprintf' output between 2 and 7 bytes into a destination of size 5 sprintf (szCustX, "%d", displayModeInfo [NUM_DISPLAY_MODES].w); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ screenresmenu.cpp:209:21: warning: '%d' directive writing between 1 and 6 bytes into a region of size 5 [-Wformat-overflow=] sprintf (szCustY, "%d", displayModeInfo [NUM_DISPLAY_MODES].h); ^~~~ screenresmenu.cpp:209:21: note: directive argument in the range [-32768, 32767] screenresmenu.cpp:209:11: note: 'sprintf' output between 2 and 7 bytes into a destination of size 5 sprintf (szCustY, "%d", displayModeInfo [NUM_DISPLAY_MODES].h); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/screenresmenu.Tpo .deps/screenresmenu.Po mv -f .deps/rendermenu.Tpo .deps/rendermenu.Po mv -f .deps/menu.Tpo .deps/menu.Po In file included from ../include/gr.h:20, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/netmenu.Tpo .deps/netmenu.Po In file included from soundmenu.cpp:59: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from soundmenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from soundmenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from soundmenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from soundmenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from soundmenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from soundmenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovie]': ../include/movie.h:73:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from soundmenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMovieLib]': ../include/movie.h:105:20: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from soundmenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from soundmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from soundmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from soundmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from soundmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from soundmenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from soundmenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from soundmenu.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from soundmenu.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from soundmenu.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from soundmenu.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from soundmenu.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from soundmenu.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from soundmenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovie]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovie]' ../include/movie.h:73:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMovie'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from soundmenu.cpp:48: ../include/movie.h:41:7: note: 'class CMovie' declared here class CMovie { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMovieLib]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMovieLib]' ../include/movie.h:105:20: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CMovieLib' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from soundmenu.cpp:48: ../include/movie.h:63:7: note: 'class CMovieLib' declared here class CMovieLib { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from soundmenu.cpp:59: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from soundmenu.cpp:59: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from soundmenu.cpp:65: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from soundmenu.cpp:21: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from soundmenu.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from soundmenu.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from soundmenu.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from soundmenu.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from soundmenu.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/menu.h:82, from soundmenu.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from soundmenu.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/soundmenu.Tpo .deps/soundmenu.Po rm -f libmenus.a ar cru libmenus.a mainmenu.o cockpitmenu.o configmenu.o detailsmenu.o effectsmenu.o entropymenu.o fileselector.o gameplaymenu.o inputdevicemenu.o listbox.o menuitem.o messagebox.o miscmenu.o monsterballmenu.o menu.o menubackground.o msgbox.o netgamebrowser.o netgamehelp.o netgameinfo.o netmenu.o netplayerbrowser.o newgamemenu.o physicsmenu.o rendermenu.o screenresmenu.o soundmenu.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib libmenus.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/menus' Making all in misc gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/misc' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT error.o -MD -MP -MF .deps/error.Tpo -c -o error.o error.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT hash.o -MD -MP -MF .deps/hash.Tpo -c -o hash.o hash.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT strio.o -MD -MP -MF .deps/strio.Tpo -c -o strio.o strio.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT strutil.o -MD -MP -MF .deps/strutil.Tpo -c -o strutil.o strutil.cpp mv -f .deps/strio.Tpo .deps/strio.Po In file included from ../include/gr.h:20, from ../include/error.h:19, from strutil.cpp:24: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/error.h:19, from strutil.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/error.h:19, from strutil.cpp:24: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from strutil.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from strutil.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from strutil.cpp:24: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from strutil.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from strutil.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from strutil.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from error.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from error.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from hash.cpp:25: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/error.h:19, from hash.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from error.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/error.h:19, from hash.cpp:25: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/strutil.Tpo .deps/strutil.Po In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hash.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from hash.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hash.cpp:25: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from hash.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/error.h:19, from hash.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/error.h:19, from hash.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ mv -f .deps/hash.Tpo .deps/hash.Po In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from error.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from error.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from error.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from error.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from error.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from error.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from error.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from error.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from error.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from error.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from error.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from error.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from error.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from error.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from error.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from error.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from error.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from error.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from error.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from error.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from error.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from error.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from error.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ error.cpp: In function 'void XmMessageBox(const char*, bool)': error.cpp:365:19: warning: 'topWid' may be used uninitialized in this function [-Wmaybe-uninitialized] XtUnrealizeWidget (topWid); ~~~~~~~~~~~~~~~~~~^~~~~~~~ error.cpp:343:18: warning: 'nCols' may be used uninitialized in this function [-Wmaybe-uninitialized] XmMessageDialog (pszMsg, nRows, nCols, bError); ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/error.Tpo .deps/error.Po rm -f libmisc.a ar cru libmisc.a error.o hash.o strio.o strutil.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib libmisc.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/misc' Making all in models gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/models' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT aseread.o -MD -MP -MF .deps/aseread.Tpo -c -o aseread.o aseread.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT hiresmodels.o -MD -MP -MF .deps/hiresmodels.Tpo -c -o hiresmodels.o hiresmodels.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT oofmath.o -MD -MP -MF .deps/oofmath.Tpo -c -o oofmath.o oofmath.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT oofread.o -MD -MP -MF .deps/oofread.Tpo -c -o oofread.o oofread.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT pof.o -MD -MP -MF .deps/pof.Tpo -c -o pof.o pof.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from pof.cpp:2: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from pof.cpp:2: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from pof.cpp:2: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from oofmath.cpp:10: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from oofmath.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from oofmath.cpp:10: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hiresmodels.cpp:5: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hiresmodels.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from hiresmodels.cpp:5: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from oofread.cpp:10: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from oofread.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from oofread.cpp:10: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from pof.cpp:2: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from pof.cpp:2: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from pof.cpp:2: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from pof.cpp:2: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from pof.cpp:2: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from pof.cpp:2: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from pof.cpp:2: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aseread.cpp:10: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aseread.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from pof.cpp:2: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from aseread.cpp:10: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from pof.cpp:2: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from pof.cpp:2: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from pof.cpp:2: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from pof.cpp:2: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from pof.cpp:2: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from pof.cpp:2: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from pof.cpp:2: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from pof.cpp:2: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from pof.cpp:2: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from pof.cpp:2: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from pof.cpp:2: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from pof.cpp:2: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from pof.cpp:2: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from pof.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from pof.cpp:2: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from oofmath.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from oofmath.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oofmath.cpp:10: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oofmath.cpp:10: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oofmath.cpp:10: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from oofmath.cpp:10: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from oofmath.cpp:10: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from oofmath.cpp:10: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from oofmath.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ mv -f .deps/pof.Tpo .deps/pof.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT polymodel.o -MD -MP -MF .deps/polymodel.Tpo -c -o polymodel.o polymodel.cpp hiresmodels.cpp: In function 'short int LoadOOFModel(OOF::CModel*, short int, int)': hiresmodels.cpp:261:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (gameData.models.modelToOOF [bCustom != 0][nModel]) ^~ hiresmodels.cpp:264:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' short j = sizeofa (replacementModels); ^~~~~ hiresmodels.cpp: In function 'short int LoadASEModel(ASE::CModel*, short int, int)': hiresmodels.cpp:294:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (gameData.models.modelToASE [bCustom != 0][nModel]) ^~ hiresmodels.cpp:297:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' short j = sizeofa (replacementModels); ^~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hiresmodels.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hiresmodels.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hiresmodels.cpp:5: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hiresmodels.cpp:5: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hiresmodels.cpp:5: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hiresmodels.cpp:5: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hiresmodels.cpp:5: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from hiresmodels.cpp:5: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hiresmodels.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hiresmodels.cpp:5: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hiresmodels.cpp:5: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hiresmodels.cpp:5: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hiresmodels.cpp:5: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hiresmodels.cpp:5: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from hiresmodels.cpp:5: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hiresmodels.cpp:5: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hiresmodels.cpp:10: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hiresmodels.cpp:5: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from hiresmodels.cpp:5: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hiresmodels.cpp:5: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hiresmodels.cpp:5: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hiresmodels.cpp:10: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hiresmodels.cpp:5: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from hiresmodels.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hiresmodels.cpp:5: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ oofread.cpp: In member function 'void OOF::CSubModel::SetProps(char*)': oofread.cpp:1012:6: warning: variable 'nValues' set but not used [-Wunused-but-set-variable] int nValues; ^~~~~~~ oofread.cpp:1029:6: warning: variable 'nValues' set but not used [-Wunused-but-set-variable] int nValues; ^~~~~~~ oofread.cpp:1047:6: warning: variable 'nValues' set but not used [-Wunused-but-set-variable] int nValues; ^~~~~~~ oofread.cpp: In member function 'int OOF::CModel::Read(char*, short int, int, int)': oofread.cpp:1561:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (m_nModel >= 0) ^~ oofread.cpp:1564:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CFile cf; ^~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from oofread.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from oofread.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from polymodel.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from polymodel.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from polymodel.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oofread.cpp:10: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oofread.cpp:10: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oofread.cpp:10: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from oofread.cpp:10: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from oofread.cpp:10: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from oofread.cpp:10: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from oofread.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oofread.cpp:10: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oofread.cpp:10: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oofread.cpp:10: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from oofread.cpp:10: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from oofread.cpp:10: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from oofread.cpp:10: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from oofread.cpp:10: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from oofread.cpp:17: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from oofread.cpp:10: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from oofread.cpp:10: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from oofread.cpp:10: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from oofread.cpp:10: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from oofread.cpp:17: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from oofread.cpp:10: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from oofread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from oofread.cpp:10: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oofmath.cpp:10: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oofmath.cpp:10: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oofmath.cpp:10: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from oofmath.cpp:10: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from oofmath.cpp:10: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from oofmath.cpp:10: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from oofmath.cpp:10: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from oofmath.cpp:19: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from oofmath.cpp:10: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from oofmath.cpp:10: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from oofmath.cpp:10: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from oofmath.cpp:10: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from oofmath.cpp:19: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ aseread.cpp: In member function 'int ASE::CModel::ReadBinary(short int, int, time_t)': aseread.cpp:932:10: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] return NULL; ^~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aseread.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aseread.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aseread.cpp:10: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aseread.cpp:10: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aseread.cpp:10: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aseread.cpp:10: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aseread.cpp:10: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from aseread.cpp:10: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from oofmath.cpp:10: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from oofmath.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from oofmath.cpp:10: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from aseread.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aseread.cpp:10: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aseread.cpp:10: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from aseread.cpp:10: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aseread.cpp:10: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aseread.cpp:10: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from aseread.cpp:10: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from aseread.cpp:10: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from aseread.cpp:16: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aseread.cpp:10: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from aseread.cpp:10: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from aseread.cpp:10: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aseread.cpp:10: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from aseread.cpp:16: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from aseread.cpp:10: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from aseread.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from aseread.cpp:10: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/oofmath.Tpo .deps/oofmath.Po polymodel.cpp: In member function 'void CPolyModel::Parse(const char*, tRobotInfo*)': polymodel.cpp:321:11: warning: variable 'gun_used' set but not used [-Wunused-but-set-variable] ubyte gun_used [MAX_GUNS]; ^~~~~~~~ polymodel.cpp: In member function 'int CPolyModel::Read(int, CFile&)': polymodel.cpp:610:6: warning: variable 'nElement' set but not used [-Wunused-but-set-variable] int nElement, nBlocks; ^~~~~~~~ polymodel.cpp:610:16: warning: variable 'nBlocks' set but not used [-Wunused-but-set-variable] int nElement, nBlocks; ^~~~~~~ polymodel.cpp: In member function 'void CModelData::Prepare()': polymodel.cpp:803:26: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&o, 0, sizeof (o)); ^ In file included from ../include/descent.h:99, from polymodel.cpp:22: ../include/object.h:713:7: note: 'class CObject' declared here class CObject : public CObjectInfo { ^~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from polymodel.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from polymodel.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from polymodel.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from polymodel.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from polymodel.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from polymodel.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from polymodel.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from polymodel.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from polymodel.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from polymodel.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from polymodel.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from polymodel.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from polymodel.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from polymodel.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from polymodel.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from polymodel.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from polymodel.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from polymodel.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from polymodel.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from polymodel.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from polymodel.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from polymodel.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from polymodel.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from polymodel.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from polymodel.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ oofread.cpp: In function 'bool OOF_ReadVertList(CFile&, CArray&, int, CFloatVector*, CFloatVector*)': oofread.cpp:209:18: warning: ']' directive writing 1 byte into a region of size between 0 and 9 [-Wformat-overflow=] sprintf (szId, "vertList [%d]", i); ^~~~~~~~~~~~~~~ oofread.cpp:209:11: note: 'sprintf' output between 13 and 22 bytes into a destination of size 20 sprintf (szId, "vertList [%d]", i); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/hiresmodels.Tpo .deps/hiresmodels.Po mv -f .deps/polymodel.Tpo .deps/polymodel.Po In file included from ../include/descent.h:25, from oofread.cpp:10: In function '_T& CArray<_T>::operator=(_T*) [with _T = int]', inlined from 'int OOF::CSubModel::Read(CFile&, OOF::CModel*, int)' at oofread.cpp:1168:13: ../include/carray.h:238:12: warning: argument 2 null where non-null expected [-Wnonnull] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from oofread.cpp:3: /usr/include/string.h: In member function 'int OOF::CSubModel::Read(CFile&, OOF::CModel*, int)': /usr/include/string.h:63:7: note: in a call to function 'void* memcpy(void*, const void*, size_t)' declared here void *memcpy(void * __restrict, const void * __restrict, size_t); ^~~~~~ oofread.cpp:1205:20: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf (szId, "pfAlpha [%d]", i); ^~~~~~~~~~~~~~ oofread.cpp:1205:13: note: 'sprintf' output between 12 and 21 bytes into a destination of size 20 sprintf (szId, "pfAlpha [%d]", i); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/aseread.Tpo .deps/aseread.Po mv -f .deps/oofread.Tpo .deps/oofread.Po rm -f libmodels.a ar cru libmodels.a aseread.o hiresmodels.o oofmath.o oofread.o pof.o polymodel.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib libmodels.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/models' Making all in network gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/network' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT ipx_mcast4.o -MD -MP -MF .deps/ipx_mcast4.Tpo -c -o ipx_mcast4.o `test -f './linux/ipx_mcast4.cpp' || echo './'`./linux/ipx_mcast4.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT linuxnet.o -MD -MP -MF .deps/linuxnet.Tpo -c -o linuxnet.o `test -f './linux/linuxnet.cpp' || echo './'`./linux/linuxnet.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT ipx_kali.o -MD -MP -MF .deps/ipx_kali.Tpo -c -o ipx_kali.o `test -f './linux/ipx_kali.cpp' || echo './'`./linux/ipx_kali.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT ukali.o -MD -MP -MF .deps/ukali.Tpo -c -o ukali.o `test -f './linux/ukali.cpp' || echo './'`./linux/ukali.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT autodl.o -MD -MP -MF .deps/autodl.Tpo -c -o autodl.o autodl.cpp ./linux/ukali.cpp: In function 'int KaliOpenSocket(ushort)': ./linux/ukali.cpp:244:43: warning: argument to 'sizeof' in 'char* strncpy(char*, const char*, size_t)' call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess] strncpy(&opendata[7], KALI_PROCESS_NAME, sizeof(KALI_PROCESS_NAME)); ^~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/ipx_kali.Tpo .deps/ipx_kali.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT banlist.o -MD -MP -MF .deps/banlist.Tpo -c -o banlist.o banlist.cpp ./linux/ukali.cpp:244:9: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' forming offset [17, 19] is out of the bounds [0, 16] of object 'opendata' with type 'char [16]' [-Warray-bounds] strncpy(&opendata[7], KALI_PROCESS_NAME, sizeof(KALI_PROCESS_NAME)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./linux/ukali.cpp:235:7: note: 'opendata' declared here char opendata[16]; ^~~~~~~~ mv -f .deps/ukali.Tpo .deps/ukali.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT multi.o -MD -MP -MF .deps/multi.Tpo -c -o multi.o multi.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ./linux/linuxnet.cpp:36: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ./linux/linuxnet.cpp:36: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from ./linux/linuxnet.cpp:36: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ./linux/linuxnet.cpp:36: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ./linux/linuxnet.cpp:36: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./linux/linuxnet.cpp:36: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./linux/linuxnet.cpp:36: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./linux/linuxnet.cpp:36: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ./linux/linuxnet.cpp:36: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ./linux/linuxnet.cpp:36: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ./linux/linuxnet.cpp:36: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ./linux/linuxnet.cpp:36: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./linux/linuxnet.cpp:36: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./linux/linuxnet.cpp:36: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./linux/linuxnet.cpp:36: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ./linux/linuxnet.cpp:36: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ./linux/linuxnet.cpp:36: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ./linux/linuxnet.cpp:36: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./linux/linuxnet.cpp:36: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ./linux/linuxnet.cpp:57: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from autodl.cpp:16: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from autodl.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from autodl.cpp:16: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ./linux/ipx_mcast4.cpp:26: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ./linux/ipx_mcast4.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from ./linux/ipx_mcast4.cpp:26: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from banlist.cpp:8: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from banlist.cpp:8: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from banlist.cpp:8: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ./linux/linuxnet.cpp:36: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ./linux/linuxnet.cpp:36: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ./linux/linuxnet.cpp:36: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ./linux/linuxnet.cpp:36: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ./linux/linuxnet.cpp:57: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ./linux/linuxnet.cpp:36: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/linuxnet.cpp:36: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./linux/linuxnet.cpp:36: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ autodl.cpp: In member function 'int CDownloadManager::DelUploadDest(int)': autodl.cpp:170:95: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'tUploadDest' {aka 'struct tUploadDest'}; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_uploadDests + i, m_uploadDests + i + 1, (m_nUploadDests - i) * sizeof (tUploadDest)); ^ In file included from autodl.cpp:29: ../include/autodl.h:17:16: note: 'tUploadDest' {aka 'struct tUploadDest'} declared here typedef struct tUploadDest { ^~~~~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from autodl.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from autodl.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from autodl.cpp:16: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from autodl.cpp:16: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from autodl.cpp:16: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from autodl.cpp:16: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from autodl.cpp:16: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from autodl.cpp:16: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from autodl.cpp:16: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from autodl.cpp:16: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from autodl.cpp:16: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from autodl.cpp:16: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from autodl.cpp:16: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from autodl.cpp:16: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ./linux/ipx_mcast4.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ./linux/ipx_mcast4.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from autodl.cpp:16: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from autodl.cpp:16: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from autodl.cpp:20: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from autodl.cpp:16: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./linux/ipx_mcast4.cpp:26: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from autodl.cpp:16: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./linux/ipx_mcast4.cpp:26: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from autodl.cpp:16: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:106, from ./linux/ipx_mcast4.cpp:26: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from autodl.cpp:16: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from autodl.cpp:20: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from autodl.cpp:16: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from autodl.cpp:16: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from autodl.cpp:16: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ./linux/ipx_mcast4.cpp:26: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ./linux/ipx_mcast4.cpp:26: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ./linux/ipx_mcast4.cpp:26: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ./linux/ipx_mcast4.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from multi.cpp:24: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from multi.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./linux/ipx_mcast4.cpp:26: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./linux/ipx_mcast4.cpp:26: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ./linux/ipx_mcast4.cpp:26: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from multi.cpp:24: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ./linux/ipx_mcast4.cpp:26: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ./linux/ipx_mcast4.cpp:26: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ./linux/ipx_mcast4.cpp:26: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./linux/ipx_mcast4.cpp:26: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./linux/ipx_mcast4.cpp:30: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ./linux/ipx_mcast4.cpp:26: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ./linux/ipx_mcast4.cpp:26: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ./linux/ipx_mcast4.cpp:26: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ./linux/ipx_mcast4.cpp:26: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./linux/ipx_mcast4.cpp:30: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ./linux/ipx_mcast4.cpp:26: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ./linux/ipx_mcast4.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./linux/ipx_mcast4.cpp:26: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/ipx_mcast4.Tpo .deps/ipx_mcast4.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT multibot.o -MD -MP -MF .deps/multibot.Tpo -c -o multibot.o multibot.cpp mv -f .deps/linuxnet.Tpo .deps/linuxnet.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT multimsg.o -MD -MP -MF .deps/multimsg.Tpo -c -o multimsg.o multimsg.cpp autodl.cpp: In member function 'int CDownloadManager::UploadOpenFile(int, const char*)': autodl.cpp:254:18: warning: '%s' directive writing up to 8 bytes into a region of size between 0 and 255 [-Wformat-overflow=] sprintf (szFile, "%s%s%s%s", ^~~~~~~~~~ autodl.cpp:256:4: netGame.szMissionName, pszExt); ~~~~~~~~~~~~~~~~~~~~~ autodl.cpp:254:9: note: 'sprintf' output 1 or more bytes (assuming 264) into a destination of size 255 sprintf (szFile, "%s%s%s%s", ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ gameFolders.szMissionDirs [0], (l && (gameFolders.szMissionDirs [0][l-1] != '/')) ? "/" : "", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netGame.szMissionName, pszExt); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from banlist.cpp:8: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from banlist.cpp:8: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from banlist.cpp:8: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from banlist.cpp:8: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from banlist.cpp:8: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ multi.cpp: In function 'void MultiCapObjects()': multi.cpp:2211:6: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses] if (!LOCALPLAYER.primaryWeaponFlags & (1 << i)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from banlist.cpp:8: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from banlist.cpp:8: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from banlist.cpp:8: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from banlist.cpp:8: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ multi.cpp: In function 'void MultiDoGuided(char*)': multi.cpp:3511:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation] else if (++fun >= 50) ^~ multi.cpp:3513:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (buf [2]) { ^~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from banlist.cpp:8: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from banlist.cpp:8: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from banlist.cpp:8: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from banlist.cpp:8: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from banlist.cpp:8: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from banlist.cpp:8: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from banlist.cpp:8: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBanListEntry]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CBanListEntry]' ../include/banlist.h:20:15: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CBanListEntry'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from banlist.cpp:12: ../include/banlist.h:10:7: note: 'class CBanListEntry' declared here class CBanListEntry { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from banlist.cpp:8: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from banlist.cpp:8: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from banlist.cpp:8: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ multi.cpp: In function 'void MultiQuickSoundHack(int)': multi.cpp:4824:14: warning: variable 'j' set but not used [-Wunused-but-set-variable] int l, i, j; ^ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from banlist.cpp:8: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBanListEntry]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBanListEntry]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CBanListEntry]' ../include/banlist.h:20:15: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CBanListEntry'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from banlist.cpp:12: ../include/banlist.h:10:7: note: 'class CBanListEntry' declared here class CBanListEntry { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from banlist.cpp:8: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from banlist.cpp:8: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from banlist.cpp:8: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from multi.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from multi.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from multi.cpp:24: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from multi.cpp:24: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from multi.cpp:24: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from multi.cpp:24: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from multi.cpp:24: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from multi.cpp:24: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from multi.cpp:29: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from multi.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from multi.cpp:24: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from multi.cpp:24: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from multi.cpp:24: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from multi.cpp:24: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from multi.cpp:24: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from multi.cpp:24: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from multi.cpp:24: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from multi.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from multi.cpp:29: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from multi.cpp:24: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from multi.cpp:24: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from multi.cpp:24: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from multi.cpp:24: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from multi.cpp:24: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from multi.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from multi.cpp:24: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from multi.cpp:24: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from multi.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from multi.cpp:24: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from multibot.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from multibot.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from multibot.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/banlist.Tpo .deps/banlist.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT netmisc.o -MD -MP -MF .deps/netmisc.Tpo -c -o netmisc.o netmisc.cpp autodl.cpp: In member function 'int CDownloadManager::Download(ubyte*)': autodl.cpp:440:21: warning: '%s' directive writing up to 254 bytes into a region of size between 0 and 254 [-Wformat-overflow=] sprintf (szDest, "%s/%s%s", hogFileManager.m_files.MsnHogFiles.szName, szFile [0], szExt); ^~~~~~~~~ ~~~~~~~~~~ autodl.cpp:440:12: note: 'sprintf' output between 2 and 764 bytes into a destination of size 255 sprintf (szDest, "%s/%s%s", hogFileManager.m_files.MsnHogFiles.szName, szFile [0], szExt); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ autodl.cpp:438:21: warning: '%s' directive writing up to 1 bytes into a region of size between 0 and 254 [-Wformat-overflow=] sprintf (szDest, "%s/%s%s", gameFolders.szMissionDownloadDir, *gameFolders.szMissionDir ? "/" : "", pszFile); ^~~~~~~~~ autodl.cpp:438:12: note: 'sprintf' output 2 or more bytes (assuming 257) into a destination of size 255 sprintf (szDest, "%s/%s%s", gameFolders.szMissionDownloadDir, *gameFolders.szMissionDir ? "/" : "", pszFile); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from multimsg.cpp:11: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from multimsg.cpp:11: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from multimsg.cpp:11: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/autodl.Tpo .deps/autodl.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT network.o -MD -MP -MF .deps/network.Tpo -c -o network.o network.cpp multibot.cpp: In function 'void MultiDoRobotFire(char*)': multibot.cpp:636:8: warning: variable 'nPlayer' set but not used [-Wunused-but-set-variable] int nPlayer, nGun; ^~~~~~~ multibot.cpp: In function 'void MultiDoRobotExplode(char*)': multibot.cpp:728:6: warning: variable 'nPlayer' set but not used [-Wunused-but-set-variable] int nPlayer, nRobot, rval, bufP = 1; ^~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from multibot.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from multibot.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from multibot.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from multibot.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from multibot.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from multibot.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from multibot.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from multibot.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from multibot.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from multibot.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from multibot.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from multibot.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from multibot.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from multibot.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from multibot.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from multibot.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from multibot.cpp:24: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from multibot.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from multibot.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from multibot.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from multibot.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from multibot.cpp:24: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from multibot.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from multibot.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from multibot.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network.cpp:31: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network.cpp:31: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from network.cpp:31: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from multimsg.cpp:11: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from multimsg.cpp:11: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from multimsg.cpp:11: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from multimsg.cpp:11: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from multimsg.cpp:11: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from multimsg.cpp:11: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from multimsg.cpp:11: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from multimsg.cpp:11: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from multimsg.cpp:11: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from multimsg.cpp:11: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from multimsg.cpp:11: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from multimsg.cpp:11: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from multimsg.cpp:11: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from multimsg.cpp:11: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from multimsg.cpp:11: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from multimsg.cpp:11: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from multimsg.cpp:15: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBanListEntry]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CBanListEntry]' ../include/banlist.h:20:15: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CBanListEntry'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from multimsg.cpp:19: ../include/banlist.h:10:7: note: 'class CBanListEntry' declared here class CBanListEntry { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from multimsg.cpp:11: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from multimsg.cpp:11: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from multimsg.cpp:11: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from multimsg.cpp:11: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from multimsg.cpp:15: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBanListEntry]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBanListEntry]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CBanListEntry]' ../include/banlist.h:20:15: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CBanListEntry'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from multimsg.cpp:19: ../include/banlist.h:10:7: note: 'class CBanListEntry' declared here class CBanListEntry { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from multimsg.cpp:11: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from multimsg.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from multimsg.cpp:11: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/multibot.Tpo .deps/multibot.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT network_init.o -MD -MP -MF .deps/network_init.Tpo -c -o network_init.o network_init.cpp In file included from netmisc.cpp:2: netmisc-new.cpp: In member function 'void CSegment::CheckSum(uint&, uint&)': netmisc-new.cpp:553:7: warning: variable 's1' set but not used [-Wunused-but-set-variable] uint s1, s2; ^~ netmisc-new.cpp:553:11: warning: variable 's2' set but not used [-Wunused-but-set-variable] uint s1, s2; ^~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from netmisc-new.cpp:22, from netmisc.cpp:2: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/netmisc.Tpo .deps/netmisc.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT network_join.o -MD -MP -MF .deps/network_join.Tpo -c -o network_join.o network_join.cpp network.cpp: At global scope: network.cpp:109:2: warning: narrowing conversion of '4294967295' from 'unsigned int' to 'int' inside { } is ill-formed in C++11 [-Wnarrowing] }; ^ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network.cpp:31: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network.cpp:31: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network.cpp:31: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network.cpp:31: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network.cpp:31: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network.cpp:31: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network.cpp:31: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from network.cpp:31: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network.cpp:31: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network.cpp:31: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network.cpp:31: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network.cpp:31: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network.cpp:31: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network.cpp:31: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from network.cpp:31: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network.cpp:31: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from network.cpp:37: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network.cpp:31: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from network.cpp:31: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network.cpp:31: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network.cpp:31: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from network.cpp:37: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network.cpp:31: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from network.cpp:31: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network.cpp:31: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/multimsg.Tpo .deps/multimsg.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT network_lib.o -MD -MP -MF .deps/network_lib.Tpo -c -o network_lib.o network_lib.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_init.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_init.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from network_init.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/network.Tpo .deps/network.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT network_phandler.o -MD -MP -MF .deps/network_phandler.Tpo -c -o network_phandler.o network_phandler.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_join.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_join.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from network_join.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_lib.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_lib.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from network_lib.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_init.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_init.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_init.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_init.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_init.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_init.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_init.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from network_init.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_init.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_init.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_init.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_init.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_init.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_init.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from network_init.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network_init.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from network_init.cpp:26: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_init.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from network_init.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_init.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_init.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from network_init.cpp:26: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_init.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_init.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network_init.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_phandler.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_phandler.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from network_phandler.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ network_join.cpp: In function 'void NetworkDisconnectPlayer(int)': network_join.cpp:168:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (short i = 0; i < networkData.nJoining; i++) ^~~ network_join.cpp:171:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' NetworkResetSyncStates (); ^~~~~~~~~~~~~~~~~~~~~~ network_join.cpp: In function 'void NetworkNewPlayer(tSequencePacket*)': network_join.cpp:183:6: warning: variable 'nObject' set but not used [-Wunused-but-set-variable] int nObject; ^~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_phandler.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_phandler.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_phandler.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_phandler.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_phandler.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_phandler.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_phandler.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from network_phandler.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_phandler.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_phandler.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_phandler.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_phandler.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_phandler.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_phandler.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_join.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_join.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_join.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_join.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_join.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_join.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_join.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from network_join.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from network_join.cpp:33: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_join.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_join.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_join.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_join.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_join.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_join.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from network_join.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network_join.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from network_join.cpp:29: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from network_join.cpp:33: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_join.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBanListEntry]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CBanListEntry]' ../include/banlist.h:20:15: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CBanListEntry'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network_join.cpp:36: ../include/banlist.h:10:7: note: 'class CBanListEntry' declared here class CBanListEntry { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_join.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from network_join.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_join.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_join.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from network_join.cpp:29: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_join.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBanListEntry]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBanListEntry]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CBanListEntry]' ../include/banlist.h:20:15: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CBanListEntry'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network_join.cpp:36: ../include/banlist.h:10:7: note: 'class CBanListEntry' declared here class CBanListEntry { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_join.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_join.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network_join.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_lib.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_lib.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_lib.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_lib.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_lib.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_lib.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ network_init.cpp: In function 'int InitAutoNetGame()': network_init.cpp:357:10: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 16 bytes from a string of length 80 [-Wstringop-truncation] strncpy (mpParams.szGameName, gameData.multiplayer.autoNG.szName, sizeof (mpParams.szGameName)); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from network_phandler.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network_phandler.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from network_phandler.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBanListEntry]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CBanListEntry]' ../include/banlist.h:20:15: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CBanListEntry'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network_phandler.cpp:32: ../include/banlist.h:10:7: note: 'class CBanListEntry' declared here class CBanListEntry { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_phandler.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from network_phandler.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_phandler.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_phandler.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from network_phandler.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBanListEntry]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBanListEntry]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CBanListEntry]' ../include/banlist.h:20:15: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CBanListEntry'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network_phandler.cpp:32: ../include/banlist.h:10:7: note: 'class CBanListEntry' declared here class CBanListEntry { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_phandler.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_phandler.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network_phandler.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_lib.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from network_lib.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_lib.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_lib.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_lib.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_lib.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_lib.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_lib.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from network_lib.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network_lib.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from network_lib.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_lib.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from network_lib.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_lib.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_lib.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from network_lib.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_lib.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_lib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network_lib.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/network_init.Tpo .deps/network_init.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT network_process.o -MD -MP -MF .deps/network_process.Tpo -c -o network_process.o network_process.cpp mv -f .deps/network_join.Tpo .deps/network_join.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT network_read.o -MD -MP -MF .deps/network_read.Tpo -c -o network_read.o network_read.cpp mv -f .deps/network_phandler.Tpo .deps/network_phandler.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT network_send.o -MD -MP -MF .deps/network_send.Tpo -c -o network_send.o network_send.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_process.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_process.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from network_process.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_send.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_send.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from network_send.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_read.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_read.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from network_read.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/multi.Tpo .deps/multi.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT network_sync.o -MD -MP -MF .deps/network_sync.Tpo -c -o network_sync.o network_sync.cpp In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_process.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_process.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_process.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_process.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_process.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_process.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_process.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from network_process.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_process.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ network_send.cpp: In function 'void NetworkSendData(ubyte*, int, int)': network_send.cpp:527:7: warning: variable 'bCheck' set but not used [-Wunused-but-set-variable] char bCheck; ^~~~~~ mv -f .deps/network_lib.Tpo .deps/network_lib.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT tracker.o -MD -MP -MF .deps/tracker.Tpo -c -o tracker.o tracker.cpp In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_send.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_send.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_process.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_process.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_process.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_process.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_process.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_send.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_send.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from network_process.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_send.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network_process.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from network_process.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_process.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from network_process.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_send.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_process.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_process.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_send.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from network_process.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_process.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_process.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network_process.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from network_send.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_send.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_send.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_send.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_send.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_send.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_send.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from network_send.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network_send.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from network_send.cpp:29: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_send.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from network_send.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_send.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_send.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from network_send.cpp:29: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_send.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_send.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network_send.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_sync.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_sync.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from network_sync.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ network_read.cpp: In function 'void NetworkReadSyncPacket(tNetgameInfo*, int)': network_read.cpp:117:9: warning: variable 'h' set but not used [-Wunused-but-set-variable] ushort h; ^ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_read.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_read.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_read.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_read.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_read.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_read.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_read.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from network_read.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_read.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_read.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_read.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_read.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_read.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_read.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from network_read.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network_read.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from network_read.cpp:29: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_read.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from network_read.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_read.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_read.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from network_read.cpp:29: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_read.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_read.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network_read.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from tracker.cpp:20: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from tracker.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from tracker.cpp:20: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/network_send.Tpo .deps/network_send.Po mv -f .deps/network_process.Tpo .deps/network_process.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT udp_interface.o -MD -MP -MF .deps/udp_interface.Tpo -c -o udp_interface.o udp_interface.cpp mv -f .deps/network_read.Tpo .deps/network_read.Po network_sync.cpp: In function 'int NetworkSyncPoll(CMenu&, int&, int, int)': network_sync.cpp:388:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ network_sync.cpp:391:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int nPackets = NetworkListen (); ^~~ network_sync.cpp: In function 'int NetworkRequestPoll(CMenu&, int&, int, int)': network_sync.cpp:679:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ network_sync.cpp:682:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int i = 0; ^~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_sync.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_sync.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_sync.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_sync.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_sync.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_sync.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_sync.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from network_sync.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from network_sync.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_sync.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_sync.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from network_sync.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_sync.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_sync.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from network_sync.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network_sync.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from network_sync.cpp:29: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_sync.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from network_sync.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from network_sync.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_sync.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from network_sync.cpp:29: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from network_sync.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from network_sync.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from network_sync.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ tracker.cpp: In member function 'int CTracker::GetServerFromList(int)': tracker.cpp:177:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!m_bUse) ^~ tracker.cpp:180:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' tServerListTable *pslt = serverListTable; ^~~~~~~~~~~~~~~~ tracker.cpp: In member function 'int CTracker::IsTracker(uint, ushort)': tracker.cpp:197:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!m_bUse) ^~ tracker.cpp:200:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int i; ^~~ tracker.cpp: In function 'int TrackerPoll(CMenu&, int&, int, int)': tracker.cpp:262:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nState) ^~ tracker.cpp:265:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' time_t t; ^~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from tracker.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from tracker.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from tracker.cpp:20: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from tracker.cpp:20: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from tracker.cpp:20: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from tracker.cpp:20: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from tracker.cpp:20: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from tracker.cpp:20: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from tracker.cpp:20: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from tracker.cpp:20: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from tracker.cpp:20: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from tracker.cpp:20: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from tracker.cpp:20: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from tracker.cpp:20: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from tracker.cpp:20: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from tracker.cpp:20: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from tracker.cpp:24: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from udp_interface.cpp:98: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from udp_interface.cpp:98: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from udp_interface.cpp:98: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from tracker.cpp:20: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from tracker.cpp:20: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from tracker.cpp:20: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from tracker.cpp:20: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from tracker.cpp:24: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from tracker.cpp:20: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from tracker.cpp:20: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from tracker.cpp:20: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ udp_interface.cpp: In function 'int UDPReceivePacket(ipx_socket_t*, ubyte*, int, ipx_recv_data*)': udp_interface.cpp:1124:15: warning: variable 'clientP' set but not used [-Wunused-but-set-variable] CClient* clientP; ^~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from udp_interface.cpp:98: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from udp_interface.cpp:98: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from udp_interface.cpp:98: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from udp_interface.cpp:98: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from udp_interface.cpp:98: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from udp_interface.cpp:98: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from udp_interface.cpp:98: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from udp_interface.cpp:98: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from udp_interface.cpp:98: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from udp_interface.cpp:98: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from udp_interface.cpp:98: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from udp_interface.cpp:98: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from udp_interface.cpp:98: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from udp_interface.cpp:98: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from udp_interface.cpp:98: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from udp_interface.cpp:98: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from udp_interface.cpp:99: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from udp_interface.cpp:98: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from udp_interface.cpp:98: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from udp_interface.cpp:98: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from udp_interface.cpp:98: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from udp_interface.cpp:99: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from udp_interface.cpp:98: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from udp_interface.cpp:75: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from udp_interface.cpp:98: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/tracker.Tpo .deps/tracker.Po mv -f .deps/network_sync.Tpo .deps/network_sync.Po mv -f .deps/udp_interface.Tpo .deps/udp_interface.Po rm -f libnetwork.a ar cru libnetwork.a ipx_mcast4.o linuxnet.o ipx_kali.o ukali.o autodl.o banlist.o multi.o multibot.o multimsg.o netmisc.o network.o network_init.o network_join.o network_lib.o network_phandler.o network_process.o network_read.o network_send.o network_sync.o tracker.o udp_interface.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib libnetwork.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/network' Making all in objects gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/objects' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT boss.o -MD -MP -MF .deps/boss.Tpo -c -o boss.o boss.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT createobject.o -MD -MP -MF .deps/createobject.Tpo -c -o createobject.o createobject.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT criticalhit.o -MD -MP -MF .deps/criticalhit.Tpo -c -o criticalhit.o criticalhit.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT effectobject.o -MD -MP -MF .deps/effectobject.Tpo -c -o effectobject.o effectobject.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT hostage.o -MD -MP -MF .deps/hostage.Tpo -c -o hostage.o hostage.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hostage.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hostage.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from hostage.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from createobject.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from createobject.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from createobject.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from boss.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from boss.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from boss.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hostage.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hostage.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hostage.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hostage.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hostage.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hostage.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hostage.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from hostage.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hostage.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hostage.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hostage.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hostage.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hostage.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hostage.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from hostage.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hostage.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from hostage.cpp:24: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hostage.cpp:21: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from hostage.cpp:21: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hostage.cpp:21: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hostage.cpp:21: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from hostage.cpp:24: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hostage.cpp:21: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from hostage.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hostage.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from effectobject.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from effectobject.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from effectobject.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from criticalhit.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from criticalhit.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from criticalhit.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from createobject.cpp:29: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from effectobject.cpp:29: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ mv -f .deps/hostage.Tpo .deps/hostage.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT marker.o -MD -MP -MF .deps/marker.Tpo -c -o marker.o marker.cpp effectobject.cpp: In member function 'void CObject::SetupSmoke()': effectobject.cpp:113:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if ((info.nType != OBJ_EFFECT) || (info.nId != SMOKE_ID)) ^~ effectobject.cpp:116:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' tParticleInfo* psi = &rType.particleInfo; ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from effectobject.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from effectobject.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from effectobject.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from effectobject.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from effectobject.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from effectobject.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from effectobject.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from effectobject.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectobject.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectobject.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectobject.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectobject.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from effectobject.cpp:30: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from effectobject.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from effectobject.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from effectobject.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from effectobject.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from effectobject.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from effectobject.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from effectobject.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectobject.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectobject.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectobject.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from effectobject.cpp:30: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from effectobject.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from effectobject.cpp:33: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from effectobject.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from effectobject.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from effectobject.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from effectobject.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from effectobject.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from effectobject.cpp:33: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from effectobject.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from effectobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effectobject.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/effectobject.Tpo .deps/effectobject.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT object.o -MD -MP -MF .deps/object.Tpo -c -o object.o object.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from marker.cpp:26: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from marker.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from marker.cpp:26: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from boss.cpp:29: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ boss.cpp: In member function 'void CBossData::Remove(short int)': boss.cpp:404:56: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_info [m_info.ToS ()], 0, sizeof (CBossInfo)); ^ In file included from boss.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ createobject.cpp: In function 'int CloneObject(CObject*)': createobject.cpp:328:39: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CObject'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (cloneP, objP, sizeof (CObject)); ^ In file included from ../include/descent.h:99, from createobject.cpp:23: ../include/object.h:713:7: note: 'class CObject' declared here class CObject : public CObjectInfo { ^~~~~~~ createobject.cpp: In function 'void ReleaseObject(short int)': createobject.cpp:514:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nObject <= 0) ^~ createobject.cpp:517:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int nParent; ^~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from createobject.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from createobject.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from createobject.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from createobject.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from createobject.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from createobject.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from createobject.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from object.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from object.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from object.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from criticalhit.cpp:29: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from criticalhit.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from criticalhit.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from criticalhit.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from criticalhit.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from criticalhit.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from criticalhit.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from criticalhit.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from createobject.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from criticalhit.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from createobject.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from createobject.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from createobject.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from createobject.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from criticalhit.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from criticalhit.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from createobject.cpp:30: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from criticalhit.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from criticalhit.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from criticalhit.cpp:30: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from createobject.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from criticalhit.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from createobject.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from createobject.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from createobject.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from criticalhit.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from criticalhit.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from criticalhit.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from createobject.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from createobject.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from criticalhit.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from criticalhit.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from createobject.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from createobject.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from createobject.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from createobject.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from createobject.cpp:30: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from createobject.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from createobject.cpp:33: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from createobject.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from createobject.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from createobject.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from createobject.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from createobject.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from createobject.cpp:33: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from createobject.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from createobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from createobject.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from boss.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from boss.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from boss.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from boss.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from boss.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from boss.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from boss.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from boss.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from boss.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from boss.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from boss.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from boss.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from boss.cpp:30: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Clear(ubyte, uint) [with _T = CBossInfo; ubyte = unsigned char; uint = unsigned int]': boss.cpp:353:15: required from here ../include/carray.h:110:12: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment [-Wclass-memaccess] memset (m_data.buffer, filler, sizeof (_T) * ((count < m_data.length) ? count : m_data.length)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from boss.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from boss.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from boss.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from boss.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from boss.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from marker.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from marker.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from marker.cpp:26: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from marker.cpp:26: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from marker.cpp:26: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from boss.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from boss.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from marker.cpp:26: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from marker.cpp:26: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from boss.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from boss.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from boss.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from boss.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from boss.cpp:30: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from marker.cpp:26: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from boss.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from boss.cpp:33: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBossInfo]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CBossInfo]' boss.cpp:342:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from boss.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from marker.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from boss.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from boss.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from boss.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from marker.cpp:26: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from boss.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from marker.cpp:26: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from marker.cpp:26: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from boss.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from boss.cpp:33: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBossInfo]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CBossInfo]' boss.cpp:342:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from boss.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from boss.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from boss.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from marker.cpp:26: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from marker.cpp:26: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from marker.cpp:26: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from marker.cpp:26: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from marker.cpp:33: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from marker.cpp:26: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from marker.cpp:26: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from marker.cpp:26: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from marker.cpp:26: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from object.cpp:29: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from marker.cpp:33: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from marker.cpp:26: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from marker.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from marker.cpp:26: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ object.cpp: In function 'int AllocObject()': object.cpp:655:32: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (objP, 0, sizeof (*objP)); ^ In file included from ../include/descent.h:99, from object.cpp:23: ../include/object.h:713:7: note: 'class CObject' declared here class CObject : public CObjectInfo { ^~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from object.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from object.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from object.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from object.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from object.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from criticalhit.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from object.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from criticalhit.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from object.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from criticalhit.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from criticalhit.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from criticalhit.cpp:30: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from criticalhit.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from criticalhit.cpp:33: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from object.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from criticalhit.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from criticalhit.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from criticalhit.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from criticalhit.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from criticalhit.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from criticalhit.cpp:33: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from criticalhit.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from criticalhit.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from criticalhit.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from object.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from object.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from object.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from object.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from object.cpp:30: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from object.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from object.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from object.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from object.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from object.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from object.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from object.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from object.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from object.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from object.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from object.cpp:30: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from object.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from object.cpp:33: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from object.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from object.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from object.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from object.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from object.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from object.cpp:33: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from object.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from object.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from object.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/criticalhit.Tpo .deps/criticalhit.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT objectio.o -MD -MP -MF .deps/objectio.Tpo -c -o objectio.o objectio.cpp mv -f .deps/createobject.Tpo .deps/createobject.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT player.o -MD -MP -MF .deps/player.Tpo -c -o player.o player.cpp mv -f .deps/boss.Tpo .deps/boss.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT playerdeath.o -MD -MP -MF .deps/playerdeath.Tpo -c -o playerdeath.o playerdeath.cpp mv -f .deps/marker.Tpo .deps/marker.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT powerup.o -MD -MP -MF .deps/powerup.Tpo -c -o powerup.o powerup.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from playerdeath.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from playerdeath.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from playerdeath.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from powerup.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from powerup.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from powerup.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objectio.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objectio.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from objectio.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from playerdeath.cpp:29: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from player.cpp:11: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from player.cpp:11: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from player.cpp:11: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from powerup.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from powerup.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from powerup.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from powerup.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from powerup.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from powerup.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from powerup.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from powerup.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from powerup.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from powerup.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from powerup.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from powerup.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from powerup.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from powerup.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from powerup.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from powerup.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from powerup.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from powerup.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from powerup.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from powerup.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from powerup.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from powerup.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from powerup.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from powerup.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from powerup.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from playerdeath.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from playerdeath.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from player.cpp:11: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from player.cpp:11: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from player.cpp:11: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from player.cpp:11: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from player.cpp:11: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from player.cpp:11: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from player.cpp:11: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from player.cpp:11: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from player.cpp:11: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from player.cpp:11: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from player.cpp:11: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from player.cpp:11: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from player.cpp:11: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from player.cpp:11: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from player.cpp:11: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from player.cpp:11: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from player.cpp:13: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from player.cpp:11: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from player.cpp:11: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from player.cpp:11: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from player.cpp:11: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from player.cpp:13: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from player.cpp:11: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from player.cpp:11: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from player.cpp:11: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from playerdeath.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from playerdeath.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from playerdeath.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from playerdeath.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from playerdeath.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from playerdeath.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from playerdeath.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from playerdeath.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from playerdeath.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from playerdeath.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from playerdeath.cpp:30: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from playerdeath.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from playerdeath.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from playerdeath.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from playerdeath.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from playerdeath.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from playerdeath.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from playerdeath.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from playerdeath.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from playerdeath.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from playerdeath.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from playerdeath.cpp:30: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from playerdeath.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from playerdeath.cpp:33: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from playerdeath.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from playerdeath.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from playerdeath.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from playerdeath.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from playerdeath.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from playerdeath.cpp:33: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from playerdeath.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from playerdeath.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from playerdeath.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/player.Tpo .deps/player.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT reactor.o -MD -MP -MF .deps/reactor.Tpo -c -o reactor.o reactor.cpp mv -f .deps/object.Tpo .deps/object.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT robot.o -MD -MP -MF .deps/robot.Tpo -c -o robot.o robot.cpp mv -f .deps/playerdeath.Tpo .deps/playerdeath.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT updateobject.o -MD -MP -MF .deps/updateobject.Tpo -c -o updateobject.o updateobject.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from reactor.cpp:25: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from reactor.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from reactor.cpp:25: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from objectio.cpp:29: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objectio.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objectio.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objectio.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objectio.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objectio.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objectio.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objectio.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from objectio.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objectio.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objectio.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objectio.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objectio.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from objectio.cpp:30: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objectio.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objectio.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objectio.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objectio.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objectio.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objectio.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from objectio.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objectio.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objectio.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objectio.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from objectio.cpp:30: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objectio.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from objectio.cpp:33: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from objectio.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from objectio.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objectio.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from objectio.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objectio.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from objectio.cpp:33: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from objectio.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from objectio.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objectio.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from updateobject.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from updateobject.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from updateobject.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from robot.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from robot.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from robot.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/objectio.Tpo .deps/objectio.Po mv -f .deps/powerup.Tpo .deps/powerup.Po reactor.cpp: In function 'void InitReactorForLevel(int)': reactor.cpp:413:9: warning: variable 'nBossObj' set but not used [-Wunused-but-set-variable] short nBossObj = -1; ^~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from reactor.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from reactor.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from reactor.cpp:25: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from reactor.cpp:25: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from reactor.cpp:25: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from reactor.cpp:25: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from reactor.cpp:25: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from reactor.cpp:25: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from reactor.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from reactor.cpp:25: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from reactor.cpp:25: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from reactor.cpp:25: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from reactor.cpp:25: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from reactor.cpp:25: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from reactor.cpp:25: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from reactor.cpp:25: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from reactor.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from reactor.cpp:25: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from reactor.cpp:25: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from reactor.cpp:25: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from reactor.cpp:25: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from reactor.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from reactor.cpp:25: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from reactor.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from reactor.cpp:25: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from robot.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from robot.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from updateobject.cpp:29: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from robot.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from robot.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from robot.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from robot.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from robot.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from robot.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ updateobject.cpp: In member function 'void CObject::HandleSpecialSegment()': updateobject.cpp:207:4: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if (gameData.app.nGameMode & GM_HOARD) ^~~~ updateobject.cpp:219:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' shields = segP->Damage (playerP->shields + 1); ^~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from robot.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from robot.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from robot.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from robot.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from robot.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from robot.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from updateobject.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from updateobject.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from robot.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from robot.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from robot.cpp:21: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from robot.cpp:21: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from updateobject.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from robot.cpp:21: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from updateobject.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from robot.cpp:21: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from updateobject.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from robot.cpp:21: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from updateobject.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from robot.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from robot.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from updateobject.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from updateobject.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from updateobject.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from updateobject.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from updateobject.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from updateobject.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from updateobject.cpp:30: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from updateobject.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from updateobject.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from updateobject.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from updateobject.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from updateobject.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from updateobject.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from updateobject.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from updateobject.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from updateobject.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from updateobject.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from updateobject.cpp:30: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from updateobject.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from updateobject.cpp:33: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from updateobject.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from updateobject.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from updateobject.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from updateobject.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from updateobject.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from updateobject.cpp:33: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from updateobject.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from updateobject.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from updateobject.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/reactor.Tpo .deps/reactor.Po mv -f .deps/robot.Tpo .deps/robot.Po mv -f .deps/updateobject.Tpo .deps/updateobject.Po rm -f libobjects.a ar cru libobjects.a boss.o createobject.o criticalhit.o effectobject.o hostage.o marker.o object.o objectio.o player.o playerdeath.o powerup.o reactor.o robot.o updateobject.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib libobjects.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/objects' Making all in ogl gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/ogl' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT fbuffer.o -MD -MP -MF .deps/fbuffer.Tpo -c -o fbuffer.o fbuffer.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT gr.o -MD -MP -MF .deps/gr.Tpo -c -o gr.o gr.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT ogl_bitmap.o -MD -MP -MF .deps/ogl_bitmap.Tpo -c -o ogl_bitmap.o ogl_bitmap.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT ogl_color.o -MD -MP -MF .deps/ogl_color.Tpo -c -o ogl_color.o ogl_color.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT ogl_defs.o -MD -MP -MF .deps/ogl_defs.Tpo -c -o ogl_defs.o ogl_defs.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_color.cpp:19: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_color.cpp:19: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_color.cpp:19: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_bitmap.cpp:29: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_bitmap.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_bitmap.cpp:29: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ ogl_color.cpp: In function 'void G3VertexColor(CFloatVector3*, CFloatVector3*, int, tFaceColor*, tFaceColor*, float, int, int)': ogl_color.cpp:725:60: warning: 'void* memcpy(void*, const void*, size_t)' copying an object of type 'class CFloatVector3' with 'private' member 'CFloatVector3::v' from an array of 'tRgbaColorf' {aka 'struct tRgbaColorf'}; use assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&colorSum, &pBaseColor->color, sizeof (colorSum)); ^ In file included from ../include/cfile.h:27, from ../include/carray.h:20, from ../include/descent.h:25, from ogl_color.cpp:19: ../include/vecmat.h:230:16: note: 'class CFloatVector3' declared here class __pack__ CFloatVector3 { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_color.cpp:19: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_color.cpp:19: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_color.cpp:19: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_color.cpp:19: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_color.cpp:19: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_defs.cpp:29: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_defs.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_defs.cpp:29: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gr.cpp:12: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gr.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from gr.cpp:12: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/ogl_lib.h:10, from fbuffer.cpp:30: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_color.cpp:19: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/ogl_lib.h:10, from fbuffer.cpp:30: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_color.cpp:19: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/ogl_lib.h:10, from fbuffer.cpp:30: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ../include/ogl_lib.h:10, from fbuffer.cpp:30: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ../include/ogl_lib.h:10, from fbuffer.cpp:30: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ../include/ogl_lib.h:10, from fbuffer.cpp:30: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_color.cpp:19: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_color.cpp:19: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_color.cpp:19: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_color.cpp:19: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_color.cpp:19: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/ogl_lib.h:10, from fbuffer.cpp:30: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/ogl_lib.h:10, from fbuffer.cpp:30: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/ogl_lib.h:10, from fbuffer.cpp:30: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_color.cpp:19: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_color.cpp:19: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ../include/ogl_lib.h:10, from fbuffer.cpp:30: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_color.cpp:19: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_color.cpp:19: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ../include/ogl_lib.h:10, from fbuffer.cpp:30: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ../include/ogl_lib.h:10, from fbuffer.cpp:30: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_lib.h:10, from fbuffer.cpp:30: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from fbuffer.cpp:31: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ../include/ogl_lib.h:10, from fbuffer.cpp:30: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ../include/ogl_lib.h:10, from fbuffer.cpp:30: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ../include/ogl_lib.h:10, from fbuffer.cpp:30: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ../include/ogl_lib.h:10, from fbuffer.cpp:30: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from fbuffer.cpp:31: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ../include/ogl_lib.h:10, from fbuffer.cpp:30: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from fbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_lib.h:10, from fbuffer.cpp:30: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_defs.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_defs.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_defs.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_defs.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_defs.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_defs.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_defs.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_defs.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_defs.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ mv -f .deps/fbuffer.Tpo .deps/fbuffer.Po In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT ogl_draw.o -MD -MP -MF .deps/ogl_draw.Tpo -c -o ogl_draw.o ogl_draw.cpp In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_defs.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_defs.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_defs.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ogl_color.cpp:22: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_color.cpp:19: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ogl_color.cpp:19: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_bitmap.cpp:42: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ ogl_bitmap.cpp: In member function 'int CBitmap::Render(CBitmap*, int, int, int, int, int, int, int, int, int, int, int, float, tRgbaColorf*)': ogl_bitmap.cpp:260:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if ((bmoP = HasOverride ())) ^~ ogl_bitmap.cpp:263:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int nTransp = (Flags () & BM_FLAG_TGA) ? -1 : HasTransparency () ? 2 : 0; ^~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_bitmap.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_bitmap.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_bitmap.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_bitmap.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_bitmap.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_bitmap.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_bitmap.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_bitmap.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ogl_bitmap.cpp:42: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_bitmap.cpp:42: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_bitmap.cpp:42: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_bitmap.cpp:42: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_bitmap.cpp:42: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_bitmap.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_bitmap.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_bitmap.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_bitmap.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_bitmap.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_bitmap.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_bitmap.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_bitmap.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ogl_bitmap.cpp:37: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ogl_bitmap.cpp:42: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_bitmap.cpp:29: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_bitmap.cpp:42: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_bitmap.cpp:42: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_bitmap.cpp:29: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ogl_bitmap.cpp:29: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_bitmap.cpp:29: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_bitmap.cpp:29: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ogl_bitmap.cpp:37: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_bitmap.cpp:29: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_bitmap.cpp:29: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_bitmap.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_bitmap.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_color.cpp:19: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_color.cpp:19: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ogl_color.cpp:22: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_color.cpp:19: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_color.cpp:19: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_color.cpp:19: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gr.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gr.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gr.cpp:12: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gr.cpp:12: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gr.cpp:12: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gr.cpp:12: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gr.cpp:12: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gr.cpp:12: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gr.cpp:39: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gr.cpp:12: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gr.cpp:12: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gr.cpp:12: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gr.cpp:12: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gr.cpp:12: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gr.cpp:12: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gr.cpp:12: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gr.cpp:12: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from gr.cpp:36: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gr.cpp:39: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gr.cpp:12: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gr.cpp:12: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from gr.cpp:12: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gr.cpp:12: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gr.cpp:12: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from gr.cpp:36: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gr.cpp:12: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gr.cpp:12: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gr.cpp:12: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gr.cpp:12: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_draw.cpp:29: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_draw.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_draw.cpp:29: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/gr.Tpo .deps/gr.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT ogl_fastrender.o -MD -MP -MF .deps/ogl_fastrender.Tpo -c -o ogl_fastrender.o ogl_fastrender.cpp In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_defs.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_defs.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_defs.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_defs.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_defs.cpp:29: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ogl_defs.cpp:29: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_defs.cpp:29: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_defs.cpp:29: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_defs.cpp:29: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_defs.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_defs.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/ogl_bitmap.Tpo .deps/ogl_bitmap.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT ogl_hudstuff.o -MD -MP -MF .deps/ogl_hudstuff.Tpo -c -o ogl_hudstuff.o ogl_hudstuff.cpp mv -f .deps/ogl_defs.Tpo .deps/ogl_defs.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT ogl_lib.o -MD -MP -MF .deps/ogl_lib.Tpo -c -o ogl_lib.o ogl_lib.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_fastrender.cpp:29: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_fastrender.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_fastrender.cpp:29: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_hudstuff.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_hudstuff.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_hudstuff.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_lib.cpp:29: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_lib.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_lib.cpp:29: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/transprender.h:5, from ogl_draw.cpp:43: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_draw.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_draw.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_draw.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_draw.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_draw.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_draw.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_draw.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_draw.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ogl_draw.cpp:43: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_draw.cpp:43: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_draw.cpp:43: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_draw.cpp:43: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_draw.cpp:43: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_draw.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_draw.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_draw.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_draw.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_draw.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_draw.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_draw.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_draw.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ogl_draw.cpp:37: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ogl_draw.cpp:43: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_draw.cpp:29: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_draw.cpp:43: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_draw.cpp:43: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_draw.cpp:29: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ogl_draw.cpp:29: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_draw.cpp:29: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_draw.cpp:29: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ogl_draw.cpp:37: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_draw.cpp:29: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_draw.cpp:29: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_draw.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_draw.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_fastrender.cpp:43: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ mv -f .deps/ogl_draw.Tpo .deps/ogl_draw.Po mv -f .deps/ogl_color.Tpo .deps/ogl_color.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT ogl_palette.o -MD -MP -MF .deps/ogl_palette.Tpo -c -o ogl_palette.o ogl_palette.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT ogl_render.o -MD -MP -MF .deps/ogl_render.Tpo -c -o ogl_render.o ogl_render.cpp In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_fastrender.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_fastrender.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_fastrender.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_fastrender.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_fastrender.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_fastrender.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_fastrender.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_fastrender.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ogl_fastrender.cpp:43: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_fastrender.cpp:43: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_fastrender.cpp:43: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_fastrender.cpp:43: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_fastrender.cpp:43: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_fastrender.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_fastrender.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_fastrender.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_fastrender.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_fastrender.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_fastrender.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_fastrender.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ ogl_lib.cpp: In member function 'void COGL::StartFrame(int, int)': ogl_lib.cpp:543:8: warning: variable 'nError' set but not used [-Wunused-but-set-variable] GLint nError = glGetError (); ^~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_lib.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_lib.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_lib.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_lib.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_lib.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_lib.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_lib.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_lib.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_lib.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_lib.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_fastrender.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_lib.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_lib.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_lib.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_lib.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_lib.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_lib.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ogl_lib.cpp:39: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_lib.cpp:29: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ogl_lib.cpp:29: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_lib.cpp:29: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_lib.cpp:29: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ogl_lib.cpp:39: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_lib.cpp:29: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_lib.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_lib.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ogl_fastrender.cpp:39: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ogl_fastrender.cpp:43: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_fastrender.cpp:29: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_fastrender.cpp:43: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_fastrender.cpp:43: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_fastrender.cpp:29: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ogl_fastrender.cpp:29: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_fastrender.cpp:29: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_fastrender.cpp:29: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ogl_fastrender.cpp:39: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_fastrender.cpp:29: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_fastrender.cpp:29: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_fastrender.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_fastrender.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_hudstuff.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_hudstuff.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_hudstuff.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_hudstuff.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_hudstuff.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_hudstuff.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_hudstuff.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_hudstuff.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_hudstuff.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_hudstuff.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_hudstuff.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_hudstuff.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_hudstuff.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_hudstuff.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_hudstuff.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_hudstuff.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ogl_hudstuff.cpp:32: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_hudstuff.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ogl_hudstuff.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_hudstuff.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_hudstuff.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ogl_hudstuff.cpp:32: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_hudstuff.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_hudstuff.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_hudstuff.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/ogl_hudstuff.Tpo .deps/ogl_hudstuff.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT ogl_shader.o -MD -MP -MF .deps/ogl_shader.Tpo -c -o ogl_shader.o ogl_shader.cpp In file included from ogl_fastrender.cpp:41: ../include/ogl_tmu.h: In function 'int G3SetRenderStatesLM(CSegFace*, CBitmap*, CBitmap*, int, int, int, int)': ../include/ogl_tmu.h:143:14: warning: array subscript 2 is above array bounds of 'GLuint [2]' {aka 'unsigned int [2]'} [-Warray-bounds] if (glIsList (g3InitTMU [3][bVertexArrays])) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/ogl_tmu.h:147:29: warning: array subscript 2 is above array bounds of 'GLuint [2]' {aka 'unsigned int [2]'} [-Warray-bounds] g3InitTMU [3][bVertexArrays] = glGenLists (1); ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ ../include/ogl_tmu.h:153:33: warning: array subscript 2 is above array bounds of 'GLuint [2]' {aka 'unsigned int [2]'} [-Warray-bounds] if (g3InitTMU [3][bVertexArrays]) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ ../include/ogl_tmu.h:144:13: warning: array subscript 2 is above array bounds of 'GLuint [2]' {aka 'unsigned int [2]'} [-Warray-bounds] glCallList (g3InitTMU [3][bVertexArrays]); ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/ogl_tmu.h: In function 'int G3SetRenderStates(CSegFace*, CBitmap*, CBitmap*, int, int, int, int, bool)': ../include/ogl_tmu.h:117:14: warning: array subscript 2 is above array bounds of 'GLuint [2]' {aka 'unsigned int [2]'} [-Warray-bounds] if (glIsList (g3InitTMU [2][bVertexArrays])) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/ogl_tmu.h:120:29: warning: array subscript 2 is above array bounds of 'GLuint [2]' {aka 'unsigned int [2]'} [-Warray-bounds] g3InitTMU [2][bVertexArrays] = glGenLists (1); ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ ../include/ogl_tmu.h:126:33: warning: array subscript 2 is above array bounds of 'GLuint [2]' {aka 'unsigned int [2]'} [-Warray-bounds] if (g3InitTMU [2][bVertexArrays]) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ ../include/ogl_tmu.h:118:13: warning: array subscript 2 is above array bounds of 'GLuint [2]' {aka 'unsigned int [2]'} [-Warray-bounds] glCallList (g3InitTMU [2][bVertexArrays]); ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_palette.cpp:7: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_palette.cpp:7: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_palette.cpp:7: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/ogl_fastrender.Tpo .deps/ogl_fastrender.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT ogl_texcache.o -MD -MP -MF .deps/ogl_texcache.Tpo -c -o ogl_texcache.o ogl_texcache.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_render.cpp:29: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_render.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_render.cpp:29: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/ogl_lib.Tpo .deps/ogl_lib.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT ogl_texture.o -MD -MP -MF .deps/ogl_texture.Tpo -c -o ogl_texture.o ogl_texture.cpp In file included from ../include/transprender.h:5, from ogl_render.cpp:45: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ ogl_render.cpp: In function 'int G3DrawTexPolyMulti(int, g3sPoint**, tUVL*, tUVL*, CBitmap*, CBitmap*, tLightmap*, CFixVector*, int, int, short int)': ogl_render.cpp:515:6: warning: variable 'bResetColor' set but not used [-Wunused-but-set-variable] bResetColor = 0, ^~~~~~~~~~~ ogl_render.cpp: In function 'int G3DrawTexPolyLightmap(int, g3sPoint**, tUVL*, tUVL*, CBitmap*, CBitmap*, tLightmap*, CFixVector*, int, int, short int)': ogl_render.cpp:839:11: warning: variable 'nFrame' set but not used [-Wunused-but-set-variable] int i, nFrame, bShaderMerge; ^~~~~~ ogl_render.cpp:840:11: warning: variable 'bmP' set but not used [-Wunused-but-set-variable] CBitmap *bmP = NULL; ^~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_render.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_render.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_shader.cpp:29: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_shader.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_shader.cpp:29: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_palette.cpp:7: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_palette.cpp:7: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_palette.cpp:7: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_palette.cpp:7: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_palette.cpp:7: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_palette.cpp:7: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_palette.cpp:7: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_palette.cpp:7: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_palette.cpp:32: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_palette.cpp:7: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_palette.cpp:7: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_palette.cpp:7: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_palette.cpp:7: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_palette.cpp:7: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_palette.cpp:7: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_palette.cpp:7: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_palette.cpp:7: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from ogl_palette.cpp:30: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_palette.cpp:32: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_palette.cpp:7: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_palette.cpp:7: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ogl_palette.cpp:7: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_palette.cpp:7: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_palette.cpp:7: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from ogl_palette.cpp:30: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_palette.cpp:7: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_palette.cpp:7: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_palette.cpp:7: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_palette.cpp:7: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_shader.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_shader.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_shader.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_shader.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_shader.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_shader.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_shader.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_texture.cpp:29: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_texture.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_texture.cpp:29: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/ogl_palette.Tpo .deps/ogl_palette.Po In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_render.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT pbuffer.o -MD -MP -MF .deps/pbuffer.Tpo -c -o pbuffer.o pbuffer.cpp In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_render.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_render.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_render.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_render.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_render.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ogl_render.cpp:45: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_render.cpp:45: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_render.cpp:45: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_render.cpp:45: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_render.cpp:45: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_render.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_render.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_render.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_render.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_render.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_render.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_render.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_render.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ogl_render.cpp:37: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ogl_render.cpp:45: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_render.cpp:29: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_render.cpp:45: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from ogl_render.cpp:45: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_render.cpp:29: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ogl_render.cpp:29: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_render.cpp:29: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_render.cpp:29: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ogl_render.cpp:37: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_render.cpp:29: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_render.cpp:29: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_render.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_render.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_shader.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_shader.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_shader.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_shader.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_shader.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_shader.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_shader.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_shader.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_shader.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ogl_shader.cpp:34: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_shader.cpp:29: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ogl_shader.cpp:29: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_shader.cpp:29: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_shader.cpp:29: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ogl_shader.cpp:34: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_shader.cpp:29: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_shader.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_shader.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ ogl_shader.cpp: In function 'char* LoadShader(char*)': ogl_shader.cpp:81:14: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf (fn, "%s%s%s", gameFolders.szShaderDir, *gameFolders.szShaderDir ? "/" : "", fileName); ^~~~~~~~ ogl_shader.cpp:81:9: note: 'sprintf' output 1 or more bytes (assuming 256) into a destination of size 255 sprintf (fn, "%s%s%s", gameFolders.szShaderDir, *gameFolders.szShaderDir ? "/" : "", fileName); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_texcache.cpp:29: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_texcache.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_texcache.cpp:29: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/ogl_lib.h:10, from pbuffer.cpp:30: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_texcache.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_texcache.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_texcache.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_texcache.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_texcache.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/ogl_lib.h:10, from pbuffer.cpp:30: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_texcache.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/ogl_lib.h:10, from pbuffer.cpp:30: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_texcache.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ../include/ogl_lib.h:10, from pbuffer.cpp:30: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ../include/ogl_lib.h:10, from pbuffer.cpp:30: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ../include/ogl_lib.h:10, from pbuffer.cpp:30: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/ogl_lib.h:10, from pbuffer.cpp:30: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/ogl_lib.h:10, from pbuffer.cpp:30: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ../include/ogl_lib.h:10, from pbuffer.cpp:30: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ../include/ogl_lib.h:10, from pbuffer.cpp:30: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ../include/ogl_lib.h:10, from pbuffer.cpp:30: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ../include/ogl_lib.h:10, from pbuffer.cpp:30: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_lib.h:10, from pbuffer.cpp:30: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from pbuffer.cpp:31: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ../include/ogl_lib.h:10, from pbuffer.cpp:30: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ../include/ogl_lib.h:10, from pbuffer.cpp:30: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ../include/ogl_lib.h:10, from pbuffer.cpp:30: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ../include/ogl_lib.h:10, from pbuffer.cpp:30: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from pbuffer.cpp:31: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ../include/ogl_lib.h:10, from pbuffer.cpp:30: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/cstack.h:4, from ../include/palette.h:22, from ../include/gr.h:19, from ../include/ogl_defs.h:80, from pbuffer.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_lib.h:10, from pbuffer.cpp:30: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/pbuffer.Tpo .deps/pbuffer.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT sdlgl.o -MD -MP -MF .deps/sdlgl.Tpo -c -o sdlgl.o sdlgl.cpp ogl_texture.cpp: In member function 'int CBitmap::LoadTexture(int, int, int)': ogl_texture.cpp:1120:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!data) ^~ ogl_texture.cpp:1123:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' GLubyte* bufP = NULL; ^~~~~~~ ogl_texture.cpp:1126:8: warning: variable 'funcRes' set but not used [-Wunused-but-set-variable] int funcRes = 1; ^~~~~~~ mv -f .deps/ogl_shader.Tpo .deps/ogl_shader.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT screenshot.o -MD -MP -MF .deps/screenshot.Tpo -c -o screenshot.o screenshot.cpp In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_texcache.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_texcache.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_texcache.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_texcache.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_texcache.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_texcache.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_texcache.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_texcache.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_texcache.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_texcache.cpp:38: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_texcache.cpp:29: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ogl_texcache.cpp:29: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_texcache.cpp:29: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_texcache.cpp:29: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_texcache.cpp:38: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_texcache.cpp:29: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texcache.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_texcache.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sdlgl.cpp:24: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sdlgl.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from sdlgl.cpp:24: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ ogl_texture.cpp: In member function 'bool CBitmap::SetupFrames(int, int)': ogl_texture.cpp:1410:9: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] if (!(h * w)) ~~~^~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_texture.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_texture.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_texture.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_texture.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_texture.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_texture.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_texture.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_texture.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from ogl_texture.cpp:29: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_texture.cpp:29: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_texture.cpp:29: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from ogl_texture.cpp:29: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_texture.cpp:29: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_texture.cpp:29: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from ogl_texture.cpp:29: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_texture.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_texture.cpp:29: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from ogl_texture.cpp:29: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from ogl_texture.cpp:29: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_texture.cpp:29: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from ogl_texture.cpp:29: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from ogl_texture.cpp:29: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ogl_texture.cpp:29: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from screenshot.cpp:33: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from screenshot.cpp:33: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from screenshot.cpp:33: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ screenshot.cpp: In function 'void WriteScreenShot(char*, int, int, ubyte*, int)': screenshot.cpp:79:15: warning: variable 'r' set but not used [-Wunused-but-set-variable] int i, j, r; ^ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from screenshot.cpp:33: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from screenshot.cpp:33: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from screenshot.cpp:33: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from screenshot.cpp:33: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from screenshot.cpp:33: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ mv -f .deps/ogl_render.Tpo .deps/ogl_render.Po In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from screenshot.cpp:33: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from screenshot.cpp:33: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from screenshot.cpp:33: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from screenshot.cpp:59: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from screenshot.cpp:33: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from screenshot.cpp:33: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from screenshot.cpp:33: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from screenshot.cpp:33: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from screenshot.cpp:33: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from screenshot.cpp:33: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from screenshot.cpp:33: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from screenshot.cpp:33: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from screenshot.cpp:57: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from screenshot.cpp:59: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from screenshot.cpp:33: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from screenshot.cpp:33: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from screenshot.cpp:33: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from screenshot.cpp:33: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from screenshot.cpp:33: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from screenshot.cpp:57: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from screenshot.cpp:33: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from screenshot.cpp:33: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from screenshot.cpp:33: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from screenshot.cpp:33: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sdlgl.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sdlgl.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sdlgl.cpp:24: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sdlgl.cpp:24: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sdlgl.cpp:24: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from sdlgl.cpp:24: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from sdlgl.cpp:24: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from sdlgl.cpp:24: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sdlgl.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sdlgl.cpp:24: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sdlgl.cpp:24: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sdlgl.cpp:24: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from sdlgl.cpp:24: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from sdlgl.cpp:24: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from sdlgl.cpp:24: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sdlgl.cpp:24: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sdlgl.cpp:34: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from sdlgl.cpp:24: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from sdlgl.cpp:24: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from sdlgl.cpp:24: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from sdlgl.cpp:24: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sdlgl.cpp:34: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from sdlgl.cpp:24: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from sdlgl.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sdlgl.cpp:24: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ screenshot.cpp: In function 'void SaveScreenShot(ubyte*, int)': screenshot.cpp:174:23: warning: '%s' directive writing up to 254 bytes into a region of size 98 [-Wformat-overflow=] sprintf (szMessage, "%s '%s'", TXT_DUMPING_SCREEN, szSaveName); ^~~~~~~~~ ~~~~~~~~~~ screenshot.cpp:174:11: note: 'sprintf' output 4 or more bytes (assuming 258) into a destination of size 100 sprintf (szMessage, "%s '%s'", TXT_DUMPING_SCREEN, szSaveName); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/screenshot.Tpo .deps/screenshot.Po mv -f .deps/sdlgl.Tpo .deps/sdlgl.Po mv -f .deps/ogl_texture.Tpo .deps/ogl_texture.Po mv -f .deps/ogl_texcache.Tpo .deps/ogl_texcache.Po rm -f libogl.a ar cru libogl.a fbuffer.o gr.o ogl_bitmap.o ogl_color.o ogl_defs.o ogl_draw.o ogl_fastrender.o ogl_hudstuff.o ogl_lib.o ogl_palette.o ogl_render.o ogl_shader.o ogl_texcache.o ogl_texture.o pbuffer.o sdlgl.o screenshot.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib libogl.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/ogl' Making all in physics gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/physics' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT collide.o -MD -MP -MF .deps/collide.Tpo -c -o collide.o collide.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT hitbox_collision.o -MD -MP -MF .deps/hitbox_collision.Tpo -c -o hitbox_collision.o hitbox_collision.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT physics.o -MD -MP -MF .deps/physics.Tpo -c -o physics.o physics.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT slowmotion.o -MD -MP -MF .deps/slowmotion.Tpo -c -o slowmotion.o slowmotion.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT sphere_collision.o -MD -MP -MF .deps/sphere_collision.Tpo -c -o sphere_collision.o sphere_collision.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sphere_collision.cpp:25: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sphere_collision.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from sphere_collision.cpp:25: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from slowmotion.cpp:5: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from slowmotion.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from slowmotion.cpp:5: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from physics.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from physics.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from physics.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hitbox_collision.cpp:25: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hitbox_collision.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from hitbox_collision.cpp:25: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from collide.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from collide.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from collide.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from slowmotion.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from slowmotion.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from slowmotion.cpp:5: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from slowmotion.cpp:5: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from slowmotion.cpp:5: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from slowmotion.cpp:5: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from slowmotion.cpp:5: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from slowmotion.cpp:5: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from slowmotion.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from collide.cpp:28: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ collide.cpp: In member function 'void CObject::ApplyForceDamage(fix, CObject*)': collide.cpp:120:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if ((otherObjP->info.nType == OBJ_PLAYER) && gameStates.app.cheats.bMonsterMode) ^~ collide.cpp:122:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' switch (info.nType) { ^~~~~~ physics.cpp: In function 'void DoPhysicsAlignObject(CObject*)': physics.cpp:107:9: warning: variable 'save_delta_ang' set but not used [-Wunused-but-set-variable] fixang save_delta_ang; ^~~~~~~~~~~~~~ collide.cpp: In member function 'int CObject::CollideWeaponAndRobot(CObject*, CFixVector&)': collide.cpp:1510:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if ((cType.laserInfo.parent.nType == OBJ_PLAYER) && botInfoP->energyBlobs) ^~ collide.cpp:1523:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (WI_damage_radius (info.nId)) { ^~ physics.cpp: In function 'int BounceObject(CObject*, CHitData, float, fix*)': physics.cpp:292:8: warning: variable 'r' set but not used [-Wunused-but-set-variable] float r; ^ In file included from ../include/cfile.h:26, from ../include/carray.h:20, from ../include/descent.h:25, from physics.cpp:21: physics.cpp: In member function 'void CObject::DoPhysicsSim()': physics.cpp:568:50: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] vFrame *= FixMulDiv (xSimTime, xTimeScale, 100 * (nBadSeg + 1)); ../include/maths.h:56:40: note: in definition of macro 'FixMulDiv' #define FixMulDiv(_a, _b, _c) ((fix) ((_c) ? (((static_cast (_a)) * (static_cast (_b))) / (static_cast (_c))) : 1)) ^~ physics.cpp:571:75: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] vFrame = mType.physInfo.velocity * FixMulDiv (xSimTime, xTimeScale, 100 * (nBadSeg + 1)); ../include/maths.h:56:40: note: in definition of macro 'FixMulDiv' #define FixMulDiv(_a, _b, _c) ((fix) ((_c) ? (((static_cast (_a)) * (static_cast (_b))) / (static_cast (_c))) : 1)) ^~ physics.cpp:613:29: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CHitData'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&hi, 0, sizeof (hi)); ^ In file included from ../include/ai.h:20, from ../include/descent.h:2752, from physics.cpp:21: ../include/collision_math.h:58:7: note: 'class CHitData' declared here class CHitData { ^~~~~~~~ physics.cpp:623:30: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CHitData'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&hi, 0, sizeof (hi)); ^ In file included from ../include/ai.h:20, from ../include/descent.h:2752, from physics.cpp:21: ../include/collision_math.h:58:7: note: 'class CHitData' declared here class CHitData { ^~~~~~~~ physics.cpp:874:7: warning: variable 's' set but not used [-Wunused-but-set-variable] fix s = FixMulDiv (FixDiv (I2X (1), gameData.physics.xTime), xTimeScale, 100); ^ In file included from ../include/cfile.h:26, from ../include/carray.h:20, from ../include/descent.h:25, from physics.cpp:21: physics.cpp: In member function 'void CObject::ApplyRotForce(CFixVector)': physics.cpp:1050:35: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] fix tval = FixDiv (I2X (1), 8 * gameData.physics.xTime); ../include/maths.h:55:44: note: in definition of macro 'FixDiv' #define FixDiv(_a, _b) (static_cast ((_b) ? (((static_cast (_a)) * 65536) / (static_cast (_b))) : 1)) ^~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from collide.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from collide.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from collide.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from collide.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from collide.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from collide.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from collide.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from collide.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from collide.cpp:28: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from collide.cpp:28: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from collide.cpp:28: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from collide.cpp:28: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from collide.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from collide.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from collide.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from collide.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from collide.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from collide.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from collide.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from collide.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from collide.cpp:28: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from collide.cpp:28: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from collide.cpp:31: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from collide.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from collide.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from collide.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from collide.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from collide.cpp:31: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from physics.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from collide.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from collide.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from collide.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ hitbox_collision.cpp: In function 'fix DistToQuad(CFixVector, CFixVector*, CFixVector)': hitbox_collision.cpp:91:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (PointIsInQuad (vRef, vertP, vNormal)) ^~ hitbox_collision.cpp:94:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CFixVector v; ^~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from physics.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hitbox_collision.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hitbox_collision.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from physics.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from physics.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from physics.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hitbox_collision.cpp:25: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hitbox_collision.cpp:25: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from physics.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hitbox_collision.cpp:25: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from physics.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hitbox_collision.cpp:25: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from physics.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hitbox_collision.cpp:25: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from physics.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from hitbox_collision.cpp:25: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from hitbox_collision.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from physics.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from physics.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from physics.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from physics.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from physics.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hitbox_collision.cpp:25: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hitbox_collision.cpp:25: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from hitbox_collision.cpp:25: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from physics.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from physics.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from physics.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hitbox_collision.cpp:25: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hitbox_collision.cpp:25: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from physics.cpp:21: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from physics.cpp:21: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from hitbox_collision.cpp:25: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from physics.cpp:21: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from physics.cpp:21: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from slowmotion.cpp:5: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hitbox_collision.cpp:25: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from slowmotion.cpp:5: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from hitbox_collision.cpp:32: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from slowmotion.cpp:5: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from physics.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from physics.cpp:21: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from physics.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from physics.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hitbox_collision.cpp:25: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from hitbox_collision.cpp:25: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from slowmotion.cpp:5: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from slowmotion.cpp:5: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from hitbox_collision.cpp:25: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hitbox_collision.cpp:25: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from slowmotion.cpp:5: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from hitbox_collision.cpp:32: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from hitbox_collision.cpp:25: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from hitbox_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from hitbox_collision.cpp:25: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from slowmotion.cpp:5: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from slowmotion.cpp:5: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from slowmotion.cpp:5: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from slowmotion.cpp:5: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from slowmotion.cpp:5: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from slowmotion.cpp:5: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from slowmotion.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from slowmotion.cpp:5: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/hitbox_collision.Tpo .deps/hitbox_collision.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT visibility.o -MD -MP -MF .deps/visibility.Tpo -c -o visibility.o visibility.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from visibility.cpp:25: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from visibility.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from visibility.cpp:25: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from visibility.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from visibility.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ mv -f .deps/slowmotion.Tpo .deps/slowmotion.Po In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from visibility.cpp:25: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from visibility.cpp:25: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from visibility.cpp:25: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from visibility.cpp:25: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from visibility.cpp:25: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from visibility.cpp:25: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from visibility.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from visibility.cpp:25: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from visibility.cpp:25: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from visibility.cpp:25: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from visibility.cpp:25: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from visibility.cpp:25: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from visibility.cpp:25: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from visibility.cpp:25: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from visibility.cpp:32: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from visibility.cpp:25: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from visibility.cpp:25: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from visibility.cpp:25: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from visibility.cpp:25: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from visibility.cpp:32: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from visibility.cpp:25: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from visibility.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from visibility.cpp:25: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sphere_collision.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sphere_collision.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sphere_collision.cpp:25: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sphere_collision.cpp:25: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sphere_collision.cpp:25: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from sphere_collision.cpp:25: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from sphere_collision.cpp:25: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from sphere_collision.cpp:25: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sphere_collision.cpp:25: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sphere_collision.cpp:25: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sphere_collision.cpp:25: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sphere_collision.cpp:25: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from sphere_collision.cpp:25: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from sphere_collision.cpp:25: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from sphere_collision.cpp:25: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sphere_collision.cpp:25: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from sphere_collision.cpp:32: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from sphere_collision.cpp:25: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from sphere_collision.cpp:25: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from sphere_collision.cpp:25: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from sphere_collision.cpp:25: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from sphere_collision.cpp:32: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from sphere_collision.cpp:25: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from sphere_collision.cpp:25: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sphere_collision.cpp:25: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/visibility.Tpo .deps/visibility.Po mv -f .deps/physics.Tpo .deps/physics.Po In function 'int AddHitObject(CObject*, short int)', inlined from 'int AddHitObject(CObject*, short int)': collide.cpp:1449:9: warning: 'void* memcpy(void*, const void*, size_t)' accessing 38 bytes at offsets 2 and 0 overlaps 36 bytes at offset 2 [-Wrestrict] memcpy (p + 1, p, (MAX_HIT_OBJECTS - 1) * sizeof (*p)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/collide.Tpo .deps/collide.Po mv -f .deps/sphere_collision.Tpo .deps/sphere_collision.Po rm -f libphysics.a ar cru libphysics.a collide.o hitbox_collision.o physics.o slowmotion.o sphere_collision.o visibility.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib libphysics.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/physics' Making all in render gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/render' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT automap.o -MD -MP -MF .deps/automap.Tpo -c -o automap.o automap.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT cameras.o -MD -MP -MF .deps/cameras.Tpo -c -o cameras.o cameras.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT fastrender.o -MD -MP -MF .deps/fastrender.Tpo -c -o fastrender.o fastrender.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT gpgpu_lighting.o -MD -MP -MF .deps/gpgpu_lighting.Tpo -c -o gpgpu_lighting.o gpgpu_lighting.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT morph.o -MD -MP -MF .deps/morph.Tpo -c -o morph.o morph.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from fastrender.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from fastrender.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from fastrender.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from automap.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from automap.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from automap.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gpgpu_lighting.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gpgpu_lighting.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from gpgpu_lighting.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from morph.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from morph.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from morph.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/transprender.h:5, from automap.cpp:29: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ automap.cpp: In member function 'void CAutomap::DrawLevelId()': automap.cpp:344:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (gameStates.app.bNostalgia) ^~ automap.cpp:347:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' CFont* curFont = CCanvas::Current ()->Font (); ^~~~~ automap.cpp: In member function 'int CAutomap::Setup(int, fix&)': automap.cpp:546:11: warning: variable 't2' set but not used [-Wunused-but-set-variable] fix t1, t2; ^~ In file included from ../include/cfile.h:26, from ../include/carray.h:20, from ../include/descent.h:25, from automap.cpp:23: automap.cpp: In member function 'int CAutomap::Update()': automap.cpp:643:77: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] m_vTAngles [BA] += (fixang) FixDiv (Controls [0].bankTime, ROT_SPEED_DIVISOR*2); ../include/maths.h:55:44: note: in definition of macro 'FixDiv' #define FixDiv(_a, _b) (static_cast ((_b) ? (((static_cast (_a)) * 65536) / (static_cast (_b))) : 1)) ^~ automap.cpp: In member function 'int CAutomap::ReadControls(int, int, int&)': automap.cpp:678:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!gameOpts->menus.nStyle) ^~ automap.cpp:680:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' switch (c) { ^~~~~~ automap.cpp:806:37: warning: operation on 'gameStates.tGameStates::render.tRenderStates::bShowFrameRate' may be undefined [-Wsequence-point] gameStates.render.bShowFrameRate = ++gameStates.render.bShowFrameRate % (6 + (gameStates.render.bPerPixelLighting == 2)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ automap.cpp: In member function 'void CAutomap::DoFrame(int, int)': automap.cpp:902:9: warning: variable 'bRedrawScreen' set but not used [-Wunused-but-set-variable] int bRedrawScreen = 0; ^~~~~~~~~~~~~ automap.cpp: In member function 'void CAutomap::BuildEdgeList()': automap.cpp:1386:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (s = 0; s <= gameData.segs.nLastSegment; s++) ^~~ automap.cpp:1391:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' for (s = 0; s <= gameData.segs.nLastSegment; s++) ^~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from automap.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from automap.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from automap.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from automap.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from automap.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from automap.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from automap.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from automap.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from automap.cpp:29: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from automap.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from automap.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from automap.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from automap.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from automap.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from automap.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from automap.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from automap.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from automap.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from automap.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from automap.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from automap.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from automap.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from automap.cpp:29: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from automap.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from automap.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from automap.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from automap.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from automap.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from automap.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from automap.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from automap.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from automap.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from automap.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from automap.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from automap.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/renderthreads.h:18, from gpgpu_lighting.cpp:36: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gpgpu_lighting.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gpgpu_lighting.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gpgpu_lighting.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gpgpu_lighting.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gpgpu_lighting.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gpgpu_lighting.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gpgpu_lighting.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gpgpu_lighting.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gpgpu_lighting.cpp:36: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gpgpu_lighting.cpp:36: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gpgpu_lighting.cpp:36: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gpgpu_lighting.cpp:36: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from gpgpu_lighting.cpp:36: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gpgpu_lighting.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gpgpu_lighting.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gpgpu_lighting.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from gpgpu_lighting.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/renderthreads.h:18, from fastrender.cpp:36: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ fastrender.cpp: In function 'short int RenderSegmentFaces(int, short int, int, int, int)': fastrender.cpp:801:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (nSegment < 0) ^~ fastrender.cpp:804:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' tSegFaces *segFaceP = SEGFACES + nSegment; ^~~~~~~~~ fastrender.cpp: In function 'void RenderFaceList(int)': fastrender.cpp:917:6: warning: variable 'j' set but not used [-Wunused-but-set-variable] int j; ^ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from fastrender.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from fastrender.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fastrender.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fastrender.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fastrender.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fastrender.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fastrender.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from fastrender.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from fastrender.cpp:36: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from fastrender.cpp:36: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from fastrender.cpp:36: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from fastrender.cpp:36: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from fastrender.cpp:36: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from fastrender.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fastrender.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fastrender.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from fastrender.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fastrender.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fastrender.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from fastrender.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fastrender.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gpgpu_lighting.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gpgpu_lighting.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from gpgpu_lighting.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gpgpu_lighting.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from gpgpu_lighting.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gpgpu_lighting.cpp:36: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from gpgpu_lighting.cpp:36: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from gpgpu_lighting.cpp:36: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gpgpu_lighting.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gpgpu_lighting.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from gpgpu_lighting.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from gpgpu_lighting.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gpgpu_lighting.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from gpgpu_lighting.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from gpgpu_lighting.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from gpgpu_lighting.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from gpgpu_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from gpgpu_lighting.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cameras.cpp:10: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cameras.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from cameras.cpp:10: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ morph.cpp: In function 'int MorphInitPoints(CPolyModel*, CFixVector*, int, tMorphInfo*)': morph.cpp:130:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (mdP->times [i] != 0) ^~ morph.cpp:132:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' mdP->deltas [i] *= gameData.render.morph.xRate; ^~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from morph.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from morph.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from morph.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from morph.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from morph.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from morph.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from morph.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from morph.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from morph.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from morph.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from morph.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from morph.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from morph.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from morph.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from morph.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from morph.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from morph.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from morph.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from morph.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from morph.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from morph.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from morph.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from morph.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from fastrender.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from fastrender.cpp:36: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from fastrender.cpp:36: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from fastrender.cpp:36: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from fastrender.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from fastrender.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from fastrender.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from fastrender.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from fastrender.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ mv -f .deps/gpgpu_lighting.Tpo .deps/gpgpu_lighting.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT objeffects.o -MD -MP -MF .deps/objeffects.Tpo -c -o objeffects.o objeffects.cpp In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from fastrender.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from fastrender.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from fastrender.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from fastrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fastrender.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/morph.Tpo .deps/morph.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT objrender.o -MD -MP -MF .deps/objrender.Tpo -c -o objrender.o objrender.cpp cameras.cpp: In member function 'void CCamera::Init()': cameras.cpp:151:36: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'tCamera' {aka 'struct tCamera'} with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_info, 0, sizeof (m_info)); ^ In file included from ../include/descent.h:1240, from cameras.cpp:10: ../include/cameras.h:9:16: note: 'tCamera' {aka 'struct tCamera'} declared here typedef struct tCamera { ^~~~~~~ cameras.cpp: In member function 'void CCamera::Rotate()': cameras.cpp:574:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!m_info.objP) ^~ cameras.cpp:577:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' fixang curAngle = m_info.curAngle; ^~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cameras.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cameras.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cameras.cpp:10: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cameras.cpp:10: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cameras.cpp:10: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cameras.cpp:10: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cameras.cpp:10: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from cameras.cpp:10: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from cameras.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objeffects.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objeffects.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from objeffects.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/automap.Tpo .deps/automap.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT oofrender.o -MD -MP -MF .deps/oofrender.Tpo -c -o oofrender.o oofrender.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objrender.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objrender.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from objrender.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:106, from cameras.cpp:10: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cameras.cpp:10: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from cameras.cpp:10: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cameras.cpp:10: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cameras.cpp:10: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from cameras.cpp:10: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cameras.cpp:10: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from cameras.cpp:13: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ mv -f .deps/fastrender.Tpo .deps/fastrender.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT polymodelrender.o -MD -MP -MF .deps/polymodelrender.Tpo -c -o polymodelrender.o polymodelrender.cpp In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from cameras.cpp:10: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from cameras.cpp:10: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from cameras.cpp:10: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from cameras.cpp:10: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from cameras.cpp:13: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from cameras.cpp:10: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from cameras.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cameras.cpp:10: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from oofrender.cpp:10: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from oofrender.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from oofrender.cpp:10: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from polymodelrender.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from polymodelrender.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from polymodelrender.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/transprender.h:5, from objeffects.cpp:29: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ oofrender.cpp: In function 'int OOF_GetSilhouette(OOF::CSubModel*)': oofrender.cpp:136:17: warning: variable 'pv' set but not used [-Wunused-but-set-variable] CFloatVector *pv; ^~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from oofrender.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from oofrender.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from objrender.cpp:31: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oofrender.cpp:10: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ objrender.cpp: In function 'void DrawObjectBlob(CObject*, int, int, int, tRgbaColorf*, float)': objrender.cpp:301:10: warning: variable 'fScale' set but not used [-Wunused-but-set-variable] float fScale; ^~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objrender.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objrender.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objrender.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objrender.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objrender.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objrender.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objrender.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from objrender.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objrender.cpp:31: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objrender.cpp:31: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objrender.cpp:31: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objrender.cpp:31: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from objrender.cpp:35: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objrender.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objrender.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objrender.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objrender.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objrender.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objrender.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from objrender.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objrender.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from objrender.cpp:26: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objrender.cpp:31: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objrender.cpp:31: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from objrender.cpp:35: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objrender.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from objrender.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from objrender.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objrender.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from objrender.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from objrender.cpp:26: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objrender.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from objrender.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from objrender.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objrender.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oofrender.cpp:10: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oofrender.cpp:10: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from oofrender.cpp:10: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from oofrender.cpp:10: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ polymodelrender.cpp: In function 'int DrawPolyModel(CObject*, CFixVector*, CFixMatrix*, CAngleVector*, int, int, fix, fix*, tBitmapIndex*, tRgbaColorf*)': polymodelrender.cpp:154:8: warning: variable 'nTextures' set but not used [-Wunused-but-set-variable] int nTextures, bHires = 0; ^~~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from polymodelrender.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from polymodelrender.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from polymodelrender.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from polymodelrender.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from polymodelrender.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from polymodelrender.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from polymodelrender.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from polymodelrender.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from polymodelrender.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from polymodelrender.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from polymodelrender.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from polymodelrender.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from polymodelrender.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from polymodelrender.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from polymodelrender.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from polymodelrender.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from polymodelrender.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from polymodelrender.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from polymodelrender.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from polymodelrender.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from polymodelrender.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from polymodelrender.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from polymodelrender.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from polymodelrender.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from polymodelrender.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ objeffects.cpp: In function 'void RenderThrusterFlames(CObject*)': objeffects.cpp:1150:23: warning: variable 'vEye' set but not used [-Wunused-but-set-variable] static CFloatVector vEye = CFloatVector::ZERO; ^~~~ objeffects.cpp: In function 'void RenderLaserCorona(CObject*, tRgbaColorf*, float, float)': objeffects.cpp:1306:22: warning: variable 'vEye' set but not used [-Wunused-but-set-variable] static CFloatVector vEye = CFloatVector::ZERO; ^~~~ objeffects.cpp: In function 'void RenderLightTrail(CObject*)': objeffects.cpp:1746:9: warning: variable 'nTrailItem' set but not used [-Wunused-but-set-variable] int nTrailItem = -1, /*nCoronaItem = -1,*/ bGatling = 0, bAdditive = 1; //gameOpts->render.coronas.bAdditiveObjs; ^~~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objeffects.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objeffects.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objeffects.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objeffects.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objeffects.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objeffects.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objeffects.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from objeffects.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from objeffects.cpp:29: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from objeffects.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from objeffects.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from objeffects.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from oofrender.cpp:10: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from objeffects.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objeffects.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from oofrender.cpp:10: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objeffects.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objeffects.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from objeffects.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oofrender.cpp:10: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objeffects.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objeffects.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from objeffects.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objeffects.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from objeffects.cpp:25: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from objeffects.cpp:29: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objeffects.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from objeffects.cpp:29: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from objeffects.cpp:29: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from objeffects.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from objeffects.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from objeffects.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from objeffects.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from objeffects.cpp:25: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from objeffects.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from objeffects.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from objeffects.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from objeffects.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oofrender.cpp:10: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from oofrender.cpp:10: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from oofrender.cpp:10: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from oofrender.cpp:10: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from oofrender.cpp:10: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from oofrender.cpp:10: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from oofrender.cpp:18: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from oofrender.cpp:10: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from oofrender.cpp:10: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from oofrender.cpp:10: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from oofrender.cpp:10: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from oofrender.cpp:18: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from oofrender.cpp:10: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from oofrender.cpp:10: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from oofrender.cpp:10: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/cameras.Tpo .deps/cameras.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT radar.o -MD -MP -MF .deps/radar.Tpo -c -o radar.o radar.cpp mv -f .deps/polymodelrender.Tpo .deps/polymodelrender.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT renderframe.o -MD -MP -MF .deps/renderframe.Tpo -c -o renderframe.o renderframe.cpp oofrender.cpp: In member function 'int OOF::CSubModel::Render(CObject*, OOF::CModel*, CFloatVector, int, float*)': oofrender.cpp:547:17: warning: 'pso' may be used uninitialized in this function [-Wmaybe-uninitialized] OOF_DrawShadow (po, pso); ~~~~~~~~~~~~~~~^~~~~~~~~ mv -f .deps/oofrender.Tpo .deps/oofrender.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT renderlib.o -MD -MP -MF .deps/renderlib.Tpo -c -o renderlib.o renderlib.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from radar.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from radar.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from radar.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from renderframe.cpp:28: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from renderframe.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from renderframe.cpp:28: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from renderlib.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from renderlib.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from renderlib.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from radar.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from radar.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from radar.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from radar.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from radar.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from radar.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from radar.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from radar.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from radar.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from radar.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from radar.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from radar.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from radar.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from radar.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from radar.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from radar.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from radar.cpp:24: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from radar.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from radar.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from radar.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from radar.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from radar.cpp:24: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from radar.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from radar.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from radar.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/objrender.Tpo .deps/objrender.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT render_lighting.o -MD -MP -MF .deps/render_lighting.Tpo -c -o render_lighting.o render_lighting.cpp In file included from ../include/renderthreads.h:18, from renderlib.cpp:35: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ mv -f .deps/radar.Tpo .deps/radar.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT rendermine.o -MD -MP -MF .deps/rendermine.Tpo -c -o rendermine.o rendermine.cpp In file included from renderframe.cpp:43: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ renderframe.cpp: In function 'void FlashMine()': renderframe.cpp:652:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (gameOpts->app.bEpilepticFriendly || ^~ renderframe.cpp:656:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int bDepthTest, bBlend; ^~~ renderframe.cpp: In function 'void CopyBackgroundRect(int, int, int, int)': renderframe.cpp:820:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (right < left || bot < top) ^~ renderframe.cpp:823:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int x, y; ^~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from renderframe.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from renderframe.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from renderframe.cpp:28: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from renderframe.cpp:28: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from renderframe.cpp:28: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from renderframe.cpp:28: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from renderframe.cpp:28: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from renderframe.cpp:28: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from renderframe.cpp:43: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from renderframe.cpp:43: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from renderframe.cpp:43: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from renderframe.cpp:43: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from renderframe.cpp:44: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from renderframe.cpp:28: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from renderframe.cpp:28: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from renderframe.cpp:28: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from renderframe.cpp:28: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from renderframe.cpp:28: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from renderframe.cpp:28: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from renderframe.cpp:28: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from renderframe.cpp:28: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from renderframe.cpp:30: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from renderframe.cpp:43: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from renderframe.cpp:43: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from renderframe.cpp:44: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from renderframe.cpp:28: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from renderframe.cpp:28: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from renderframe.cpp:28: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from renderframe.cpp:28: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from renderframe.cpp:28: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from renderframe.cpp:30: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from renderframe.cpp:28: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from renderframe.cpp:28: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderframe.cpp:28: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from renderframe.cpp:28: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from render_lighting.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from render_lighting.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from render_lighting.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rendermine.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rendermine.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from rendermine.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from renderlib.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from renderlib.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from renderlib.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from renderlib.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from renderlib.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/renderthreads.h:18, from render_lighting.cpp:36: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from render_lighting.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from render_lighting.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from render_lighting.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from render_lighting.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from render_lighting.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from render_lighting.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from render_lighting.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from render_lighting.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from render_lighting.cpp:36: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from render_lighting.cpp:36: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from render_lighting.cpp:36: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from render_lighting.cpp:36: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from render_lighting.cpp:36: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from render_lighting.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from render_lighting.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from render_lighting.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from render_lighting.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from render_lighting.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from render_lighting.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from render_lighting.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from render_lighting.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from render_lighting.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from render_lighting.cpp:36: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from render_lighting.cpp:36: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from render_lighting.cpp:36: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from render_lighting.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from render_lighting.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from render_lighting.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from render_lighting.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from render_lighting.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from render_lighting.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from render_lighting.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from render_lighting.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from render_lighting.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from render_lighting.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/renderframe.Tpo .deps/renderframe.Po In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from renderlib.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from renderlib.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from renderlib.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from renderlib.cpp:35: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from renderlib.cpp:35: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from renderlib.cpp:35: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from renderlib.cpp:35: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from renderlib.cpp:35: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from renderlib.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ mv -f .deps/objeffects.Tpo .deps/objeffects.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT rendershadows.o -MD -MP -MF .deps/rendershadows.Tpo -c -o rendershadows.o rendershadows.cpp In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from renderlib.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from renderlib.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from renderlib.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from renderlib.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from renderlib.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from renderlib.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from renderlib.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from renderlib.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from renderlib.cpp:35: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/renderthreads.h:18, from renderlib.cpp:35: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from ../include/renderthreads.h:19, from renderlib.cpp:35: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from renderlib.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from renderlib.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from renderlib.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from renderlib.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from renderlib.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from renderlib.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from renderlib.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from renderlib.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderlib.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from renderlib.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/transprender.h:5, from rendermine.cpp:30: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT renderthreads.o -MD -MP -MF .deps/renderthreads.Tpo -c -o renderthreads.o renderthreads.cpp rendermine.cpp: In function 'void RenderMineObjects(int)': rendermine.cpp:1207:16: warning: variable 'nSegLights' set but not used [-Wunused-but-set-variable] int nListPos, nSegLights = 0; ^~~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rendermine.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rendermine.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rendermine.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rendermine.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rendermine.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ renderlib.cpp: In function 'int LoadAddonBitmap(CBitmap**, const char*, int*)': renderlib.cpp:109:23: warning: '/d2x-xl/' directive writing 8 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (szFilename, "%s/d2x-xl/%s", gameFolders.szTextureDir [2], pszName); ^~~~~~~~~~~~~~ renderlib.cpp:109:10: note: 'sprintf' output 9 or more bytes (assuming 263) into a destination of size 255 sprintf (szFilename, "%s/d2x-xl/%s", gameFolders.szTextureDir [2], pszName); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ renderlib.cpp:111:24: warning: '/d2x-xl/' directive writing 8 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf (szFilename, "%s/d2x-xl/%s", gameFolders.szTextureDir [0], pszName); ^~~~~~~~~~~~~~ renderlib.cpp:111:11: note: 'sprintf' output 9 or more bytes (assuming 263) into a destination of size 255 sprintf (szFilename, "%s/d2x-xl/%s", gameFolders.szTextureDir [0], pszName); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rendermine.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rendermine.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from rendermine.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from rendermine.cpp:30: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from rendermine.cpp:30: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from rendermine.cpp:30: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from rendermine.cpp:30: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from rendermine.cpp:30: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rendermine.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rendermine.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rendermine.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rendermine.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rendermine.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rendermine.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from rendermine.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rendermine.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from rendermine.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from rendermine.cpp:30: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rendermine.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from rendermine.cpp:30: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from rendermine.cpp:30: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from rendermine.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from rendermine.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rendermine.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from rendermine.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from rendermine.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rendermine.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from rendermine.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from rendermine.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rendermine.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rendershadows.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rendershadows.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from rendershadows.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ render_lighting.cpp: In function 'void FixTriangleFan(CSegment*, CSegFace*)': render_lighting.cpp:226:9: warning: 'void* memcpy(void*, const void*, size_t)' accessing 6 bytes at offsets 0 and 2 overlaps 4 bytes at offset 2 [-Wrestrict] memcpy (faceP->m_info.index, faceP->m_info.index + 1, 3 * sizeof (short)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/render_lighting.Tpo .deps/render_lighting.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT sphere.o -MD -MP -MF .deps/sphere.Tpo -c -o sphere.o sphere.cpp rendershadows.cpp: In function 'void CreateShadowTexture()': rendershadows.cpp:122:43: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&shadowBuf, 0, sizeof (shadowBuf)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rendershadows.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ rendershadows.cpp:119:8: warning: variable 'i' set but not used [-Wunused-but-set-variable] GLint i; ^ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rendershadows.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rendershadows.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rendershadows.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rendershadows.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rendershadows.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rendershadows.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rendershadows.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from rendershadows.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from rendershadows.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rendershadows.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rendershadows.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from rendershadows.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rendershadows.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rendershadows.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from rendershadows.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rendershadows.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from rendershadows.cpp:29: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from rendershadows.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from rendershadows.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from rendershadows.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from rendershadows.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from rendershadows.cpp:29: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from rendershadows.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from rendershadows.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rendershadows.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from renderthreads.cpp:21: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from renderthreads.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sphere.cpp:9: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sphere.cpp:9: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from renderthreads.cpp:21: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from sphere.cpp:9: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/renderlib.Tpo .deps/renderlib.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT transprender.o -MD -MP -MF .deps/transprender.Tpo -c -o transprender.o transprender.cpp In file included from ../include/transprender.h:5, from sphere.cpp:21: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sphere.cpp:9: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sphere.cpp:9: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sphere.cpp:9: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sphere.cpp:9: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sphere.cpp:9: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from sphere.cpp:9: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from sphere.cpp:9: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from sphere.cpp:9: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from sphere.cpp:21: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from sphere.cpp:21: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from sphere.cpp:21: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from sphere.cpp:21: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from sphere.cpp:21: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sphere.cpp:9: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sphere.cpp:9: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sphere.cpp:9: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from sphere.cpp:9: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from sphere.cpp:9: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from sphere.cpp:9: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from sphere.cpp:9: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sphere.cpp:9: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from sphere.cpp:11: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from sphere.cpp:21: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sphere.cpp:9: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from sphere.cpp:21: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from sphere.cpp:21: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from sphere.cpp:9: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from sphere.cpp:9: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from sphere.cpp:9: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/rendershadows.Tpo .deps/rendershadows.Po In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from sphere.cpp:9: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT visculling.o -MD -MP -MF .deps/visculling.Tpo -c -o visculling.o visculling.cpp In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from sphere.cpp:11: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from sphere.cpp:9: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from sphere.cpp:9: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from sphere.cpp:9: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sphere.cpp:9: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from renderthreads.cpp:27: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from renderthreads.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from renderthreads.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from renderthreads.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from renderthreads.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from renderthreads.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from renderthreads.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from renderthreads.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from renderthreads.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from renderthreads.cpp:25: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from renderthreads.cpp:27: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from renderthreads.cpp:27: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from renderthreads.cpp:27: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from renderthreads.cpp:27: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from renderthreads.cpp:21: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from visculling.cpp:23: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from visculling.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from visculling.cpp:23: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from transprender.cpp:26: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from transprender.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from transprender.cpp:26: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from renderthreads.cpp:21: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from renderthreads.cpp:21: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from renderthreads.cpp:21: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from renderthreads.cpp:21: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from renderthreads.cpp:21: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from renderthreads.cpp:21: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from renderthreads.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/objsmoke.h:4, from renderthreads.cpp:25: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from renderthreads.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from renderthreads.cpp:27: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from renderthreads.cpp:27: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from renderthreads.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from renderthreads.cpp:21: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from renderthreads.cpp:21: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from renderthreads.cpp:21: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from renderthreads.cpp:21: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from renderthreads.cpp:21: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from renderthreads.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from renderthreads.cpp:21: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from renderthreads.cpp:21: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from renderthreads.cpp:21: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/transprender.h:5, from visculling.cpp:30: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ visculling.cpp: In function 'void BuildRenderSegList(short int, int, bool)': visculling.cpp:588:10: warning: variable 'andCodes' set but not used [-Wunused-but-set-variable] ubyte andCodes, andCodes3D; ^~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from visculling.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from visculling.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from transprender.cpp:35: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ mv -f .deps/renderthreads.Tpo .deps/renderthreads.Po transprender.cpp: In member function 'void CTransparencyRenderer::RenderSpark(tTranspSpark*)': transprender.cpp:1173:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (sparkBuffer.nSparks >= SPARK_BUF_SIZE) ^~ transprender.cpp:1176:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' tSparkVertex *infoP = sparkBuffer.info + 4 * sparkBuffer.nSparks; ^~~~~~~~~~~~ transprender.cpp: In member function 'void CTransparencyRenderer::RenderBullet(CParticle*)': transprender.cpp:1239:26: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&o, 0, sizeof (o)); ^ In file included from ../include/descent.h:99, from transprender.cpp:26: ../include/object.h:713:7: note: 'class CObject' declared here class CObject : public CObjectInfo { ^~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from transprender.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from transprender.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from transprender.cpp:26: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from transprender.cpp:26: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from transprender.cpp:26: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from visculling.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from visculling.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from visculling.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from visculling.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from visculling.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from visculling.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from visculling.cpp:30: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from visculling.cpp:30: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from visculling.cpp:30: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from visculling.cpp:30: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from visculling.cpp:30: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from transprender.cpp:26: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from visculling.cpp:23: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from transprender.cpp:26: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from transprender.cpp:26: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from visculling.cpp:23: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from visculling.cpp:23: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from visculling.cpp:23: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from transprender.cpp:35: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from transprender.cpp:35: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from transprender.cpp:35: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from visculling.cpp:23: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from transprender.cpp:35: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CParticleEmitter]': ../include/particles.h:151:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from transprender.cpp:39: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from transprender.cpp:26: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from visculling.cpp:23: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from visculling.cpp:23: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from visculling.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from visculling.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from visculling.cpp:30: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from visculling.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from visculling.cpp:30: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:5, from visculling.cpp:30: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from visculling.cpp:23: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from visculling.cpp:23: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from visculling.cpp:23: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from visculling.cpp:23: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from visculling.cpp:27: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from visculling.cpp:23: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from visculling.cpp:23: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from visculling.cpp:23: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from visculling.cpp:23: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from transprender.cpp:26: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from transprender.cpp:26: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from transprender.cpp:26: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from transprender.cpp:26: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from transprender.cpp:26: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from transprender.cpp:26: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from transprender.cpp:26: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from transprender.cpp:31: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from transprender.cpp:35: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from transprender.cpp:35: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CParticleEmitter]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CParticleEmitter]' ../include/particles.h:151:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CParticleEmitter' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/transprender.h:4, from transprender.cpp:39: ../include/particles.h:119:7: note: 'class CParticleEmitter' declared here class CParticleEmitter : public tParticleEmitter { ^~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]': ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from transprender.cpp:26: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from transprender.cpp:26: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from transprender.cpp:26: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from transprender.cpp:26: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from transprender.cpp:26: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from transprender.cpp:31: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDataPool::CPoolElem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CDataPool::CPoolElem]' ../include/cdatapool.h:19:8: required from 'CDataPool<_T>::CDataPool() [with _T = CParticleSystem]' ../include/particles.h:211:23: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CDataPool::CPoolElem' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ogl_texture.h:12, from ../include/bitmap.h:5, from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from transprender.cpp:26: ../include/cdatapool.h:12:8: note: 'class CDataPool::CPoolElem' declared here class CPoolElem { ^~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from transprender.cpp:26: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from transprender.cpp:26: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from transprender.cpp:26: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/sphere.Tpo .deps/sphere.Po mv -f .deps/visculling.Tpo .deps/visculling.Po mv -f .deps/rendermine.Tpo .deps/rendermine.Po mv -f .deps/transprender.Tpo .deps/transprender.Po rm -f librender.a ar cru librender.a automap.o cameras.o fastrender.o gpgpu_lighting.o morph.o objeffects.o objrender.o oofrender.o polymodelrender.o radar.o renderframe.o renderlib.o render_lighting.o rendermine.o rendershadows.o renderthreads.o sphere.o transprender.o visculling.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib librender.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/render' Making all in weapons gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121/weapons' c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT dropweapon.o -MD -MP -MF .deps/dropweapon.Tpo -c -o dropweapon.o dropweapon.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT laser.o -MD -MP -MF .deps/laser.Tpo -c -o laser.o laser.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT omega.o -MD -MP -MF .deps/omega.Tpo -c -o omega.o omega.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT pickupweapon.o -MD -MP -MF .deps/pickupweapon.Tpo -c -o pickupweapon.o pickupweapon.cpp c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT seismic.o -MD -MP -MF .deps/seismic.Tpo -c -o seismic.o seismic.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from pickupweapon.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from pickupweapon.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from pickupweapon.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from omega.cpp:5: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from omega.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from omega.cpp:5: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from laser.cpp:24: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from laser.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from laser.cpp:24: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from omega.cpp:9: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from omega.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from omega.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from omega.cpp:5: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from omega.cpp:5: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from omega.cpp:5: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from omega.cpp:5: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from omega.cpp:5: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from omega.cpp:5: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from omega.cpp:9: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from omega.cpp:9: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from omega.cpp:9: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from omega.cpp:9: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from omega.cpp:5: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from omega.cpp:5: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from omega.cpp:5: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from omega.cpp:5: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from omega.cpp:5: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from omega.cpp:5: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from omega.cpp:5: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from omega.cpp:5: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from omega.cpp:8: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from dropweapon.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from dropweapon.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from dropweapon.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from pickupweapon.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from pickupweapon.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from pickupweapon.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from pickupweapon.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from pickupweapon.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from pickupweapon.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from pickupweapon.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from seismic.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from seismic.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from seismic.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from laser.cpp:26: ../include/lightning.h: In member function 'CLightning& CLightning::operator=(CLightning&)': ../include/lightning.h:115:46: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (this, &source, sizeof (CLightning)); ^ ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ laser.cpp: In function 'int CreateWeaponObject(ubyte, short int, CFixVector*, short int)': laser.cpp:205:7: warning: variable 'rType' set but not used [-Wunused-but-set-variable] int rType = -1; ^~~~~ laser.cpp:206:7: warning: variable 'xLaserRadius' set but not used [-Wunused-but-set-variable] fix xLaserRadius = -1; ^~~~~~~~~~~~ laser.cpp: In function 'CFixVector* GetGunPoints(CObject*, int)': laser.cpp:611:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!objP) ^~ laser.cpp:614:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' tGunInfo* giP = gameData.models.gunInfo + objP->rType.polyObjInfo.nModel; ^~~~~~~~ laser.cpp: In function 'void GetPlayerMslLock()': laser.cpp:1769:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (gameStates.app.bPlayerIsDead) ^~ laser.cpp:1772:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' int nWeapon, nObject, nGun, h, i, j; ^~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from laser.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from laser.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from laser.cpp:24: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from laser.cpp:24: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from laser.cpp:24: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from laser.cpp:24: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from laser.cpp:24: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from laser.cpp:24: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightningNode]': ../include/lightning.h:55:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from laser.cpp:26: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightningNode]': ../include/lightning.h:93:46: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CLightningNode'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from laser.cpp:26: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CLightning]': ../include/lightning.h:131:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from laser.cpp:26: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CLightning]': ../include/lightning.h:148:53: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CLightning' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from laser.cpp:26: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from laser.cpp:24: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from laser.cpp:24: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from laser.cpp:24: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from laser.cpp:24: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from laser.cpp:24: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from laser.cpp:24: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from laser.cpp:24: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from laser.cpp:24: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from laser.cpp:26: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from laser.cpp:26: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from laser.cpp:34: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from laser.cpp:24: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from laser.cpp:24: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from laser.cpp:24: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from laser.cpp:24: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from ../include/rendermine.h:18, from laser.cpp:34: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from laser.cpp:24: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from laser.cpp:24: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from laser.cpp:24: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from seismic.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from pickupweapon.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from pickupweapon.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from pickupweapon.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from pickupweapon.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from pickupweapon.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from pickupweapon.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from pickupweapon.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from pickupweapon.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from pickupweapon.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from pickupweapon.cpp:25: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from seismic.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from seismic.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from pickupweapon.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from pickupweapon.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from pickupweapon.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from pickupweapon.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from pickupweapon.cpp:25: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from pickupweapon.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from pickupweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from pickupweapon.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from seismic.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from seismic.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightningNode]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightningNode]' ../include/lightning.h:55:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CLightningNode'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from omega.cpp:9: ../include/lightning.h:24:7: note: 'class CLightningNode' declared here class CLightningNode : public tLightningNode { ^~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CLightning]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CLightning]' ../include/lightning.h:131:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CLightning' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from omega.cpp:9: ../include/lightning.h:91:7: note: 'class CLightning' declared here class CLightning : public tLightning { ^~~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from omega.cpp:5: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from omega.cpp:5: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from omega.cpp:5: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from omega.cpp:5: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from omega.cpp:8: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from omega.cpp:5: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from omega.cpp:5: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from omega.cpp:5: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from dropweapon.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from dropweapon.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from dropweapon.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from dropweapon.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from dropweapon.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from seismic.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from dropweapon.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from dropweapon.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from dropweapon.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from dropweapon.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from dropweapon.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from dropweapon.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from dropweapon.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from dropweapon.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from dropweapon.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from dropweapon.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from dropweapon.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from dropweapon.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from dropweapon.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from dropweapon.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from dropweapon.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from dropweapon.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from dropweapon.cpp:28: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from dropweapon.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from dropweapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from dropweapon.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from seismic.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from seismic.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from seismic.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from seismic.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from seismic.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from seismic.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from seismic.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from seismic.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from seismic.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from seismic.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from seismic.cpp:25: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from seismic.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from seismic.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from seismic.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from seismic.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from seismic.cpp:25: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from seismic.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from seismic.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from seismic.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/omega.Tpo .deps/omega.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT weapon.o -MD -MP -MF .deps/weapon.Tpo -c -o weapon.o weapon.cpp mv -f .deps/seismic.Tpo .deps/seismic.Po c++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/local/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -std=gnu++98 -MT weaponorder.o -MD -MP -MF .deps/weaponorder.Tpo -c -o weaponorder.o weaponorder.cpp In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from weaponorder.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from weaponorder.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from weaponorder.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ mv -f .deps/dropweapon.Tpo .deps/dropweapon.Po mv -f .deps/pickupweapon.Tpo .deps/pickupweapon.Po In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from weapon.cpp:22: ../include/bitmap.h: In member function 'CBitmap& CBitmap::Clone(CBitmap&)': ../include/bitmap.h:347:42: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (&clone, this, sizeof (CBitmap)); ^ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from weapon.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/canvas.h:21, from ../include/gr.h:22, from ../include/3d.h:20, from ../include/descent.h:92, from weapon.cpp:22: ../include/font.h: In member function 'void CFont::GetInfo(tFont&)': ../include/font.h:100:76: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'tFont' {aka 'struct tFont'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] inline void GetInfo (tFont& info) { memcpy (&info, &m_info, sizeof (info)); } ^ ../include/font.h:36:16: note: 'tFont' {aka 'struct tFont'} declared here typedef struct tFont { ^~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from weapon.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from weapon.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from weapon.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from weapon.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from weapon.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from weapon.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from weapon.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from weapon.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from weapon.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from weapon.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from weapon.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from weapon.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from weapon.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from weapon.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from weapon.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from weapon.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from weapon.cpp:23: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from weapon.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from weapon.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from weapon.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from weapon.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/lightmap.h:9, from ../include/ogl_render.h:12, from ../include/cockpit.h:25, from weapon.cpp:23: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from weapon.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from weapon.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from weapon.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CBitmap]': ../include/font.h:36:16: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from weaponorder.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of '_T& CArray<_T>::operator=(_T*) [with _T = CBitmap]': ../include/font.h:96:64: required from here ../include/carray.h:238:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBitmap' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (m_data.buffer, source, m_data.length * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from weaponorder.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CCharArray]': ../include/tga.h:33:21: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSubModel]': ../include/oof.h:391:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from weaponorder.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]': ../include/oof.h:162:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from weaponorder.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = OOF::CBattery]': ../include/oof.h:211:7: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from weaponorder.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CSubModel]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from weaponorder.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = POF::CFace]': ../include/pof.h:112:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from weaponorder.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]': ../include/rendermodel.h:181:13: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from weaponorder.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBitmap]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CBitmap]' ../include/font.h:36:16: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBitmap' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/gr.h:20, from ../include/3d.h:20, from ../include/descent.h:92, from weaponorder.cpp:22: ../include/bitmap.h:132:7: note: 'class CBitmap' declared here class CBitmap : public CArray< ubyte > { ^~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CCharArray]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CCharArray]' ../include/tga.h:33:21: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CCharArray' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h:385:7: note: 'class CCharArray' declared here class CCharArray : public CArray { ^~~~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSubModel]' ../include/oof.h:391:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CSubModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from weaponorder.cpp:22: ../include/oof.h:307:7: note: 'class OOF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CSpecialPoint]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CSpecialPoint]' ../include/oof.h:162:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OOF::CSpecialPoint'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from weaponorder.cpp:22: ../include/oof.h:146:7: note: 'class OOF::CSpecialPoint' declared here class CSpecialPoint { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = OOF::CBattery]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = OOF::CBattery]' ../include/oof.h:211:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class OOF::CBattery' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:106, from weaponorder.cpp:22: ../include/oof.h:197:7: note: 'class OOF::CBattery' declared here class CBattery { ^~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CSubModel]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from weaponorder.cpp:22: ../include/pof.h:50:7: note: 'class POF::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CFace]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = POF::CFace]' ../include/pof.h:112:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class POF::CFace'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from weaponorder.cpp:22: ../include/pof.h:15:7: note: 'class POF::CFace' declared here class CFace { ^~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = RenderModel::CSubModel]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = RenderModel::CSubModel]' ../include/rendermodel.h:181:13: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class RenderModel::CSubModel'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2242, from weaponorder.cpp:22: ../include/rendermodel.h:85:7: note: 'class RenderModel::CSubModel' declared here class CSubModel { ^~~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]': ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:207:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class CBossInfo' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy (p, m_data.buffer, ((length > m_data.length) ? m_data.length : length) * sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from weaponorder.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'CArray<_T>::CArray() [with _T = CMenuItem]': ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:78:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (m_data.null)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from weaponorder.cpp:25: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CAudioChannel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CAudioChannel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CAudioChannel]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CAudioChannel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from weaponorder.cpp:22: ../include/audio.h:155:7: note: 'class CAudioChannel' declared here class CAudioChannel { ^~~~~~~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CDynLight]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CDynLight]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CDynLight]' ../include/carray.h:406:7: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CDynLight'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:1319, from weaponorder.cpp:22: ../include/dynlight.h:83:7: note: 'class CDynLight' declared here class CDynLight { ^~~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = POF::CModel]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = POF::CModel]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = POF::CModel]' ../include/descent.h:2030:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class POF::CModel' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/descent.h:2008, from weaponorder.cpp:22: ../include/pof.h:83:7: note: 'class POF::CModel' declared here class CModel { ^~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundSample]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundSample]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundSample]' ../include/descent.h:2060:18: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CSoundSample' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from weaponorder.cpp:22: ../include/audio.h:65:7: note: 'class CSoundSample' declared here class CSoundSample { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CMenuItem]': ../include/carray.h:79:4: required from 'CArray<_T>::CArray() [with _T = CMenuItem]' ../include/cstack.h:15:13: required from 'CStack<_T>::CStack() [with _T = CMenuItem]' ../include/menu.h:210:12: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMenuItem'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/network.h:19, from weaponorder.cpp:25: ../include/menu.h:101:7: note: 'class CMenuItem' declared here class CMenuItem { ^~~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CSoundObject]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CSoundObject]' ../include/carray.h:87:15: required from 'CArray<_T>::~CArray() [with _T = CSoundObject]' ../include/cstack.h:20:27: required from 'CStack<_T>::~CStack() [with _T = CSoundObject]' ../include/audio.h:288:14: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CSoundObject'; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/piggy.h:17, from ../include/loadgamedata.h:19, from ../include/descent.h:93, from weaponorder.cpp:22: ../include/audio.h:216:7: note: 'class CSoundObject' declared here class CSoundObject { ^~~~~~~~~~~~ In file included from ../include/descent.h:25, from weaponorder.cpp:22: ../include/carray.h: In instantiation of 'void CArray<_T>::Init() [with _T = CBossInfo]': ../include/carray.h:155:5: required from 'void CArray<_T>::Destroy() [with _T = CBossInfo]' ../include/carray.h:161:5: required from '_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/carray.h:193:12: required from '_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]' ../include/cstack.h:31:57: required from 'bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]' ../include/descent.h:2703:56: required from here ../include/carray.h:95:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CBossInfo' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] memset (&m_data.null, 0, sizeof (_T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from weaponorder.cpp:22: ../include/descent.h:2636:7: note: 'class CBossInfo' declared here class CBossInfo { ^~~~~~~~~ mv -f .deps/weapon.Tpo .deps/weapon.Po mv -f .deps/laser.Tpo .deps/laser.Po mv -f .deps/weaponorder.Tpo .deps/weaponorder.Po rm -f libweapons.a ar cru libweapons.a dropweapon.o laser.o omega.o pickupweapon.o seismic.o weapon.o weaponorder.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') ranlib libweapons.a gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121/weapons' gmake[4]: Entering directory '/construction/games/d2x-xl/d2x-xl-1.14.121' c++ -I ./arch/linux/include -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -pipe -Wall -Wno-char-subscripts -pipe -O2 -fno-strict-aliasing -L/usr/local/lib -o d2x-xl 2d/lib2d.a main/libmain.a audio/libaudio.a console/libconsole.a menus/libmenus.a cockpit/libcockpit.a effects/libeffects.a gameio/libgameio.a gamemodes/libgamemodes.a input/libinput.a io/libio.a libmve/libmve.a lighting/liblighting.a maths/libmaths.a misc/libmisc.a models/libmodels.a network/libnetwork.a menus/libmenus.a objects/libobjects.a ogl/libogl.a physics/libphysics.a render/librender.a menus/libmenus.a weapons/libweapons.a 2d/lib2d.a 3d/lib3d.a ai/libai.a main/libmain.a ogl/libogl.a -lm -lXm -lXt -lX11 -lGL -lGLU -lSDL_mixer -lSDL_image -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -pthread gmake[4]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121' gmake[3]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121' gmake[2]: Leaving directory '/construction/games/d2x-xl/d2x-xl-1.14.121' -------------------------------------------------------------------------------- -- Phase: run-depends -------------------------------------------------------------------------------- ===> d2x-xl-1.14.121_10 depends on executable: unrar - found ===> d2x-xl-1.14.121_10 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found -------------------------------------------------------------------------------- -- Phase: stage -------------------------------------------------------------------------------- ===> Staging for d2x-xl-1.14.121_10 ===> Generating temporary packing list install -s -m 555 /construction/games/d2x-xl/d2x-xl-1.14.121/d2x-xl /construction/games/d2x-xl/stage/usr/local/bin/d2x-xl ====> Compressing man pages (compress-man) -------------------------------------------------------------------------------- -- Phase: package -------------------------------------------------------------------------------- ===> Building package for d2x-xl-1.14.121_10 file sizes/checksums [75]: . done packing files [75]: . done packing directories [0]: . done -------------------------------------------------- -- Termination -------------------------------------------------- Finished: Tuesday, 23 OCT 2018 at 19:25:54 UTC Duration: 00:04:41