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

Remove warnings #190

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Remove warnings #190

wants to merge 2 commits into from

Conversation

qbojj
Copy link

@qbojj qbojj commented Jul 10, 2022

Warnings fixed (MSVC warning codes under /W4):
core/format.inl(378,21): warning C4244: 'initializing': conversion from 'const glm::uint32' to 'glm::uint16', possible loss of data
core\storage_linear.inl(110,103): warning C4458: declaration of 'Extent' hides class member
core\storage_linear.inl(116,103): warning C4458: declaration of 'Extent' hides class member
core\storage_linear.inl(122,103): warning C4458: declaration of 'Extent' hides class member
core\storage_linear.inl(132,22): warning C4458: declaration of 'BlockCount' hides class member
core/image.inl(216,98): warning C4458: declaration of 'BaseLevel' hides class member
gl.hpp(361,28): warning C4458: declaration of 'Profile' hides class member
core/gl.inl(330,39): warning C4458: declaration of 'FormatDesc' hides class member
core/gl.inl(357,61): warning C4458: declaration of 'FormatDesc' hides class member
core/load_ktx.inl(53,58): warning C4100: 'Size': unreferenced formal parameter
core/save_dds.inl(105,61): warning C5054: operator '|': deprecated between enumerations of different types

Additionally fixed unused argument warnings when GLI_ASSERT is disabled (to do this added GLI_UNUSED macro).

Warnings fixed (MSVC warning codes under /W4):
core/format.inl(378,21): warning C4244: 'initializing': conversion from 'const glm::uint32' to 'glm::uint16', possible loss of data
core\storage_linear.inl(110,103): warning C4458: declaration of 'Extent' hides class member
core\storage_linear.inl(116,103): warning C4458: declaration of 'Extent' hides class member
core\storage_linear.inl(122,103): warning C4458: declaration of 'Extent' hides class member
core\storage_linear.inl(132,22): warning C4458: declaration of 'BlockCount' hides class member
core/image.inl(216,98): warning C4458: declaration of 'BaseLevel' hides class member
gl.hpp(361,28): warning C4458: declaration of 'Profile' hides class member
core/gl.inl(330,39): warning C4458: declaration of 'FormatDesc' hides class member
core/gl.inl(357,61): warning C4458: declaration of 'FormatDesc' hides class member
core/load_ktx.inl(53,58): warning C4100: 'Size': unreferenced formal parameter
core/save_dds.inl(105,61): warning C5054: operator '|': deprecated between enumerations of different types

Additionally fixed unused argument warnings when GLI_ASSERT is disabled.
@qbojj
Copy link
Author

qbojj commented Jul 10, 2022

This pull request makes some of the same changes as #175, but uses _ appended rather than prepended, because names with _ at the beggining are reserved. Also that pull request's tests failed somehow but it looks like that was some sort of bug in CI.

Additionaly removes unused variable warnings in release build, what was done before in #185, but that pull request was closed without merging.

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

Successfully merging this pull request may close these issues.

1 participant