Project

General

Profile

Actions

Bug #1280

closed

Fix Compiler Warnings - digest/iconv/json/socket/syck/zlib extensions

Added by cfis (Charlie Savage) about 15 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2dev (2009-03-12) [i386-mswin32_90]
Backport:
[ruby-core:22869]

Description

=begin
VC2008, compiled with -W3.

cl -nologo -I. -I../../.ext/include/i386-mswin32_90 -I../.././../include -I../.././../ext/digest -MDd -Zi -RTC1 -W3 -wd4996 -Od -Zm600 -DRUBY_EXTCONF_H="extconf.h" -I. -I./.. -I./../missing -DLIBRUBY_SO="ruby19.dll" -IC:\Development\msvc\include -Fodigest.obj -c -Tc../.././../ext/digest/digest.c digest.c
../.././../ext/digest/digest.c(57) : warning C4018: '<' : signed/unsigned mismatch

cl -nologo -I. -I../../../.ext/include/i386-mswin32_90 -I../../.././../include -I../../.././../ext/digest/bubblebabble -I../../.././../ext/digest/bubblebabble/.. -MDd -Zi -RTC1 -W3 -wd4996 -Od -Zm600 -DRUBY_EXTCONF_H="extconf.h" -I. -I./.. -I./../missing -DLIBRUBY_SO="ruby19.dll" -IC:\Development\msvc\include -Fobubblebabble.obj -c -Tc../../.././../ext/digest/bubblebabble/bubblebabble.c bubblebabble.c
../../.././../ext/digest/bubblebabble/bubblebabble.c(52) : warning C4018: '>=' : signed/unsigned mismatch
../../.././../ext/digest/bubblebabble/bubblebabble.c(64) : warning C4018: '>=' : signed/unsigned mismatch

cl -nologo -I. -I../../.ext/include/i386-mswin32_90 -I../.././../include -I../.././../ext/iconv -MDd -Zi -RTC1 -W3 -wd4996 -Od -Zm600 -DRUBY_EXTCONF_H="extconf.h" -I. -I./.. -I./../missing -DLIBRUBY_SO="ruby19.dll" -IC:\Development\msvc\include -Foiconv.obj -c -Tc../.././../ext/iconv/iconv.c iconv.c
../.././../ext/iconv/iconv.c(463) : warning C4018: '>' : signed/unsigned mismatch
../.././../ext/iconv/iconv.c(464) : warning C4018: '<' : signed/unsigned mismatch

cl -nologo -I. -I../../../../.ext/include/i386-mswin32_90 -I../../../.././../include -I../../../.././../ext/json/ext/parser -MDd -Zi -RTC1 -W3 -wd4996 -Od -Zm600 -DRUBY_EXTCONF_H="extconf.h" -I. -I./.. -I./../missing -DLIBRUBY_SO="ruby19.dll" -IC:\Development\msvc\include -Founicode.obj -c -Tc../../../.././../ext/json/ext/parser/unicode.c unicode.c
../../../.././../ext/json/ext/parser/unicode.c(84) : warning C4244: '=' : conversion from 'long' to 'UTF16', possible loss of data

cl -nologo -I. -I../../.ext/include/i386-mswin32_90 -I../.././../include -I../.././../ext/socket -MDd -Zi -RTC1 -W3 -wd4996 -Od -Zm600 -DRUBY_EXTCONF_H="extconf.h" -I. -I./.. -I./../missing -DLIBRUBY_SO="ruby19.dll" -IC:\Development\msvc\include -Fosocket.obj -c -Tc../.././../ext/socket/socket.c socket.c
../.././../ext/socket/socket.c(1453) : warning C4018: '<' : signed/unsigned mismatch

cl -nologo -I. -I../../.ext/include/i386-mswin32_90 -I../.././../include -I../.././../ext/socket -MDd -Zi -RTC1 -W3 -wd4996 -Od -Zm600 -DRUBY_EXTCONF_H="extconf.h" -I. -I./.. -I./../missing -DLIBRUBY_SO="ruby19.dll" -IC:\Development\msvc\include -Foraddrinfo.obj -c -Tc../.././../ext/socket/raddrinfo.c raddrinfo.c
../.././../ext/socket/raddrinfo.c(890) : warning C4018: '<' : signed/unsigned mismatch

cl -nologo -I. -I../../.ext/include/i386-mswin32_90 -I../.././../include -I../.././../ext/syck -MDd -Zi -RTC1 -W3 -wd4996 -Od -Zm600 -DRUBY_EXTCONF_H="extconf.h" -I. -I./.. -I./../missing -DLIBRUBY_SO="ruby19.dll" -IC:\Development\msvc\include -Fobytecode.obj -c -Tc../.././../ext/syck/bytecode.c bytecode.c
bytecode.re(442) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data

cl -nologo -I. -I../../.ext/include/i386-mswin32_90 -I../.././../include -I../.././../ext/syck -MDd -Zi -RTC1 -W3 -wd4996 -Od -Zm600 -DRUBY_EXTCONF_H="extconf.h" -I. -I./.. -I./../missing -DLIBRUBY_SO="ruby19.dll" -IC:\Development\msvc\include -Foemitter.obj -c -Tc../.././../ext/syck/emitter.c emitter.c
../.././../ext/syck/emitter.c(297) : warning C4018: '>=' : signed/unsigned mismatch
../.././../ext/syck/emitter.c(329) : warning C4018: '>' : signed/unsigned mismatch
../.././../ext/syck/emitter.c(462) : warning C4018: '>' : signed/unsigned mismatch

cl -nologo -I. -I../../.ext/include/i386-mswin32_90 -I../.././../include -I../.././../ext/syck -MDd -Zi -RTC1 -W3 -wd4996 -Od -Zm600 -DRUBY_EXTCONF_H="extconf.h" -I. -I./.. -I./../missing -DLIBRUBY_SO="ruby19.dll" -IC:\Development\msvc\include -Fogram.obj -c -Tc../.././../ext/syck/gram.c gram.c
gram.c(1784) : warning C4102: 'yyerrorlab' : unreferenced label

cl -nologo -I. -I../../.ext/include/i386-mswin32_90 -I../.././../include -I../.././../ext/syck -MDd -Zi -RTC1 -W3 -wd4996 -Od -Zm600 -DRUBY_EXTCONF_H="extconf.h" -I. -I./.. -I./../missing -DLIBRUBY_SO="ruby19.dll" -IC:\Development\msvc\include -Forubyext.obj -c -Tc../.././../ext/syck/rubyext.c rubyext.c
../.././../ext/syck/rubyext.c(313) : warning C4244: 'function' : conversion from 'time_t' to 'long', possible loss of data

cl -nologo -I. -I../../.ext/include/i386-mswin32_90 -I../.././../include -I../.././../ext/syck -MDd -Zi -RTC1 -W3 -wd4996 -Od -Zm600 -DRUBY_EXTCONF_H="extconf.h" -I. -I./.. -I./../missing -DLIBRUBY_SO="ruby19.dll" -IC:\Development\msvc\include -Fotoken.obj -c -Tc../.././../ext/syck/token.c token.c
token.re(788) : warning C4244: '=' : conversion from 'long' to 'char', possible loss of data
token.re(901) : warning C4244: '=' : conversion from 'long' to 'char', possible loss of data

cl -nologo -I. -I../../.ext/include/i386-mswin32_90 -I../.././../include -I../.././../ext/zlib -MDd -Zi -RTC1 -W3 -wd4996 -Od -Zm600 -DRUBY_EXTCONF_H="extconf.h" -I. -I./.. -I./../missing -DLIBRUBY_SO="ruby19.dll" -IC:\Development\msvc\include -Fozlib.obj -c -Tc../.././../ext/zlib/zlib.c zlib.c
../.././../ext/zlib/zlib.c(499) : warning C4018: '>=' : signed/unsigned mismatch
../.././../ext/zlib/zlib.c(611) : warning C4018: '<=' : signed/unsigned mismatch
../.././../ext/zlib/zlib.c(1920) : warning C4244: 'function' : conversion from 'time_t' to 'unsigned long', possible loss of data
=end


Files

zlib.patch (930 Bytes) zlib.patch cfis (Charlie Savage), 03/13/2009 05:06 PM
digest.patch (778 Bytes) digest.patch cfis (Charlie Savage), 03/13/2009 05:06 PM
iconv.patch (717 Bytes) iconv.patch cfis (Charlie Savage), 03/13/2009 05:06 PM
json.patch (421 Bytes) json.patch cfis (Charlie Savage), 03/13/2009 05:06 PM
socket.patch (974 Bytes) socket.patch cfis (Charlie Savage), 03/13/2009 05:06 PM
syck.patch (1.19 KB) syck.patch cfis (Charlie Savage), 03/13/2009 05:06 PM
bigdecimal.patch (457 Bytes) bigdecimal.patch cfis (Charlie Savage), 03/13/2009 05:29 PM
Actions #1

Updated by cfis (Charlie Savage) about 15 years ago

=begin
Forgot bigdecimal patch.
=end

Actions #2

Updated by yugui (Yuki Sonoda) almost 15 years ago

  • Assignee set to nobu (Nobuyoshi Nakada)
  • Priority changed from Normal to 3
  • Target version changed from 1.9.1 to 2.0.0

=begin

=end

Actions #3

Updated by naruse (Yui NARUSE) over 14 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r25365.
Charlie, thank you for your reporting of the issue.
You have greatfully contributed toward Ruby.
May Ruby be with you.

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0