Skip to content
  • Nobuyoshi Nakada's avatar
    51fdd2c6
    Move directives outside `rb_ary_new3` call · 51fdd2c6
    Nobuyoshi Nakada authored
    This function may be a macro for optimization, which will be expanded
    to `rb_ary_new_from_values`.
    
    ```
    ext/socket/ancdata.c: In function ‘bsock_recvmsg_internal’:
    ext/socket/ancdata.c:1648:1: error: embedding a directive within macro arguments is not portable
     1648 | #if defined(HAVE_STRUCT_MSGHDR_MSG_CONTROL)
          | ^
    ext/socket/ancdata.c:1650:1: error: embedding a directive within macro arguments is not portable
     1650 | #else
          | ^
    ext/socket/ancdata.c:1652:1: error: embedding a directive within macro arguments is not portable
     1652 | #endif
          | ^
    ```
    51fdd2c6
    Move directives outside `rb_ary_new3` call
    Nobuyoshi Nakada authored
    This function may be a macro for optimization, which will be expanded
    to `rb_ary_new_from_values`.
    
    ```
    ext/socket/ancdata.c: In function ‘bsock_recvmsg_internal’:
    ext/socket/ancdata.c:1648:1: error: embedding a directive within macro arguments is not portable
     1648 | #if defined(HAVE_STRUCT_MSGHDR_MSG_CONTROL)
          | ^
    ext/socket/ancdata.c:1650:1: error: embedding a directive within macro arguments is not portable
     1650 | #else
          | ^
    ext/socket/ancdata.c:1652:1: error: embedding a directive within macro arguments is not portable
     1652 | #endif
          | ^
    ```
Loading