X Tutup
Skip to content

DIRECTOR: Fix MSVC warnings#6464

Merged
sev- merged 3 commits intoscummvm:masterfrom
bluegr:director_warnings
Mar 11, 2025
Merged

DIRECTOR: Fix MSVC warnings#6464
sev- merged 3 commits intoscummvm:masterfrom
bluegr:director_warnings

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
einstein95 pushed a commit to einstein95/scummvm that referenced this pull request May 5, 2025
* DIRECTOR: Fix warning about usage of ABS()

* DIRECTOR: Remove MSVC-specific argument size modifier prefix from imgui

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

* DIRECTOR: Fix assigning negative value to string end position
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

X Tutup