[jira] [Created] (SVN-4915) Ruby bindings contain type error in NIL_P usage

"Florian Weimer (Jira)" <[email protected]> Mon, 8 May 2023 19:45:00 +0000 (UTC)
Newsgroups gmane.comp.version-control.subversion.issues
Message-ID <[email protected]>
Florian Weimer created SVN-4915:
-----------------------------------

             Summary: Ruby bindings contain type error in NIL_P usage
                 Key: SVN-4915
                 URL: https://issues.apache.org/jira/browse/SVN-4915
             Project: Subversion
          Issue Type: Bug
          Components: bindings_swig_ruby
    Affects Versions: 1.14.2
            Reporter: Florian Weimer
         Attachments: subversion-ruby-c99.patch

The Ruby bindings apply the Ruby {{NIL_P}} macro to an {{apr_hash_t *}} value, which some compilers flag as a type error. We see this while building the bindings against Ruby 3.2 with a compiler that roughly behaves like {{-Werror=int-conversion}} (no implicit conversions between integers and pointers).

The attached patch should fix this issue.

Related to:
 * [https://fedoraproject.org/wiki/Changes/PortingToModernC]
 * [https://fedoraproject.org/wiki/Toolchain/PortingToModernC]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)