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

DIRECTOR: Fix MSVC warnings #6464

Merged
merged 3 commits into from
Mar 11, 2025
Merged

DIRECTOR: Fix MSVC warnings #6464

merged 3 commits into from
Mar 11, 2025

Conversation

bluegr
Copy link
Member

@bluegr bluegr commented Mar 3, 2025

This PR aims to fix most of the warnings in the director engine, which are thrown by MSVC.

Opening as a PR to get feedback on the changes, mostly the one about signed integers in file offsets, plus to check if everything builds OK.

@sev-, @moralrecordings, @rvanlaar, any feedback is welcome :)

bluegr added 3 commits March 10, 2025 21:16
The I (uppercase i) modifier is a Microsoft extension, and is not ISO
compatible. MSVC supports the z modifier, which is ISO compatible, so
use that everywhere inside the ImGui code.

The relevant MSVC documentation can be found here:
https://learn.microsoft.com/en-us/cpp/c-runtime-library/format-specification-syntax-printf-and-wprintf-functions?view=msvc-170
@bluegr bluegr force-pushed the director_warnings branch from e910f30 to 794d6e6 Compare March 10, 2025 21:25
@sev-
Copy link
Member

sev- commented Mar 11, 2025

Thanks!

@sev- sev- merged commit c85421c into scummvm:master Mar 11, 2025
7 of 8 checks passed
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.

2 participants