X Tutup
Skip to content

JANITORIAL: Fix MSVC macro redefinition warnings#6663

Merged
lephilousophe merged 5 commits intoscummvm:masterfrom
lephilousophe:fix-msvc-redef
May 30, 2025
Merged

JANITORIAL: Fix MSVC macro redefinition warnings#6663
lephilousophe merged 5 commits intoscummvm:masterfrom
lephilousophe:fix-msvc-redef

Conversation

@lephilousophe
Copy link
Member

Our includes must come before flex generated code to avoid macro redefinition of INTx_MIN/MAX macros.
Also make the license appear at the top of the generated file.

This PR is mostly to check MSVC result.

Our includes must come before flex generated code to avoid macro
redefinition of INTx_MIN/MAX macros.
Also make the license appear at the top of the generated file.
Our includes must come before flex generated code to avoid macro
redefinition of INTx_MIN/MAX macros.
Also make the license appear at the top of the generated file.
Our includes must come before flex generated code to avoid macro
redefinition of INTx_MIN/MAX macros.
Also make the license appear at the top of the generated file.
It triggers on libvpx because MSVC doesn't provide any way to
acknowledge a static function is unused.
@lephilousophe
Copy link
Member Author

Also disable C4505 warning as it triggers a lot on libvpx while we can't do anything about it.
This warning doesn't indicates anything serious and useless functions in our code base would be caught by other compilers.

@lephilousophe
Copy link
Member Author

Also fixing unused variable warnings in HPL1.

This fixes MSVC C4189 warnings about unreferenced local variables.
@lephilousophe
Copy link
Member Author

Merging

@lephilousophe lephilousophe merged commit 77c58de into scummvm:master May 30, 2025
8 checks passed
@lephilousophe lephilousophe deleted the fix-msvc-redef branch May 30, 2025 22:07
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

X Tutup