Skip to content

Fix Ruby wrapper build errors#95

Open
pfusik wants to merge 1 commit into
blackducksoftware:mainfrom
pfusik:opt_hash
Open

Fix Ruby wrapper build errors#95
pfusik wants to merge 1 commit into
blackducksoftware:mainfrom
pfusik:opt_hash

Conversation

@pfusik

@pfusik pfusik commented Jun 7, 2026

Copy link
Copy Markdown
ruby/ohcount_wrap.c:4640:9: error: incompatible pointer to integer conversion initializing 'VALUE'
      (aka 'unsigned long') with an expression of type 'void *' [-Wint-conversion]
 4640 |   VALUE arg2 = NULL ;
      |         ^      ~~~~
 ruby/ohcount_wrap.c:4845:9: error: incompatible pointer to integer conversion initializing 'VALUE'
      (aka 'unsigned long') with an expression of type 'void *' [-Wint-conversion]
 4845 |   VALUE arg1 = NULL ;
      |         ^      ~~~~

https://docs.ruby-lang.org/capi/en/master/d4/d3f/value_8h.html#af5fa1600fbcceb5c1bbe27dd3eaab113

says:

typedef uintptr_t VALUE

so zero is more appropriate than NULL.

    ruby/ohcount_wrap.c:4640:9: error: incompatible pointer to integer conversion initializing 'VALUE'
          (aka 'unsigned long') with an expression of type 'void *' [-Wint-conversion]
     4640 |   VALUE arg2 = NULL ;
          |         ^      ~~~~
     ruby/ohcount_wrap.c:4845:9: error: incompatible pointer to integer conversion initializing 'VALUE'
          (aka 'unsigned long') with an expression of type 'void *' [-Wint-conversion]
     4845 |   VALUE arg1 = NULL ;
          |         ^      ~~~~

https://docs.ruby-lang.org/capi/en/master/d4/d3f/value_8h.html#af5fa1600fbcceb5c1bbe27dd3eaab113

says:

    typedef uintptr_t VALUE

so zero is more appropriate than NULL.
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.

1 participant