Skip to content

Remove unnecessary parameters#708

Merged
saghul merged 1 commit intoquickjs-ng:masterfrom
hxcliff:master
Nov 20, 2024
Merged

Remove unnecessary parameters#708
saghul merged 1 commit intoquickjs-ng:masterfrom
hxcliff:master

Conversation

@hxcliff
Copy link
Copy Markdown
Contributor

@hxcliff hxcliff commented Nov 20, 2024

Enhanced msvc cross-compile compatibility

Enhanced msvc cross-compile compatibility
@saghul
Copy link
Copy Markdown
Contributor

saghul commented Nov 20, 2024

Can you clarify how this helps?

@hxcliff
Copy link
Copy Markdown
Contributor Author

hxcliff commented Nov 20, 2024

Can you clarify how this helps?

This msvc version of the function does not depend on tz, tz was introduced (and not used) in the linux version of the function, where if it was for binary compatibility I think it could be retained but the function name has changed and there is no binary compatibility issue. Then in a cross-compiled environment it even brings some compiler alerts

@hxcliff
Copy link
Copy Markdown
Contributor Author

hxcliff commented Nov 20, 2024

And in linux the tz parameter is only used in the kernel, so I think it's possible to remove the unnecessary parameter

Copy link
Copy Markdown
Contributor

@bnoordhuis bnoordhuis left a comment

Choose a reason for hiding this comment

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

Seems fine to me.

@saghul saghul merged commit 769e78f into quickjs-ng:master Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants