doom3-bfg/neo/idlib
Gianfranco Costamagna 53310744ce
Update DataQueue.h to fix a build failure in Append method
This is a quick and dirty fix for this gcc-13 build failure on ppc64el with -O3 optimization level:


/usr/bin/g++-13 -DCPUSTRING=\"ppc64el\" -DUSE_DOOMCLASSIC -DUSE_EXCEPTIONS -DUSE_FFMPEG -DUSE_NEWER_JPEG -DUSE_OPENAL -D__DOOM__ -I/usr/include/imgui -I/usr/include/stb -I/<<PKGBUILDDIR>>/neo/. -I/<<PKGBUILDDIR>>/neo/idlib -isystem /usr/include/SDL2 -g -O3 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/rbdoom3bfg-1.4.0+dfsg-3ubuntu2 -Wdate-time -D_FORTIFY_SOURCE=3  -std=c++11   -pipe -Werror=format-security -Werror=format -Wno-pragmas -Wno-unused-variable -Wno-switch -Wno-unused-value -Winvalid-pch -Wno-multichar -fno-strict-aliasing -MD -MT CMakeFiles/rbdoom3bfg.dir/sys/Snapshot_Jobs.cpp.o -MF CMakeFiles/rbdoom3bfg.dir/sys/Snapshot_Jobs.cpp.o.d -o CMakeFiles/rbdoom3bfg.dir/sys/Snapshot_Jobs.cpp.o -c /<<PKGBUILDDIR>>/neo/sys/Snapshot_Jobs.cpp
In file included from /usr/include/string.h:548,
                 from /<<PKGBUILDDIR>>/neo/idlib/sys/sys_includes.h:141,
                 from /<<PKGBUILDDIR>>/neo/idlib/precompiled.h:34,
                 from /<<PKGBUILDDIR>>/neo/sys/PacketProcessor.cpp:29:
In function ‘memcpy’,
    inlined from ‘idDataQueue<64, 8000>::Append(int, unsigned char const*, int, unsigned char const*, int)’ at /<<PKGBUILDDIR>>/neo/idlib/../idlib/DataQueue.h:112:8,
    inlined from ‘idPacketProcessor::VerifyEmptyReliableQueue(unsigned char, unsigned char)’ at /<<PKGBUILDDIR>>/neo/sys/PacketProcessor.cpp:660:16:
/usr/include/powerpc64le-linux-gnu/bits/string_fortified.h:29:33: error: argument 2 null where non-null expected [-Werror=nonnull]
   29 |   return __builtin___memcpy_chk (__dest, __src, __len,
      |          ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
   30 |                                  __glibc_objsize0 (__dest));
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/powerpc64le-linux-gnu/bits/string_fortified.h:29:33: note: in a call to built-in function ‘__memcpy_chk’
cc1plus: some warnings being treated as errors
2024-08-01 08:17:34 +02:00
..
bv Re-order all pragma once statements to be AFTER the precompiled.h include, to silence IntelliSense's warning about PCH header stops 2021-09-11 17:53:30 +02:00
containers Merge pull request #707 from SRSaunders/compiler-fixes 2022-10-19 18:15:29 +02:00
geometry Removed stencil shadow volumes with additional fixes by icecoldduke 2023-03-16 20:49:30 +01:00
hashing Re-order all pragma once statements to be AFTER the precompiled.h include, to silence IntelliSense's warning about PCH header stops 2021-09-11 17:53:30 +02:00
math Revert changes to idPolynomial, add ~idPolynomial() destructor to fix leak properly 2023-12-26 13:14:59 +01:00
sys Linux arm 32bits compile 2024-05-30 20:27:52 +08:00
Base64.cpp Applied new Astyle settings 2019-11-11 20:27:44 +01:00
Base64.h Applied new Astyle settings 2019-11-11 20:27:44 +01:00
BitMsg.cpp Re-order all pragma once statements to be AFTER the precompiled.h include, to silence IntelliSense's warning about PCH header stops 2021-09-11 17:53:30 +02:00
BitMsg.h Applied new Astyle settings 2019-11-11 20:27:44 +01:00
Callback.h Applied new Astyle settings 2019-11-11 20:27:44 +01:00
CMakeLists.txt Fix PCH for idlib when using gcc compiler on linux 2023-06-24 01:24:08 -04:00
CmdArgs.cpp Applied new Astyle settings 2019-11-11 20:27:44 +01:00
CmdArgs.h Applied new Astyle settings 2019-11-11 20:27:44 +01:00
CommandLink.cpp Formatted code using Artistic Style for better readability. 2012-11-28 16:47:07 +01:00
DataQueue.h Update DataQueue.h to fix a build failure in Append method 2024-08-01 08:17:34 +02:00
Dict.cpp Duplicating lights with Ctrl+D works now 2023-12-10 17:00:07 +01:00
Dict.h Duplicating lights with Ctrl+D works now 2023-12-10 17:00:07 +01:00
gltfExtras.cpp - Added possibility to use Focal Length / FOV animation with GLTF Camera animations. 2023-04-29 12:43:54 +02:00
gltfExtras.h - Added possibility to use Focal Length / FOV animation with GLTF Camera animations. 2023-04-29 12:43:54 +02:00
gltfParser.cpp Extended listCvars with -new option to show all RBDoom related cvars 2024-07-10 20:33:20 +02:00
gltfParser.h - Added possibility to use Focal Length / FOV animation with GLTF Camera animations. 2023-04-29 12:43:54 +02:00
gltfProperties.h - Added possibility to use Focal Length / FOV animation with GLTF Camera animations. 2023-04-29 12:43:54 +02:00
Heap.cpp Re-order all pragma once statements to be AFTER the precompiled.h include, to silence IntelliSense's warning about PCH header stops 2021-09-11 17:53:30 +02:00
Heap.h Applied astyle 2023-07-14 11:35:37 +02:00
LangDict.cpp Re-order all pragma once statements to be AFTER the precompiled.h include, to silence IntelliSense's warning about PCH header stops 2021-09-11 17:53:30 +02:00
LangDict.h Applied new Astyle settings 2019-11-11 20:27:44 +01:00
Lexer.cpp Replace sprintf() / vsprintf() with idStr::snPrintf() / idStr::vsnPrintf() for buffer security 2023-06-20 12:24:24 -04:00
Lexer.h - Added possibility to use Focal Length / FOV animation with GLTF Camera animations. 2023-04-29 12:43:54 +02:00
Lib.cpp Build / Source changes for NVRHI on SDL, source cleanup for clang C++17 std, initial macOS NVRHI implementation 2022-10-21 23:46:42 -04:00
Lib.h Added faster Quad Tree for rectangle packing 2022-04-01 17:10:53 +02:00
MapFile.cpp Drastic dmap speed boost by reducing prints like in q3map 2024-06-21 18:01:12 +02:00
MapFile.h Don't mess up material names when loading patches from valve 220 format 2024-05-11 21:29:43 +02:00
MapFile_gltf.cpp Read Blender lights directly through the KHR_lights_punctual glTF extension 2024-04-24 15:46:03 +02:00
MapFile_quaketex.h Added more Makkon textures to convertMapQuakeToDoom cmd 2022-09-12 18:53:26 +02:00
ParallelJobList.cpp Simplify OPTICK_THREAD() instrumentation and fix scope for common_frame 2023-12-28 09:41:18 -05:00
ParallelJobList.h Cleanup and Astyle 2021-09-11 18:02:16 +02:00
ParallelJobList_JobHeaders.h Applied new Astyle settings 2019-11-11 20:27:44 +01:00
Parser.cpp Replace sprintf() / vsprintf() with idStr::snPrintf() / idStr::vsnPrintf() for buffer security 2023-06-20 12:24:24 -04:00
Parser.h Applied new Astyle settings 2019-11-11 20:27:44 +01:00
precompiled.cpp Formatted code using Artistic Style for better readability. 2012-11-28 16:47:07 +01:00
precompiled.h Added back .pk4 support but only for paks without a dll inside 2024-06-26 20:47:05 +02:00
RectAllocator.cpp Added faster Quad Tree for rectangle packing 2022-04-01 17:10:53 +02:00
SoftwareCache.cpp Applied new Astyle settings 2019-11-11 20:27:44 +01:00
SoftwareCache.h Applied new Astyle settings 2019-11-11 20:27:44 +01:00
Str.cpp Extended makeMaterials command 2024-06-13 21:28:12 +02:00
Str.h Extended makeMaterials command 2024-06-13 21:28:12 +02:00
StrStatic.h Applied new Astyle settings 2019-11-11 20:27:44 +01:00
Swap.h Applied new Astyle settings 2019-11-11 20:27:44 +01:00
Thread.cpp Simplify OPTICK_THREAD() instrumentation and fix scope for common_frame 2023-12-28 09:41:18 -05:00
Thread.h NVRHI merge by Stephen Pridham part 1 2022-02-21 16:29:53 +01:00
TileMap.cpp Added faster Quad Tree for rectangle packing 2022-04-01 17:10:53 +02:00
TileMap.h Added faster Quad Tree for rectangle packing 2022-04-01 17:10:53 +02:00
Timer.cpp Applied new Astyle settings 2019-11-11 20:27:44 +01:00
Timer.h Applied new Astyle settings 2019-11-11 20:27:44 +01:00
Token.cpp Applied new Astyle settings 2019-11-11 20:27:44 +01:00
Token.h Applied new Astyle settings 2019-11-11 20:27:44 +01:00