Skip to content

Squelch cl.exe C4232 build warning#1312

Merged
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:dll-function-pointers
Jan 7, 2026
Merged

Squelch cl.exe C4232 build warning#1312
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:dll-function-pointers

Conversation

@bnoordhuis
Copy link
Copy Markdown
Contributor

Statically initialized function pointers are not 100% portable because functions may not have stable addresses at link time.

Simple fix: don't initialize the function pointers statically.

Statically initialized function pointers are not 100% portable because
functions may not have stable addresses at link time.

Simple fix: don't initialize the function pointers statically.
Copy link
Copy Markdown
Contributor

@BalkanMadman BalkanMadman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@bnoordhuis bnoordhuis merged commit a7ec176 into quickjs-ng:master Jan 7, 2026
122 checks passed
@bnoordhuis bnoordhuis deleted the dll-function-pointers branch January 7, 2026 22:49
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.

3 participants