Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VOXELFORMAT: compiler warnings - aggressive-loop-optimizations #539

Open
mgerhardy opened this issue Oct 29, 2024 · 0 comments
Open

VOXELFORMAT: compiler warnings - aggressive-loop-optimizations #539

mgerhardy opened this issue Oct 29, 2024 · 0 comments

Comments

@mgerhardy
Copy link
Collaborator

In member function ‘pop’,
    inlined from ‘resize’ at ./src/modules/core/collection/DynamicArray.h:369:7,
    inlined from ‘loadQuake1Textures’ at ./src/modules/voxelformat/private/mesh/quake/QuakeBSPFormat.cpp:120:17,
    inlined from ‘loadQuake1Bsp’ at ./src/modules/voxelformat/private/mesh/quake/QuakeBSPFormat.cpp:454:25:
./src/modules/core/collection/DynamicArray.h:318:10: warning: iteration 209622091746699451 invokes undefined behavior [-Waggressive-loop-optimizations]
In member function ‘resize’,
    inlined from ‘loadQuake1Textures’ at ./src/modules/voxelformat/private/mesh/quake/QuakeBSPFormat.cpp:120:17,
    inlined from ‘loadQuake1Bsp’ at ./src/modules/voxelformat/private/mesh/quake/QuakeBSPFormat.cpp:454:25:
./src/modules/core/collection/DynamicArray.h:368:15: note: within this loop
In member function ‘pop’,
    inlined from ‘resize’ at ./src/modules/core/collection/DynamicArray.h:369:7,
    inlined from ‘loadUFOAlienInvasionTextures’ at ./src/modules/voxelformat/private/mesh/quake/QuakeBSPFormat.cpp:194:17,
    inlined from ‘loadUFOAlienInvasionBsp’ at ./src/modules/voxelformat/private/mesh/quake/QuakeBSPFormat.cpp:547:35:
./src/modules/core/collection/DynamicArray.h:318:10: warning: iteration 209622091746699451 invokes undefined behavior [-Waggressive-loop-optimizations]
In member function ‘resize’,
    inlined from ‘loadUFOAlienInvasionTextures’ at ./src/modules/voxelformat/private/mesh/quake/QuakeBSPFormat.cpp:194:17,
    inlined from ‘loadUFOAlienInvasionBsp’ at ./src/modules/voxelformat/private/mesh/quake/QuakeBSPFormat.cpp:547:35:
./src/modules/core/collection/DynamicArray.h:368:15: note: within this loop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant