hparra / ruby-serialport

ruby-serialport is a Ruby library that provides a class for using RS-232 serial ports
http://rubygems.org/gems/serialport
GNU General Public License v2.0
246 stars 58 forks source link

posix_serialport_impl.c: error: incompatible pointer to integer #75

Open listout opened 1 year ago

listout commented 1 year ago

Clang 15 has enabled -Werror=int-conversion by default. Hence, we now get

posix_serialport_impl.c:113:13: error: incompatible pointer to integer conversion passing 'struct RFile *' to parameter of type 'VALUE' (aka 'unsigned long') [-Wint-conversion] OBJSETUP(sp, class, T_FILE); ^~ This commit should fix this build error.

Bug: https://bugs.gentoo.org/883127

fweimer-rh commented 10 months ago

Sorry, didn't see this earlier. #76 fixes the Windows code as well.

hparra commented 10 months ago

Please see https://github.com/hparra/ruby-serialport/discussions/77