Package: openspades
The Cooker is currently building: openspades
2026-07-14
Cook: openspades 0.1.3
================================================================================
QA: checking package receipt...
Checking build dependencies...
Installing (pkg/local): nettle-3.7.3
Installing (pkg/local): libtasn1-4.19.0
Installing (pkg/local): p11-kit-0.24.1
Installing (pkg/local): libgnutls-3.8.3
Installing (pkg/local): libidn-1.38
Installing (pkg/local): libcurl-7.81.0
Installing (pkg/local): curl-7.81.0
Installing (pkg/local): gmp-dev-6.3.0
Installing (pkg/local): gnutls-3.8.3
Installing (pkg/local): libgpg-error-dev-1.44
Installing (pkg/local): libgcrypt-dev-1.9.4
Installing (pkg/local): libtasn1-dev-4.19.0
Installing (pkg/local): nettle-dev-3.7.3
Installing (pkg/local): gtk-doc-1.32
Installing (pkg/local): p11-kit-dev-0.24.1
Installing (pkg/local): libunistring-dev-1.0
Installing (pkg/local): gnutls-dev-3.8.3
Installing (pkg/local): libidn-dev-1.38
Installing (pkg/local): libcrypto-dev-3.5.3
Installing (pkg/local): openssl-dev-3.5.3
Installing (pkg/local): curl-dev-7.81.0
Installing (pkg/local): libmagic-5.45
Installing (pkg/local): file-5.45
Installing (pkg/local): openal-1.22.0
Installing (pkg/local): freealut-1.1.0
Installing (pkg/local): openal-dev-1.22.0
Installing (pkg/local): freealut-dev-1.1.0
Installing (pkg/local): gcc83-8.3.0
Installing (pkg/local): linux-agp-3.16.55
Installing (pkg/local): linux-drm-3.16.55
Installing (pkg/local): xorg-libpciaccess-0.16
Installing (pkg/local): libdrm-2.4.100
Installing (pkg/local): xorg-libXfixes-5.0.3
Installing (pkg/local): xorg-libXdamage-1.1.5
Installing (pkg/local): xorg-libXxf86vm-1.1.4
Installing (pkg/local): libpthread-stubs-0.2
Installing (pkg/local): xorg-libICE-1.0.10
Installing (pkg/local): xorg-libSM-1.2.3
Installing (pkg/local): xorg-libXt-1.2.0
Installing (pkg/local): mesa-9.2.5
Installing (pkg/local): libglu-mesa-9.0.0
Installing (pkg/local): xorg-libXmu-1.1.3
Installing (pkg/local): xorg-libXi-1.7.10
Installing (pkg/local): glew-2.1.0
Installing (pkg/local): glew-dev-2.1.0
Installing (pkg/local): grep-3.7
Installing (pkg/local): fftw-3.3.10
Installing (pkg/local): libjpeg-9f
Installing (pkg/local): jpeg-9f
Installing (pkg/local): xorg-libXpm-3.5.13
Installing (pkg/local): libgd-2.3.3
Installing (pkg/local): shared-mime-info-2.2
Installing (pkg/local): tiff-4.4.0
Installing (pkg/local): gdk-pixbuf-2.31.1
Installing (pkg/local): libcroco-0.6.13
Installing (pkg/local): xorg-libXft-2.3.3
Installing (pkg/local): pango-1.36.8
Installing (pkg/local): librsvg-2.40.16
Installing (pkg/local): graphviz-3.0.0
Installing (pkg/local): ilmbase-2.3.0
Installing (pkg/local): xorg-libXrandr-1.5.2
Installing (pkg/local): freeglut-3.2.2
Installing (pkg/local): jasper-3.0.2
Installing (pkg/local): jbigkit-2.1
Installing (pkg/local): lcms-1.19
Installing (pkg/local): libgsf-1.14.46
Installing (pkg/local): libltdl-2.4.6
Installing (pkg/local): openexr-2.5.3
Installing (pkg/local): libwebp-1.3.2
Installing (pkg/local): imagemagick-7.1.0.27
Installing (pkg/local): libogg-1.3.5
Installing (pkg/local): libogg-dev-1.3.5
Installing (pkg/local): alsa-lib-1.2.7
Installing (pkg/local): dbus-1.12.20
Installing (pkg/local): libsdl2-2.0.20
Installing (pkg/local): libsdl2-dev-2.0.20
Installing (pkg/local): libsdl2-image-2.0.5
Installing (pkg/local): jpeg-dev-9f
Installing (pkg/local): libsdl2-image-dev-2.0.5
Installing (pkg/local): libdrm-intel-2.4.100
Installing (pkg/local): libdrm-radeon-2.4.100
Installing (pkg/local): libdrm-dev-2.4.100
Installing (pkg/local): libglu-mesa-dev-9.0.0
Installing (pkg/local): xorg-libXp-1.0.3
Installing (pkg/local): lesstif-0.95.2
Installing (pkg/local): libglw-mesa-8.0.0
Installing (pkg/local): libglw-mesa-dev-8.0.0
Installing (pkg/local): mesa-dri-9.2.5
Installing (pkg/local): mesa-dri-ati-9.2.5
Installing (pkg/local): mesa-dri-intel-9.2.5
Installing (pkg/local): libdrm-nouveau-2.4.100
Installing (pkg/local): mesa-dri-nouveau-9.2.5
Installing (pkg/local): xorg-util-macros-1.19.2
Installing (pkg/local): xorg-dri2proto-2.8
Installing (pkg/local): xorg-xproto-7.0.31
Installing (pkg/local): xorg-glproto-1.4.17
Installing (pkg/local): xorg-xextproto-7.3.0
Installing (pkg/local): xorg-fixesproto-5.0
Installing (pkg/local): xorg-damageproto-1.2.1
Installing (pkg/local): xorg-libXau-dev-1.0.9
Installing (pkg/local): xorg-libXdmcp-dev-1.1.3
Installing (pkg/local): libxcb-dev-1.14
Installing (pkg/local): xorg-inputproto-2.3.2
Installing (pkg/local): xorg-kbproto-1.0.7
Installing (pkg/local): xorg-xtrans-1.4.0
Installing (pkg/local): xorg-libX11-dev-1.7.0
Installing (pkg/local): xorg-libXfixes-dev-5.0.3
Installing (pkg/local): xorg-libXdamage-dev-1.1.5
Installing (pkg/local): xorg-libICE-dev-1.0.10
Installing (pkg/local): xorg-libSM-dev-1.2.3
Installing (pkg/local): xorg-libXt-dev-1.2.0
Installing (pkg/local): xorg-libXext-dev-1.3.4
Installing (pkg/local): xorg-xf86vidmodeproto-2.3.1
Installing (pkg/local): xorg-libXxf86vm-dev-1.1.4
Installing (pkg/local): mesa-dev-9.2.5
Installing (pkg/local): opus-1.3.1
Installing (pkg/local): opusfile-0.12
Installing (pkg/local): opus-dev-1.3.1
Installing (pkg/local): opusfile-dev-0.12
Installing (pkg/local): unzip-6.0
Installing (pkg/local): zip-3.0
Installing (pkg/local): cmake3-3.31.12
Extracting source archive "openspades-0.1.3.tar.gz"
Executing: compile_rules
CFLAGS : -march=i486 -Os -pipe -fstack-protector-strong
CXXLAGS : -march=i486 -Os -pipe -fstack-protector-strong
CPPFLAGS : -D_GLIBCXX_USE_C99_MATH=1 -D_FORTIFY_SOURCE=2
LDFLAGS : -Wl,--as-needed,-z,relro,-z,now
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc-83 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++-83 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:16 (cmake_policy):
The OLD behavior for policy CMP0054 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found SDL2: /usr/lib/libSDL2main.a;/usr/lib/libSDL2.so;-lpthread
-- Found SDL2_image: /usr/lib/libSDL2_image.so
-- Found OpenGL: /usr/lib/libGL.so
-- Found ZLIB: /usr/lib/libz.so (found version "1.3.2")
-- Found CURL: /usr/lib/libcurl.so (found version "7.81.0")
-- Found Freetype: /usr/lib/libfreetype.so (found version "2.13.2")
-- Found OpusFile: /usr/lib/libopusfile.so
-- C++11 activated.
-- Looking for fcntl
-- Looking for fcntl - found
-- Looking for poll
-- Looking for poll - found
-- Looking for gethostbyname_r
-- Looking for gethostbyname_r - found
-- Looking for gethostbyaddr_r
-- Looking for gethostbyaddr_r - found
-- Looking for inet_pton
-- Looking for inet_pton - found
-- Looking for inet_ntop
-- Looking for inet_ntop - found
-- Performing Test HAS_MSGHDR_FLAGS
-- Performing Test HAS_MSGHDR_FLAGS - Success
-- Check size of socklen_t
-- Check size of socklen_t - done
CMake Warning (dev) at Resources/CMakeLists.txt:8 (add_custom_command):
Exactly one of PRE_BUILD, PRE_LINK, or POST_BUILD must be given. Assuming
POST_BUILD to preserve backward compatibility.
Policy CMP0175 is not set: add_custom_command() rejects invalid arguments.
Run "cmake --help-policy CMP0175" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at Resources/CMakeLists.txt:44 (add_custom_command):
Exactly one of PRE_BUILD, PRE_LINK, or POST_BUILD must be given. Assuming
POST_BUILD to preserve backward compatibility.
Policy CMP0175 is not set: add_custom_command() rejects invalid arguments.
Run "cmake --help-policy CMP0175" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at Resources/CMakeLists.txt:58 (add_custom_command):
Exactly one of PRE_BUILD, PRE_LINK, or POST_BUILD must be given. Assuming
POST_BUILD to preserve backward compatibility.
Policy CMP0175 is not set: add_custom_command() rejects invalid arguments.
Run "cmake --help-policy CMP0175" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at Resources/CMakeLists.txt:70 (add_custom_command):
Exactly one of PRE_BUILD, PRE_LINK, or POST_BUILD must be given. Assuming
POST_BUILD to preserve backward compatibility.
Policy CMP0175 is not set: add_custom_command() rejects invalid arguments.
Run "cmake --help-policy CMP0175" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at Resources/CMakeLists.txt:75 (add_custom_command):
Exactly one of PRE_BUILD, PRE_LINK, or POST_BUILD must be given. Assuming
POST_BUILD to preserve backward compatibility.
Policy CMP0175 is not set: add_custom_command() rejects invalid arguments.
Run "cmake --help-policy CMP0175" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Deprecation Warning at Sources/AngelScript/projects/cmake/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
CMake Deprecation Warning at Sources/AngelScript/projects/cmake_addons/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
-- Configuring done (1.4s)
-- Generating done (0.1s)
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_POLICY_VERSION_MINIMUM
-- Build files have been written to: ${src}/build
BASEURL ************ https://github.com/yvt/openspades-paks/releases/download/r33/OpenSpadesDevPackage-r33.zip
Connecting to github.com (140.82.121.4:443)
Connecting to release-assets.githubusercontent.com (185.199.110.133:443)
saving to 'OpenSpadesDevPackage-r33.zip'
OpenSpadesDevPackage 100% |********************************| 3941k 0:00:00 ETA
'OpenSpadesDevPackage-r33.zip' saved
Archive: OpenSpadesDevPackage-r33.zip
inflating: ./Nonfree/LICENSE.md
inflating: ./Nonfree/pak000-Nonfree.pak
inflating: ./OfficialMods/LICENSE
inflating: ./OfficialMods/font-unifont.pak
[ 0%] Built target OpenSpades_Resources_DevPaks
[ 1%] Packing assets
${src}/Resources ${src}/build/Resources
${src}/build/Resources
[ 1%] Built target OpenSpades_Resources
Generating FHS icons
convert: no decode delegate for this image format `ICO' @ error/constitute.c/ReadImage/737.
convert: no images defined `tmp/%[filename:res].png' @ error/convert.c/ConvertImageCommand/3325.
convert: unable to open image 'tmp/256x256.png': No such file or directory @ error/blob.c/OpenBlob/3527.
convert: no decode delegate for this image format `PNG' @ error/constitute.c/ReadImage/737.
convert: no images defined `tmp/128x128.png' @ error/convert.c/ConvertImageCommand/3325.
rm: can't remove 'tmp/40x40.png': No such file or directory
mv: can't rename 'tmp/*.png': No such file or directory
Done generating FHS icons
[ 1%] Built target OpenSpades_Unix
[ 2%] Building CXX object Sources/AngelScript/projects/cmake_addons/CMakeFiles/Angelscript_addons.dir/__/__/addons/scriptany.cpp.o
In file included from ${src}/Sources/AngelScript/addons/scriptany.h:6,
from ${src}/Sources/AngelScript/addons/scriptany.cpp:1:
${src}/Sources/AngelScript/addons/scriptany.cpp: In function 'void RegisterScriptAny_Native(asIScriptEngine*)':
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'int (CScriptAny::*)() const' to 'void (CScriptAny::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptany.cpp:153:74: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectBehaviour("any", asBEHAVE_ADDREF, "void f()", asMETHOD(CScriptAny,AddRef), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'int (CScriptAny::*)() const' to 'void (CScriptAny::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptany.cpp:154:75: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectBehaviour("any", asBEHAVE_RELEASE, "void f()", asMETHOD(CScriptAny,Release), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'int (CScriptAny::*)()' to 'void (CScriptAny::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptany.cpp:164:78: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectBehaviour("any", asBEHAVE_GETREFCOUNT, "int f()", asMETHOD(CScriptAny,GetRefCount), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'bool (CScriptAny::*)()' to 'void (CScriptAny::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptany.cpp:166:77: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectBehaviour("any", asBEHAVE_GETGCFLAG, "bool f()", asMETHOD(CScriptAny,GetFlag), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'void (CScriptAny::*)(asIScriptEngine*)' to 'void (CScriptAny::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptany.cpp:167:82: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectBehaviour("any", asBEHAVE_ENUMREFS, "void f(int&in)", asMETHOD(CScriptAny,EnumReferences), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'void (CScriptAny::*)(asIScriptEngine*)' to 'void (CScriptAny::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptany.cpp:168:85: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectBehaviour("any", asBEHAVE_RELEASEREFS, "void f(int&in)", asMETHOD(CScriptAny,ReleaseAllHandles), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/addons/scriptany.cpp:144:6: warning: variable 'r' set but not used [-Wunused-but-set-variable]
int r;
^
${src}/Sources/AngelScript/addons/scriptany.cpp: In function 'void RegisterScriptAny_Generic(asIScriptEngine*)':
${src}/Sources/AngelScript/addons/scriptany.cpp:173:6: warning: variable 'r' set but not used [-Wunused-but-set-variable]
int r;
^
[ 2%] Building CXX object Sources/AngelScript/projects/cmake_addons/CMakeFiles/Angelscript_addons.dir/__/__/addons/scriptarray.cpp.o
In file included from ${src}/Sources/AngelScript/addons/scriptarray.h:6,
from ${src}/Sources/AngelScript/addons/scriptarray.cpp:8:
${src}/Sources/AngelScript/addons/scriptarray.cpp: In function 'void RegisterScriptArray_Native(asIScriptEngine*)':
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'CScriptArray& (CScriptArray::*)(const CScriptArray&)' to 'void (CScriptArray::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptarray.cpp:291:88: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("array<T>", "array<T> &opAssign(const array<T>&in)", asMETHOD(CScriptArray, operator=), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'void (CScriptArray::*)(void*)' to 'void (CScriptArray::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptarray.cpp:296:84: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("array<T>", "void insertLast(const T&in value)", asMETHOD(CScriptArray, InsertLast), asCALL_THISCALL); assert(r >= 0);
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'void (CScriptArray::*)(asUINT)' {aka 'void (CScriptArray::*)(unsigned int)'} to 'void (CScriptArray::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptarray.cpp:297:76: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("array<T>", "void removeAt(uint index)", asMETHOD(CScriptArray, RemoveAt), asCALL_THISCALL); assert(r >= 0);
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'void (CScriptArray::*)(asUINT, asUINT)' {aka 'void (CScriptArray::*)(unsigned int, unsigned int)'} to 'void (CScriptArray::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptarray.cpp:299:91: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("array<T>", "void removeRange(uint start, uint count)", asMETHOD(CScriptArray, RemoveRange), asCALL_THISCALL); assert(r >= 0);
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'asUINT (CScriptArray::*)() const' {aka 'unsigned int (CScriptArray::*)() const'} to 'void (CScriptArray::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptarray.cpp:301:70: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("array<T>", "uint length() const", asMETHOD(CScriptArray, GetSize), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'void (CScriptArray::*)(asUINT)' {aka 'void (CScriptArray::*)(unsigned int)'} to 'void (CScriptArray::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptarray.cpp:302:76: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("array<T>", "void reserve(uint length)", asMETHOD(CScriptArray, Reserve), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'bool (CScriptArray::*)(const CScriptArray&) const' to 'void (CScriptArray::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptarray.cpp:315:89: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("array<T>", "bool opEquals(const array<T>&in) const", asMETHOD(CScriptArray, operator==), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'bool (CScriptArray::*)() const' to 'void (CScriptArray::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptarray.cpp:316:71: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("array<T>", "bool isEmpty() const", asMETHOD(CScriptArray, IsEmpty), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'asUINT (CScriptArray::*)() const' {aka 'unsigned int (CScriptArray::*)() const'} to 'void (CScriptArray::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptarray.cpp:319:74: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("array<T>", "uint get_length() const", asMETHOD(CScriptArray, GetSize), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'int (CScriptArray::*)()' to 'void (CScriptArray::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptarray.cpp:323:83: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectBehaviour("array<T>", asBEHAVE_GETREFCOUNT, "int f()", asMETHOD(CScriptArray, GetRefCount), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'bool (CScriptArray::*)()' to 'void (CScriptArray::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptarray.cpp:325:82: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectBehaviour("array<T>", asBEHAVE_GETGCFLAG, "bool f()", asMETHOD(CScriptArray, GetFlag), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'void (CScriptArray::*)(asIScriptEngine*)' to 'void (CScriptArray::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptarray.cpp:326:87: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectBehaviour("array<T>", asBEHAVE_ENUMREFS, "void f(int&in)", asMETHOD(CScriptArray, EnumReferences), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'void (CScriptArray::*)(asIScriptEngine*)' to 'void (CScriptArray::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptarray.cpp:327:90: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectBehaviour("array<T>", asBEHAVE_RELEASEREFS, "void f(int&in)", asMETHOD(CScriptArray, ReleaseAllHandles), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
[ 3%] Building CXX object Sources/AngelScript/projects/cmake_addons/CMakeFiles/Angelscript_addons.dir/__/__/addons/scriptbuilder.cpp.o
[ 3%] Building CXX object Sources/AngelScript/projects/cmake_addons/CMakeFiles/Angelscript_addons.dir/__/__/addons/scriptdictionary.cpp.o
In file included from ${src}/Sources/AngelScript/addons/scriptdictionary.h:10,
from ${src}/Sources/AngelScript/addons/scriptdictionary.cpp:3:
${src}/Sources/AngelScript/addons/scriptdictionary.cpp: In function 'void RegisterScriptDictionary_Native(asIScriptEngine*)':
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'bool (CScriptDictionary::*)(const dictKey_t&) const' {aka 'bool (CScriptDictionary::*)(const std::__cxx11::basic_string<char>&) const'} to 'void (CScriptDictionary::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptdictionary.cpp:1041:88: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("dictionary", "bool exists(const string &in) const", asMETHOD(CScriptDictionary,Exists), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'bool (CScriptDictionary::*)() const' to 'void (CScriptDictionary::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptdictionary.cpp:1042:73: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("dictionary", "bool isEmpty() const", asMETHOD(CScriptDictionary, IsEmpty), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'asUINT (CScriptDictionary::*)() const' {aka 'unsigned int (CScriptDictionary::*)() const'} to 'void (CScriptDictionary::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptdictionary.cpp:1043:73: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("dictionary", "uint getSize() const", asMETHOD(CScriptDictionary, GetSize), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'bool (CScriptDictionary::*)(const dictKey_t&)' {aka 'bool (CScriptDictionary::*)(const std::__cxx11::basic_string<char>&)'} to 'void (CScriptDictionary::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptdictionary.cpp:1044:82: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("dictionary", "bool delete(const string &in)", asMETHOD(CScriptDictionary,Delete), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'CScriptArray* (CScriptDictionary::*)() const' to 'void (CScriptDictionary::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptdictionary.cpp:1047:83: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("dictionary", "array<string> @getKeys() const", asMETHOD(CScriptDictionary,GetKeys), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'int (CScriptDictionary::*)()' to 'void (CScriptDictionary::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptdictionary.cpp:1053:85: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectBehaviour("dictionary", asBEHAVE_GETREFCOUNT, "int f()", asMETHOD(CScriptDictionary,GetRefCount), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'bool (CScriptDictionary::*)()' to 'void (CScriptDictionary::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptdictionary.cpp:1055:84: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectBehaviour("dictionary", asBEHAVE_GETGCFLAG, "bool f()", asMETHOD(CScriptDictionary,GetGCFlag), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'void (CScriptDictionary::*)(asIScriptEngine*)' to 'void (CScriptDictionary::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptdictionary.cpp:1056:89: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectBehaviour("dictionary", asBEHAVE_ENUMREFS, "void f(int&in)", asMETHOD(CScriptDictionary,EnumReferences), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'void (CScriptDictionary::*)(asIScriptEngine*)' to 'void (CScriptDictionary::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptdictionary.cpp:1057:92: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectBehaviour("dictionary", asBEHAVE_RELEASEREFS, "void f(int&in)", asMETHOD(CScriptDictionary,ReleaseAllReferences), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/addons/scriptdictionary.cpp:1000:6: warning: variable 'r' set but not used [-Wunused-but-set-variable]
int r;
^
${src}/Sources/AngelScript/addons/scriptdictionary.cpp: In function 'void RegisterScriptDictionary_Generic(asIScriptEngine*)':
${src}/Sources/AngelScript/addons/scriptdictionary.cpp:1076:6: warning: variable 'r' set but not used [-Wunused-but-set-variable]
int r;
^
[ 3%] Building CXX object Sources/AngelScript/projects/cmake_addons/CMakeFiles/Angelscript_addons.dir/__/__/addons/scripthandle.cpp.o
In file included from ${src}/Sources/AngelScript/addons/scripthandle.h:6,
from ${src}/Sources/AngelScript/addons/scripthandle.cpp:1:
${src}/Sources/AngelScript/addons/scripthandle.cpp: In function 'void RegisterScriptHandle_Native(asIScriptEngine*)':
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'CScriptHandle& (CScriptHandle::*)(const CScriptHandle&)' to 'void (CScriptHandle::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scripthandle.cpp:231:78: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("ref", "ref &opHndlAssign(const ref &in)", asMETHOD(CScriptHandle, operator=), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'CScriptHandle& (CScriptHandle::*)(void*, int)' to 'void (CScriptHandle::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scripthandle.cpp:232:75: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("ref", "ref &opHndlAssign(const ?&in)", asMETHOD(CScriptHandle, Assign), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/addons/scripthandle.cpp:218:6: warning: variable 'r' set but not used [-Wunused-but-set-variable]
int r;
^
${src}/Sources/AngelScript/addons/scripthandle.cpp: In function 'void RegisterScriptHandle_Generic(asIScriptEngine*)':
${src}/Sources/AngelScript/addons/scripthandle.cpp:306:6: warning: variable 'r' set but not used [-Wunused-but-set-variable]
int r;
^
[ 4%] Building CXX object Sources/AngelScript/projects/cmake_addons/CMakeFiles/Angelscript_addons.dir/__/__/addons/scripthelper.cpp.o
[ 4%] Building CXX object Sources/AngelScript/projects/cmake_addons/CMakeFiles/Angelscript_addons.dir/__/__/addons/scriptmath.cpp.o
${src}/Sources/AngelScript/addons/scriptmath.cpp: In function 'float fpFromIEEE(asUINT)':
${src}/Sources/AngelScript/addons/scriptmath.cpp:83:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return *reinterpret_cast<float*>(&raw);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/addons/scriptmath.cpp: In function 'asUINT fpToIEEE(float)':
${src}/Sources/AngelScript/addons/scriptmath.cpp:87:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return *reinterpret_cast<asUINT*>(&fp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/addons/scriptmath.cpp: In function 'double fpFromIEEE(asQWORD)':
${src}/Sources/AngelScript/addons/scriptmath.cpp:91:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return *reinterpret_cast<double*>(&raw);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/addons/scriptmath.cpp: In function 'asQWORD fpToIEEE(double)':
${src}/Sources/AngelScript/addons/scriptmath.cpp:95:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return *reinterpret_cast<asQWORD*>(&fp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/addons/scriptmath.cpp: In function 'void RegisterScriptMath_Native(asIScriptEngine*)':
${src}/Sources/AngelScript/addons/scriptmath.cpp:135:6: warning: variable 'r' set but not used [-Wunused-but-set-variable]
int r;
^
${src}/Sources/AngelScript/addons/scriptmath.cpp: In function 'void RegisterScriptMath_Generic(asIScriptEngine*)':
${src}/Sources/AngelScript/addons/scriptmath.cpp:281:6: warning: variable 'r' set but not used [-Wunused-but-set-variable]
int r;
^
[ 4%] Building CXX object Sources/AngelScript/projects/cmake_addons/CMakeFiles/Angelscript_addons.dir/__/__/addons/scriptmathcomplex.cpp.o
In file included from ${src}/Sources/AngelScript/addons/scriptmathcomplex.h:6,
from ${src}/Sources/AngelScript/addons/scriptmathcomplex.cpp:5:
${src}/Sources/AngelScript/addons/scriptmathcomplex.cpp: In function 'void RegisterScriptMathComplex_Native(asIScriptEngine*)':
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'float (Complex::*)() const' to 'void (Complex::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptmathcomplex.cpp:199:67: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("complex", "float abs() const", asMETHOD(Complex,length), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'Complex (Complex::*)() const' to 'void (Complex::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptmathcomplex.cpp:202:72: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("complex", "complex get_ri() const", asMETHOD(Complex, get_ri), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'Complex (Complex::*)() const' to 'void (Complex::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptmathcomplex.cpp:203:72: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("complex", "complex get_ir() const", asMETHOD(Complex, get_ir), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'void (Complex::*)(const Complex&)' to 'void (Complex::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptmathcomplex.cpp:204:80: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("complex", "void set_ri(const complex &in)", asMETHOD(Complex, set_ri), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'void (Complex::*)(const Complex&)' to 'void (Complex::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/scriptmathcomplex.cpp:205:80: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("complex", "void set_ir(const complex &in)", asMETHOD(Complex, set_ir), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/addons/scriptmathcomplex.cpp:166:6: warning: variable 'r' set but not used [-Wunused-but-set-variable]
int r;
^
[ 5%] Building CXX object Sources/AngelScript/projects/cmake_addons/CMakeFiles/Angelscript_addons.dir/__/__/addons/scriptstdstring.cpp.o
${src}/Sources/AngelScript/addons/scriptstdstring.cpp: In function 'int StringFindFirst(const string&, asUINT, const string&)':
${src}/Sources/AngelScript/addons/scriptstdstring.cpp:355:43: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
return (int)str.find(sub, (size_t)(start < 0 ? string::npos : start));
~~~~~~^~~
${src}/Sources/AngelScript/addons/scriptstdstring.cpp: In function 'int StringFindFirstOf(const string&, asUINT, const string&)':
${src}/Sources/AngelScript/addons/scriptstdstring.cpp:367:52: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
return (int)str.find_first_of(sub, (size_t)(start < 0 ? string::npos : start));
~~~~~~^~~
${src}/Sources/AngelScript/addons/scriptstdstring.cpp: In function 'int StringFindLastOf(const string&, asUINT, const string&)':
${src}/Sources/AngelScript/addons/scriptstdstring.cpp:379:51: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
return (int)str.find_last_of(sub, (size_t)(start < 0 ? string::npos : start));
~~~~~~^~~
${src}/Sources/AngelScript/addons/scriptstdstring.cpp: In function 'int StringFindFirstNotOf(const string&, asUINT, const string&)':
${src}/Sources/AngelScript/addons/scriptstdstring.cpp:390:56: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
return (int)str.find_first_not_of(sub, (size_t)(start < 0 ? string::npos : start));
~~~~~~^~~
${src}/Sources/AngelScript/addons/scriptstdstring.cpp: In function 'int StringFindLastNotOf(const string&, asUINT, const string&)':
${src}/Sources/AngelScript/addons/scriptstdstring.cpp:401:51: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
return (int)str.find_last_of(sub, (size_t)(start < 0 ? string::npos : start));
~~~~~~^~~
[ 5%] Building CXX object Sources/AngelScript/projects/cmake_addons/CMakeFiles/Angelscript_addons.dir/__/__/addons/scriptstdstring_utils.cpp.o
${src}/Sources/AngelScript/addons/scriptstdstring_utils.cpp: In function 'void RegisterStdStringUtils(asIScriptEngine*)':
${src}/Sources/AngelScript/addons/scriptstdstring_utils.cpp:115:6: warning: variable 'r' set but not used [-Wunused-but-set-variable]
int r;
^
[ 6%] Building CXX object Sources/AngelScript/projects/cmake_addons/CMakeFiles/Angelscript_addons.dir/__/__/addons/weakref.cpp.o
In file included from ${src}/Sources/AngelScript/addons/weakref.h:8,
from ${src}/Sources/AngelScript/addons/weakref.cpp:4:
${src}/Sources/AngelScript/addons/weakref.cpp: In function 'void RegisterScriptWeakRef_Native(asIScriptEngine*)':
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'void* (CScriptWeakRef::*)() const' to 'void (CScriptWeakRef::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/weakref.cpp:220:68: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("weakref<T>", "T@ opImplCast()", asMETHOD(CScriptWeakRef, Get), asCALL_THISCALL); assert(r >= 0);
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'CScriptWeakRef& (CScriptWeakRef::*)(const CScriptWeakRef&)' to 'void (CScriptWeakRef::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/weakref.cpp:222:99: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("weakref<T>", "weakref<T> &opHndlAssign(const weakref<T> &in)", asMETHOD(CScriptWeakRef, operator=), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'CScriptWeakRef& (CScriptWeakRef::*)(void*)' to 'void (CScriptWeakRef::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/weakref.cpp:224:81: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("weakref<T>", "weakref<T> &opHndlAssign(T@)", asMETHOD(CScriptWeakRef, Set), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'bool (CScriptWeakRef::*)(void*) const' to 'void (CScriptWeakRef::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/weakref.cpp:225:82: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("weakref<T>", "bool opEquals(const T@) const", asMETHOD(CScriptWeakRef, Equals), asCALL_THISCALL); assert(r >= 0);
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'void* (CScriptWeakRef::*)() const' to 'void (CScriptWeakRef::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/weakref.cpp:235:86: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("const_weakref<T>", "const T@ opImplCast() const", asMETHOD(CScriptWeakRef, Get), asCALL_THISCALL); assert(r >= 0);
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'CScriptWeakRef& (CScriptWeakRef::*)(const CScriptWeakRef&)' to 'void (CScriptWeakRef::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/weakref.cpp:237:117: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("const_weakref<T>", "const_weakref<T> &opHndlAssign(const const_weakref<T> &in)", asMETHOD(CScriptWeakRef, operator=), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'CScriptWeakRef& (CScriptWeakRef::*)(void*)' to 'void (CScriptWeakRef::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/weakref.cpp:239:99: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("const_weakref<T>", "const_weakref<T> &opHndlAssign(const T@)", asMETHOD(CScriptWeakRef, Set), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'bool (CScriptWeakRef::*)(void*) const' to 'void (CScriptWeakRef::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/weakref.cpp:240:88: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("const_weakref<T>", "bool opEquals(const T@) const", asMETHOD(CScriptWeakRef, Equals), asCALL_THISCALL); assert(r >= 0);
^~~~~~~~
${src}/Sources/AngelScript/projects/cmake_addons/../../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'CScriptWeakRef& (CScriptWeakRef::*)(const CScriptWeakRef&)' to 'void (CScriptWeakRef::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/addons/weakref.cpp:243:111: note: in expansion of macro 'asMETHOD'
r = engine->RegisterObjectMethod("const_weakref<T>", "const_weakref<T> &opHndlAssign(const weakref<T> &in)", asMETHOD(CScriptWeakRef, operator=), asCALL_THISCALL); assert( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/addons/weakref.cpp:210:6: warning: variable 'r' set but not used [-Wunused-but-set-variable]
int r;
^
${src}/Sources/AngelScript/addons/weakref.cpp: In function 'void RegisterScriptWeakRef_Generic(asIScriptEngine*)':
${src}/Sources/AngelScript/addons/weakref.cpp:325:6: warning: variable 'r' set but not used [-Wunused-but-set-variable]
int r;
^
[ 6%] Linking CXX static library ../../../../lib/libAngelscript_addons.a
[ 6%] Built target Angelscript_addons
[ 6%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_atomic.cpp.o
[ 6%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_builder.cpp.o
In file included from ${src}/Sources/AngelScript/source/as_config.h:1249,
from ${src}/Sources/AngelScript/source/as_builder.cpp:39:
${src}/Sources/AngelScript/source/as_builder.cpp: In member function 'void asCBuilder::EvaluateTemplateInstances(asUINT, bool)':
${src}/Sources/AngelScript/source/../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'void (asCOutputBuffer::*)(asSMessageInfo*)' to 'void (asCOutputBuffer::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/source/as_builder.cpp:239:30: note: in expansion of macro 'asMETHOD'
engine->SetMessageCallback(asMETHOD(asCOutputBuffer, Callback), &outBuffer, asCALL_THISCALL);
^~~~~~~~
${src}/Sources/AngelScript/source/as_builder.cpp: In member function 'void asCBuilder::CompileGlobalVariables()':
${src}/Sources/AngelScript/source/../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'void (asCOutputBuffer::*)(asSMessageInfo*)' to 'void (asCOutputBuffer::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/source/as_builder.cpp:2094:29: note: in expansion of macro 'asMETHOD'
engine->SetMessageCallback(asMETHOD(asCOutputBuffer, Callback), &outBuffer, asCALL_THISCALL);
^~~~~~~~
${src}/Sources/AngelScript/source/as_builder.cpp:2180:20: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
enumVal = (*(int*)&gvar2->constantValue) + 1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_builder.cpp:2200:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(int*)&gvar->constantValue = enumVal;
^~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_builder.cpp:2299:18: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
e->value = *(int*)&gvar->constantValue;
^~~~~~~~~~~~~~~~~~~~~~~~~~
[ 7%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_bytecode.cpp.o
In file included from ${src}/Sources/AngelScript/source/as_bytecode.cpp:40:
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'bool asCByteCode::RemoveUnusedValue(asCByteInstruction*, asCByteInstruction**)':
${src}/Sources/AngelScript/source/as_config.h:1237:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define ARG_DW(b) ((asDWORD*)&b)
~^~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp:529:45: note: in expansion of macro 'ARG_DW'
*(((asDWORD*)&curr->arg)+AS_PTR_SIZE) = *ARG_DW(curr->arg);
^~~~~~
${src}/Sources/AngelScript/source/as_config.h:1239:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define ARG_PTR(b) ((asPWORD*)&b)
~^~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp:530:5: note: in expansion of macro 'ARG_PTR'
*ARG_PTR(curr->arg) = *ARG_PTR(curr->next->arg);
^~~~~~~
${src}/Sources/AngelScript/source/as_config.h:1239:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define ARG_PTR(b) ((asPWORD*)&b)
~^~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp:530:27: note: in expansion of macro 'ARG_PTR'
*ARG_PTR(curr->arg) = *ARG_PTR(curr->next->arg);
^~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'void asCByteCode::OptimizeLocally(const asCArray<int>&)':
${src}/Sources/AngelScript/source/as_bytecode.cpp:923:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(asDWORD*)&instr->arg = *(asDWORD*)&instr->next->arg;
^~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp:923:31: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(asDWORD*)&instr->arg = *(asDWORD*)&instr->next->arg;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp:937:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(asDWORD*)&instr->arg = *(asDWORD*)&instr->next->arg;
^~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp:937:31: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(asDWORD*)&instr->arg = *(asDWORD*)&instr->next->arg;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'void asCByteCode::Optimize()':
${src}/Sources/AngelScript/source/as_bytecode.cpp:1181:61: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
else if( currOp == asBC_JMP && instrOp == asBC_LABEL && *(int*)&curr->arg == instr->wArg[0] )
^~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'bool asCByteCode::IsTempVarRead(asCByteInstruction*, int)':
${src}/Sources/AngelScript/source/as_bytecode.cpp:1281:19: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
int label = *((int*)ARG_DW(curr->arg));
~^~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp:1299:19: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
int label = *((int*)ARG_DW(curr->arg));
~^~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp:1318:20: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
int label = *((int*)ARG_DW(curr->arg));
~^~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'void asCByteCode::ExtractLineNumbers()':
${src}/Sources/AngelScript/source/as_bytecode.cpp:1482:26: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
lineNumbers.PushLast(*(int*)ARG_DW(curr->arg));
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'void asCByteCode::ExtractObjectVariableInfo(asCScriptFunction*)':
${src}/Sources/AngelScript/source/as_bytecode.cpp:1539:48: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
info.option = (asEObjVarInfoOption)*(int*)ARG_DW(instr->arg);
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'void asCByteCode::Call(asEBCInstr, int, int)':
${src}/Sources/AngelScript/source/as_bytecode.cpp:1647:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*((int*)ARG_DW(last->arg)) = funcID;
~^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ${src}/Sources/AngelScript/source/as_bytecode.cpp:40:
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'void asCByteCode::Alloc(asEBCInstr, void*, int, int)':
${src}/Sources/AngelScript/source/as_config.h:1239:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define ARG_PTR(b) ((asPWORD*)&b)
~^~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp:1679:3: note: in expansion of macro 'ARG_PTR'
*ARG_PTR(last->arg) = (asPWORD)objID;
^~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'void asCByteCode::JmpP(int, asDWORD)':
${src}/Sources/AngelScript/source/as_config.h:1237:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define ARG_DW(b) ((asDWORD*)&b)
~^~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp:1712:3: note: in expansion of macro 'ARG_DW'
*ARG_DW(last->arg) = max;
^~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'void asCByteCode::Line(int, int, int)':
${src}/Sources/AngelScript/source/as_bytecode.cpp:1739:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*((int*)ARG_DW(last->arg)) = (line & 0xFFFFF)|((column & 0xFFF)<<20);
~^~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'void asCByteCode::ObjInfo(int, int)':
${src}/Sources/AngelScript/source/as_bytecode.cpp:1757:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*((int*)ARG_DW(last->arg)) = info;
~^~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'int asCByteCode::ResolveJumpAddresses()':
${src}/Sources/AngelScript/source/as_bytecode.cpp:1847:18: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
int label = *((int*) ARG_DW(instr->arg));
~^~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp:1851:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*((int*) ARG_DW(instr->arg)) = labelPosOffset;
~^~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'void asCByteCode::Output(asDWORD*)':
${src}/Sources/AngelScript/source/as_bytecode.cpp:1905:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(ap+1) = *(asDWORD*)&instr->arg;
^~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp:1911:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(ap+2) = *(asDWORD*)&instr->arg;
^~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'void asCByteCode::PostProcess()':
${src}/Sources/AngelScript/source/as_bytecode.cpp:1994:19: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
int label = *((int*) ARG_DW(instr->arg));
~^~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp:2007:19: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
int label = *((int*) ARG_DW(instr->arg));
~^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ${src}/Sources/AngelScript/source/as_bytecode.cpp:40:
${src}/Sources/AngelScript/source/as_config.h:1237:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define ARG_DW(b) ((asDWORD*)&b)
~^~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp:2021:20: note: in expansion of macro 'ARG_DW'
asDWORD max = *ARG_DW(instr->arg);
^~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'int asCByteCode::InsertFirstInstrDWORD(asEBCInstr, asDWORD)':
${src}/Sources/AngelScript/source/as_config.h:1237:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define ARG_DW(b) ((asDWORD*)&b)
~^~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp:2450:3: note: in expansion of macro 'ARG_DW'
*ARG_DW(first->arg) = param;
^~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'int asCByteCode::InstrW_PTR(asEBCInstr, short int, void*)':
${src}/Sources/AngelScript/source/as_config.h:1239:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define ARG_PTR(b) ((asPWORD*)&b)
~^~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp:2534:3: note: in expansion of macro 'ARG_PTR'
*ARG_PTR(last->arg) = (asPWORD)param;
^~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'int asCByteCode::InstrW_DW(asEBCInstr, asWORD, asDWORD)':
${src}/Sources/AngelScript/source/as_bytecode.cpp:2553:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*((int*) ARG_DW(last->arg)) = b;
~^~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'int asCByteCode::InstrSHORT_DW_DW(asEBCInstr, short int, asDWORD, asDWORD)':
${src}/Sources/AngelScript/source/as_bytecode.cpp:2570:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(int*)ARG_DW(last->arg) = b;
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'int asCByteCode::InstrSHORT_DW(asEBCInstr, short int, asDWORD)':
${src}/Sources/AngelScript/source/as_bytecode.cpp:2643:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*((int*) ARG_DW(last->arg)) = b;
~^~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'int asCByteCode::InstrW_FLOAT(asEBCInstr, asWORD, float)':
${src}/Sources/AngelScript/source/as_bytecode.cpp:2694:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*((float*) ARG_DW(last->arg)) = b;
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'int asCByteCode::InstrINT(asEBCInstr, int)':
${src}/Sources/AngelScript/source/as_bytecode.cpp:2728:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*((int*) ARG_DW(last->arg)) = param;
~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ${src}/Sources/AngelScript/source/as_bytecode.cpp:40:
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'int asCByteCode::InstrDWORD(asEBCInstr, asDWORD)':
${src}/Sources/AngelScript/source/as_config.h:1237:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define ARG_DW(b) ((asDWORD*)&b)
~^~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp:2744:3: note: in expansion of macro 'ARG_DW'
*ARG_DW(last->arg) = param;
^~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'int asCByteCode::InstrPTR(asEBCInstr, void*)':
${src}/Sources/AngelScript/source/as_config.h:1239:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define ARG_PTR(b) ((asPWORD*)&b)
~^~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp:2760:3: note: in expansion of macro 'ARG_PTR'
*ARG_PTR(last->arg) = (asPWORD)param;
^~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'int asCByteCode::InstrFLOAT(asEBCInstr, float)':
${src}/Sources/AngelScript/source/as_bytecode.cpp:2810:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*((float*) ARG_DW(last->arg)) = param;
~^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'int asCByteCode::InstrDOUBLE(asEBCInstr, double)':
${src}/Sources/AngelScript/source/as_bytecode.cpp:2826:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*((double*) ARG_QW(last->arg)) = param;
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ${src}/Sources/AngelScript/source/as_bytecode.cpp:40:
${src}/Sources/AngelScript/source/as_bytecode.cpp: In member function 'asDWORD asCByteCode::GetLastInstrValueDW()':
${src}/Sources/AngelScript/source/as_config.h:1237:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define ARG_DW(b) ((asDWORD*)&b)
~^~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_bytecode.cpp:2866:10: note: in expansion of macro 'ARG_DW'
return *ARG_DW(last->arg);
^~~~~~
[ 7%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_callfunc.cpp.o
${src}/Sources/AngelScript/source/as_callfunc.cpp: In function 'int DetectCallingConvention(bool, const asSFuncPtr&, int, void*, asSSystemFunctionInterface*)':
${src}/Sources/AngelScript/source/as_callfunc.cpp:58:56: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'struct asSSystemFunctionInterface' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
memset(internal, 0, sizeof(asSSystemFunctionInterface));
^
In file included from ${src}/Sources/AngelScript/source/as_callfunc.cpp:41:
${src}/Sources/AngelScript/source/as_callfunc.h:98:8: note: 'struct asSSystemFunctionInterface' declared here
struct asSSystemFunctionInterface
^~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_callfunc.cpp: In function 'int CallSystemFunction(int, asCContext*)':
${src}/Sources/AngelScript/source/as_callfunc.cpp:836:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(asDWORD*)&context->m_regs.valueRegister = (asDWORD)retQW;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 7%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_callfunc_x86.cpp.o
${src}/Sources/AngelScript/source/as_callfunc_x86.cpp: In function 'asQWORD CallSystemFunctionNative(asCContext*, asCScriptFunction*, void*, asDWORD*, void*, asQWORD&, void*)':
${src}/Sources/AngelScript/source/as_callfunc_x86.cpp:264:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(asDWORD*)&retQW = GetReturnedFloat();
^~~~~~~~~~~~~~~~
[ 8%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_callfunc_x64_gcc.cpp.o
[ 8%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_callfunc_x64_msvc.cpp.o
[ 8%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_compiler.cpp.o
[ 9%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_configgroup.cpp.o
[ 9%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_context.cpp.o
${src}/Sources/AngelScript/source/as_context.cpp: In member function 'virtual asWORD asCContext::GetReturnWord()':
${src}/Sources/AngelScript/source/as_context.cpp:568:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return *(asWORD*)&m_regs.valueRegister;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp: In member function 'virtual asDWORD asCContext::GetReturnDWord()':
${src}/Sources/AngelScript/source/as_context.cpp:579:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return *(asDWORD*)&m_regs.valueRegister;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp: In member function 'virtual float asCContext::GetReturnFloat()':
${src}/Sources/AngelScript/source/as_context.cpp:601:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return *(float*)&m_regs.valueRegister;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp: In member function 'virtual double asCContext::GetReturnDouble()':
${src}/Sources/AngelScript/source/as_context.cpp:612:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return *(double*)&m_regs.valueRegister;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp: In member function 'virtual void* asCContext::GetReturnAddress()':
${src}/Sources/AngelScript/source/as_context.cpp:622:11: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return *(void**)&m_regs.valueRegister;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp: In member function 'void asCContext::ExecuteNext()':
${src}/Sources/AngelScript/source/as_context.cpp:1909:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(void**)&m_regs.valueRegister = (void*)asBC_PTRARG(l_bc);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:1910:38: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(l_fp - asBC_SWORDARG0(l_bc)) = **(asDWORD**)&m_regs.valueRegister;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:1980:8: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if( *(int*)&m_regs.valueRegister == 0 )
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:1988:8: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if( *(int*)&m_regs.valueRegister != 0 )
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:1996:8: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if( *(int*)&m_regs.valueRegister < 0 )
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2004:8: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if( *(int*)&m_regs.valueRegister >= 0 )
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2012:8: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if( *(int*)&m_regs.valueRegister > 0 )
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2020:8: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if( *(int*)&m_regs.valueRegister <= 0 )
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2216:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
(**(short**)&m_regs.valueRegister)++;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2222:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
(**(char**)&m_regs.valueRegister)++;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2228:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
(**(short**)&m_regs.valueRegister)--;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2234:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
(**(char**)&m_regs.valueRegister)--;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2240:8: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
++(**(int**)&m_regs.valueRegister);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2246:8: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
--(**(int**)&m_regs.valueRegister);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2252:8: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
++(**(float**)&m_regs.valueRegister);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2258:8: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
--(**(float**)&m_regs.valueRegister);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2264:8: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
++(**(double**)&m_regs.valueRegister);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2270:8: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
--(**(double**)&m_regs.valueRegister);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2393:28: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if( dbl1 == dbl2 ) *(int*)&m_regs.valueRegister = 0;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2394:28: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
else if( dbl1 < dbl2 ) *(int*)&m_regs.valueRegister = -1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2395:28: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
else *(int*)&m_regs.valueRegister = 1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2404:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if( d1 == d2 ) *(int*)&m_regs.valueRegister = 0;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2405:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
else if( d1 < d2 ) *(int*)&m_regs.valueRegister = -1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2406:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
else *(int*)&m_regs.valueRegister = 1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2417:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if( f1 == f2 ) *(int*)&m_regs.valueRegister = 0;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2418:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
else if( f1 < f2 ) *(int*)&m_regs.valueRegister = -1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2419:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
else *(int*)&m_regs.valueRegister = 1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2428:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if( i1 == i2 ) *(int*)&m_regs.valueRegister = 0;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2429:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
else if( i1 < i2 ) *(int*)&m_regs.valueRegister = -1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2430:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
else *(int*)&m_regs.valueRegister = 1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2441:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if( i1 == i2 ) *(int*)&m_regs.valueRegister = 0;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2442:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
else if( i1 < i2 ) *(int*)&m_regs.valueRegister = -1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2443:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
else *(int*)&m_regs.valueRegister = 1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2454:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if( f1 == f2 ) *(int*)&m_regs.valueRegister = 0;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2455:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
else if( f1 < f2 ) *(int*)&m_regs.valueRegister = -1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2456:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
else *(int*)&m_regs.valueRegister = 1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2465:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if( d1 == d2 ) *(int*)&m_regs.valueRegister = 0;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2466:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
else if( d1 < d2 ) *(int*)&m_regs.valueRegister = -1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2467:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
else *(int*)&m_regs.valueRegister = 1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2477:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(asPWORD*)&m_regs.valueRegister = *(asPWORD*)l_sp;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2484:22: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(asPWORD*)l_sp = *(asPWORD*)&m_regs.valueRegister;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2965:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(asDWORD*)&m_regs.valueRegister = *(asDWORD*)(l_fp - asBC_SWORDARG0(l_bc));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2980:47: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(asDWORD*)(l_fp - asBC_SWORDARG0(l_bc)) = *(asDWORD*)&m_regs.valueRegister;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:2996:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
**(asBYTE**)&m_regs.valueRegister = *(asBYTE*)(l_fp - asBC_SWORDARG0(l_bc));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:3002:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
**(asWORD**)&m_regs.valueRegister = *(asWORD*)(l_fp - asBC_SWORDARG0(l_bc));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:3007:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
**(asDWORD**)&m_regs.valueRegister = *(l_fp - asBC_SWORDARG0(l_bc));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:3012:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
**(asQWORD**)&m_regs.valueRegister = *(asQWORD*)(l_fp - asBC_SWORDARG0(l_bc));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:3020:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
bPtr[0] = **(asBYTE**)&m_regs.valueRegister; // read the byte
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:3032:16: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
wPtr[0] = **(asWORD**)&m_regs.valueRegister; // read the word
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:3039:48: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(asDWORD*)(l_fp - asBC_SWORDARG0(l_bc)) = **(asDWORD**)&m_regs.valueRegister;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:3044:48: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(asQWORD*)(l_fp - asBC_SWORDARG0(l_bc)) = **(asQWORD**)&m_regs.valueRegister;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:3049:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(asPWORD*)&m_regs.valueRegister = asBC_PTRARG(l_bc);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:3054:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(asDWORD**)&m_regs.valueRegister = (l_fp - asBC_SWORDARG0(l_bc));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:3070:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if( p1 == p2 ) *(int*)&m_regs.valueRegister = 0;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:3071:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
else if( p1 < p2 ) *(int*)&m_regs.valueRegister = -1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:3072:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
else *(int*)&m_regs.valueRegister = 1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:3624:8: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
++(**(asQWORD**)&m_regs.valueRegister);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:3629:8: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
--(**(asQWORD**)&m_regs.valueRegister);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:3758:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if( i1 == i2 ) *(int*)&m_regs.valueRegister = 0;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:3759:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
else if( i1 < i2 ) *(int*)&m_regs.valueRegister = -1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:3760:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
else *(int*)&m_regs.valueRegister = 1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:3769:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if( d1 == d2 ) *(int*)&m_regs.valueRegister = 0;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:3770:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
else if( d1 < d2 ) *(int*)&m_regs.valueRegister = -1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:3771:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
else *(int*)&m_regs.valueRegister = 1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:3951:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(asPWORD*)&m_regs.valueRegister = tmp;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:4061:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(asPWORD*)&m_regs.valueRegister = tmp;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:4075:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(asPWORD*)&m_regs.valueRegister = tmp;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:4363:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(asPWORD*)&m_regs.valueRegister = (asPWORD)ptr;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp: In function 'int as_powi(int, int, bool&)':
${src}/Sources/AngelScript/source/as_context.cpp:5547:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
base *= base;
~~~~~^~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:5548:3: note: here
case 4:
^~~~
${src}/Sources/AngelScript/source/as_context.cpp:5551:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
base *= base;
~~~~~^~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:5552:3: note: here
case 3:
^~~~
${src}/Sources/AngelScript/source/as_context.cpp:5555:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
base *= base;
~~~~~^~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:5556:3: note: here
case 2:
^~~~
${src}/Sources/AngelScript/source/as_context.cpp:5559:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
base *= base;
~~~~~^~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:5560:3: note: here
case 1:
^~~~
${src}/Sources/AngelScript/source/as_context.cpp:5561:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
if( exponent ) result *= base;
^~
${src}/Sources/AngelScript/source/as_context.cpp:5562:3: note: here
default:
^~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp: In function 'asDWORD as_powu(asDWORD, asDWORD, bool&)':
${src}/Sources/AngelScript/source/as_context.cpp:5609:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
base *= base;
~~~~~^~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:5610:3: note: here
case 4:
^~~~
${src}/Sources/AngelScript/source/as_context.cpp:5613:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
base *= base;
~~~~~^~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:5614:3: note: here
case 3:
^~~~
${src}/Sources/AngelScript/source/as_context.cpp:5617:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
base *= base;
~~~~~^~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:5618:3: note: here
case 2:
^~~~
${src}/Sources/AngelScript/source/as_context.cpp:5621:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
base *= base;
~~~~~^~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:5622:3: note: here
case 1:
^~~~
${src}/Sources/AngelScript/source/as_context.cpp:5623:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
if( exponent ) result *= base;
^~
${src}/Sources/AngelScript/source/as_context.cpp:5624:3: note: here
default:
^~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp: In function 'asINT64 as_powi64(asINT64, asINT64, bool&)':
${src}/Sources/AngelScript/source/as_context.cpp:5685:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
base *= base;
~~~~~^~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:5686:3: note: here
case 5:
^~~~
${src}/Sources/AngelScript/source/as_context.cpp:5689:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
base *= base;
~~~~~^~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:5690:3: note: here
case 4:
^~~~
${src}/Sources/AngelScript/source/as_context.cpp:5693:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
base *= base;
~~~~~^~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:5694:3: note: here
case 3:
^~~~
${src}/Sources/AngelScript/source/as_context.cpp:5697:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
base *= base;
~~~~~^~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:5698:3: note: here
case 2:
^~~~
${src}/Sources/AngelScript/source/as_context.cpp:5701:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
base *= base;
~~~~~^~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:5702:3: note: here
case 1:
^~~~
${src}/Sources/AngelScript/source/as_context.cpp:5703:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
if( exponent ) result *= base;
^~
${src}/Sources/AngelScript/source/as_context.cpp:5704:3: note: here
default:
^~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp: In function 'asQWORD as_powu64(asQWORD, asQWORD, bool&)':
${src}/Sources/AngelScript/source/as_context.cpp:5751:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
base *= base;
~~~~~^~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:5752:3: note: here
case 5:
^~~~
${src}/Sources/AngelScript/source/as_context.cpp:5755:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
base *= base;
~~~~~^~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:5756:3: note: here
case 4:
^~~~
${src}/Sources/AngelScript/source/as_context.cpp:5759:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
base *= base;
~~~~~^~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:5760:3: note: here
case 3:
^~~~
${src}/Sources/AngelScript/source/as_context.cpp:5763:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
base *= base;
~~~~~^~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:5764:3: note: here
case 2:
^~~~
${src}/Sources/AngelScript/source/as_context.cpp:5767:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
base *= base;
~~~~~^~~~~~~
${src}/Sources/AngelScript/source/as_context.cpp:5768:3: note: here
case 1:
^~~~
${src}/Sources/AngelScript/source/as_context.cpp:5769:4: warning: this statement may fall through [-Wimplicit-fallthrough=]
if( exponent ) result *= base;
^~
${src}/Sources/AngelScript/source/as_context.cpp:5770:3: note: here
default:
^~~~~~~
[ 10%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_datatype.cpp.o
[ 10%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_gc.cpp.o
[ 10%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_generic.cpp.o
${src}/Sources/AngelScript/source/as_generic.cpp: In member function 'virtual int asCGeneric::SetReturnWord(asWORD)':
${src}/Sources/AngelScript/source/as_generic.cpp:357:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(asWORD*)&returnVal = val;
^~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_generic.cpp: In member function 'virtual int asCGeneric::SetReturnDWord(asDWORD)':
${src}/Sources/AngelScript/source/as_generic.cpp:373:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(asDWORD*)&returnVal = val;
^~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_generic.cpp: In member function 'virtual int asCGeneric::SetReturnFloat(float)':
${src}/Sources/AngelScript/source/as_generic.cpp:405:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(float*)&returnVal = val;
^~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_generic.cpp: In member function 'virtual int asCGeneric::SetReturnDouble(double)':
${src}/Sources/AngelScript/source/as_generic.cpp:421:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(double*)&returnVal = val;
^~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_generic.cpp: In member function 'virtual int asCGeneric::SetReturnAddress(void*)':
${src}/Sources/AngelScript/source/as_generic.cpp:433:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(void**)&returnVal = val;
^~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_generic.cpp: In member function 'virtual int asCGeneric::SetReturnObject(void*)':
${src}/Sources/AngelScript/source/as_generic.cpp:455:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(void**)&returnVal = obj;
^~~~~~~~~~~~~~~~~~
[ 11%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_globalproperty.cpp.o
[ 11%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_memory.cpp.o
[ 11%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_module.cpp.o
[ 12%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_objecttype.cpp.o
[ 12%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_outputbuffer.cpp.o
[ 13%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_parser.cpp.o
[ 13%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_restore.cpp.o
${src}/Sources/AngelScript/source/as_restore.cpp: In member function 'void asCWriter::WriteByteCode(asCScriptFunction*)':
${src}/Sources/AngelScript/source/as_restore.cpp:4572:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if( *(int*)&tmpBC[1+AS_PTR_SIZE] != 0 )
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_restore.cpp:4575:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(int*)&tmpBC[1+AS_PTR_SIZE] = 1+FindFunctionIndex(engine->scriptFunctions[*(int*)&tmpBC[1+AS_PTR_SIZE]]);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_restore.cpp:4575:81: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(int*)&tmpBC[1+AS_PTR_SIZE] = 1+FindFunctionIndex(engine->scriptFunctions[*(int*)&tmpBC[1+AS_PTR_SIZE]]);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_restore.cpp:4929:19: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
asQWORD qw = *(asQWORD*)&tmpBC[1];
^~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_restore.cpp:4940:19: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
asQWORD qw = *(asQWORD*)&tmpBC[1];
^~~~~~~~~~~~~~~~~~~
${src}/Sources/AngelScript/source/as_restore.cpp:4960:19: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
asQWORD qw = *(asQWORD*)&tmpBC[1];
^~~~~~~~~~~~~~~~~~~
[ 13%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_scriptcode.cpp.o
[ 14%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_scriptengine.cpp.o
${src}/Sources/AngelScript/source/as_scriptengine.cpp: In member function 'bool asCScriptEngine::CallObjectMethodRetBool(void*, int) const':
${src}/Sources/AngelScript/source/as_scriptengine.cpp:4094:68: warning: cast between incompatible pointer to member types from 'asSIMPLEMETHOD_t' {aka 'void (asCSimpleDummy::*)()'} to 'bool (asCSimpleDummy::*)()' [-Wcast-function-type]
bool (asCSimpleDummy::*f)() = (bool (asCSimpleDummy::*)())(p.mthd);
^
${src}/Sources/AngelScript/source/as_scriptengine.cpp: In member function 'int asCScriptEngine::CallObjectMethodRetInt(void*, int) const':
${src}/Sources/AngelScript/source/as_scriptengine.cpp:4161:66: warning: cast between incompatible pointer to member types from 'asSIMPLEMETHOD_t' {aka 'void (asCSimpleDummy::*)()'} to 'int (asCSimpleDummy::*)()' [-Wcast-function-type]
int (asCSimpleDummy::*f)() = (int (asCSimpleDummy::*)())(p.mthd);
^
${src}/Sources/AngelScript/source/as_scriptengine.cpp: In member function 'void* asCScriptEngine::CallObjectMethodRetPtr(void*, int) const':
${src}/Sources/AngelScript/source/as_scriptengine.cpp:4228:70: warning: cast between incompatible pointer to member types from 'asSIMPLEMETHOD_t' {aka 'void (asCSimpleDummy::*)()'} to 'void* (asCSimpleDummy::*)()' [-Wcast-function-type]
void *(asCSimpleDummy::*f)() = (void *(asCSimpleDummy::*)())(p.mthd);
^
${src}/Sources/AngelScript/source/as_scriptengine.cpp: In member function 'void* asCScriptEngine::CallObjectMethodRetPtr(void*, int, asCScriptFunction*) const':
${src}/Sources/AngelScript/source/as_scriptengine.cpp:4289:76: warning: cast between incompatible pointer to member types from 'asSIMPLEMETHOD_t' {aka 'void (asCSimpleDummy::*)()'} to 'void* (asCSimpleDummy::*)(int)' [-Wcast-function-type]
void *(asCSimpleDummy::*f)(int) = (void *(asCSimpleDummy::*)(int))(p.mthd);
^
${src}/Sources/AngelScript/source/as_scriptengine.cpp: In member function 'void asCScriptEngine::CallObjectMethod(void*, void*, asSSystemFunctionInterface*, asCScriptFunction*) const':
${src}/Sources/AngelScript/source/as_scriptengine.cpp:4418:78: warning: cast between incompatible pointer to member types from 'asSIMPLEMETHOD_t' {aka 'void (asCSimpleDummy::*)()'} to 'void (asCSimpleDummy::*)(void*)' [-Wcast-function-type]
void (asCSimpleDummy::*f)(void*) = (void (asCSimpleDummy::*)(void*))(p.mthd);
^
[ 14%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_scriptfunction.cpp.o
In file included from ${src}/Sources/AngelScript/source/as_config.h:1249,
from ${src}/Sources/AngelScript/source/as_scriptfunction.cpp:40:
${src}/Sources/AngelScript/source/as_scriptfunction.cpp: In function 'void RegisterScriptFunction(asCScriptEngine*)':
${src}/Sources/AngelScript/source/../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'int (asCScriptFunction::*)() const' to 'void (asCScriptFunction::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/source/as_scriptfunction.cpp:129:102: note: in expansion of macro 'asMETHOD'
r = engine->RegisterBehaviourToObjectType(&engine->functionBehaviours, asBEHAVE_ADDREF, "void f()", asMETHOD(asCScriptFunction,AddRef), asCALL_THISCALL, 0); asASSERT( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/source/../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'int (asCScriptFunction::*)() const' to 'void (asCScriptFunction::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/source/as_scriptfunction.cpp:130:103: note: in expansion of macro 'asMETHOD'
r = engine->RegisterBehaviourToObjectType(&engine->functionBehaviours, asBEHAVE_RELEASE, "void f()", asMETHOD(asCScriptFunction,Release), asCALL_THISCALL, 0); asASSERT( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/source/../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'int (asCScriptFunction::*)()' to 'void (asCScriptFunction::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/source/as_scriptfunction.cpp:131:106: note: in expansion of macro 'asMETHOD'
r = engine->RegisterBehaviourToObjectType(&engine->functionBehaviours, asBEHAVE_GETREFCOUNT, "int f()", asMETHOD(asCScriptFunction,GetRefCount), asCALL_THISCALL, 0); asASSERT( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/source/../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'bool (asCScriptFunction::*)()' to 'void (asCScriptFunction::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/source/as_scriptfunction.cpp:133:105: note: in expansion of macro 'asMETHOD'
r = engine->RegisterBehaviourToObjectType(&engine->functionBehaviours, asBEHAVE_GETGCFLAG, "bool f()", asMETHOD(asCScriptFunction,GetFlag), asCALL_THISCALL, 0); asASSERT( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/source/../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'void (asCScriptFunction::*)(asIScriptEngine*)' to 'void (asCScriptFunction::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/source/as_scriptfunction.cpp:134:110: note: in expansion of macro 'asMETHOD'
r = engine->RegisterBehaviourToObjectType(&engine->functionBehaviours, asBEHAVE_ENUMREFS, "void f(int&in)", asMETHOD(asCScriptFunction,EnumReferences), asCALL_THISCALL, 0); asASSERT( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/source/../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'void (asCScriptFunction::*)(asIScriptEngine*)' to 'void (asCScriptFunction::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/source/as_scriptfunction.cpp:135:113: note: in expansion of macro 'asMETHOD'
r = engine->RegisterBehaviourToObjectType(&engine->functionBehaviours, asBEHAVE_RELEASEREFS, "void f(int&in)", asMETHOD(asCScriptFunction,ReleaseAllHandles), asCALL_THISCALL, 0); asASSERT( r >= 0 );
^~~~~~~~
[ 14%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_scriptnode.cpp.o
[ 15%] Building CXX object Sources/AngelScript/projects/cmake/CMakeFiles/Angelscript.dir/__/__/source/as_scriptobject.cpp.o
In file included from ${src}/Sources/AngelScript/source/as_config.h:1249,
from ${src}/Sources/AngelScript/source/as_scriptobject.cpp:33:
${src}/Sources/AngelScript/source/as_scriptobject.cpp: In function 'void RegisterScriptObject(asCScriptEngine*)':
${src}/Sources/AngelScript/source/../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'int (asCScriptObject::*)() const' to 'void (asCScriptObject::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/source/as_scriptobject.cpp:206:104: note: in expansion of macro 'asMETHOD'
r = engine->RegisterBehaviourToObjectType(&engine->scriptTypeBehaviours, asBEHAVE_ADDREF, "void f()", asMETHOD(asCScriptObject,AddRef), asCALL_THISCALL, 0); asASSERT( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/source/../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'int (asCScriptObject::*)() const' to 'void (asCScriptObject::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/source/as_scriptobject.cpp:207:105: note: in expansion of macro 'asMETHOD'
r = engine->RegisterBehaviourToObjectType(&engine->scriptTypeBehaviours, asBEHAVE_RELEASE, "void f()", asMETHOD(asCScriptObject,Release), asCALL_THISCALL, 0); asASSERT( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/source/../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'asILockableSharedBool* (asCScriptObject::*)() const' to 'void (asCScriptObject::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/source/as_scriptobject.cpp:211:114: note: in expansion of macro 'asMETHOD'
r = engine->RegisterBehaviourToObjectType(&engine->scriptTypeBehaviours, asBEHAVE_GET_WEAKREF_FLAG, "int &f()", asMETHOD(asCScriptObject,GetWeakRefFlag), asCALL_THISCALL, 0); asASSERT( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/source/../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'int (asCScriptObject::*)()' to 'void (asCScriptObject::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/source/as_scriptobject.cpp:214:108: note: in expansion of macro 'asMETHOD'
r = engine->RegisterBehaviourToObjectType(&engine->scriptTypeBehaviours, asBEHAVE_GETREFCOUNT, "int f()", asMETHOD(asCScriptObject,GetRefCount), asCALL_THISCALL, 0); asASSERT( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/source/../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'bool (asCScriptObject::*)()' to 'void (asCScriptObject::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/source/as_scriptobject.cpp:216:107: note: in expansion of macro 'asMETHOD'
r = engine->RegisterBehaviourToObjectType(&engine->scriptTypeBehaviours, asBEHAVE_GETGCFLAG, "bool f()", asMETHOD(asCScriptObject,GetFlag), asCALL_THISCALL, 0); asASSERT( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/source/../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'void (asCScriptObject::*)(asIScriptEngine*)' to 'void (asCScriptObject::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/source/as_scriptobject.cpp:217:112: note: in expansion of macro 'asMETHOD'
r = engine->RegisterBehaviourToObjectType(&engine->scriptTypeBehaviours, asBEHAVE_ENUMREFS, "void f(int&in)", asMETHOD(asCScriptObject,EnumReferences), asCALL_THISCALL, 0); asASSERT( r >= 0 );
^~~~~~~~
${src}/Sources/AngelScript/source/../include/angelscript.h:492:89: warning: cast between incompatible pointer to member types from 'void (asCScriptObject::*)(asIScriptEngine*)' to 'void (asCScriptObject::*)()' [-Wcast-function-type]
#define asMETHOD(c,m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m))
^
${src}/Sources/AngelScript/source/as_scriptobject.cpp:218:115: note: in expansion of macro 'asMETHOD'
r = engine->RegisterBehaviourToObjectType(&engine->scriptTypeBehaviours, asBEHAVE_RELEASEREFS, "void f(int&in)", asMETHOD(asCScriptObject,ReleaseAllHandles), asCALL