You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@subversion.apache.org by "Florian Weimer (Jira)" <ji...@apache.org> on 2023/05/08 19:45:00 UTC

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

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)