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

Suppress a compiler warning on GCC in process.c #7580

Merged
merged 1 commit into from Mar 22, 2023

Conversation

peterzhu2118
Copy link
Member

rb_pid_t is 32 bits on some platforms, which will cause a warning on GCC due to POSFIXABLE always returning true.

include/ruby/internal/arithmetic/fixnum.h:43:31: warning: comparison is always true due to limited range of data type [-Wtype-limits]

rb_pid_t is 32 bits on some platforms, which will cause a warning on GCC
due to POSFIXABLE always returning true.

    include/ruby/internal/arithmetic/fixnum.h:43:31: warning: comparison is always true due to limited range of data type [-Wtype-limits]
@peterzhu2118 peterzhu2118 marked this pull request as ready for review March 22, 2023 20:38
@peterzhu2118 peterzhu2118 merged commit 3210130 into ruby:master Mar 22, 2023
91 checks passed
@peterzhu2118 peterzhu2118 deleted the pz-process-c-type-limits branch March 22, 2023 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant