Project

General

Profile

Actions

Bug #1282

closed

tk extension uses old style c function declarations generating a bunch of warnings

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:22871]

Description

=begin
VC 2008 doesn't seem to like old-style C function declarations. It generates a bunch of C4113 warnings, which are fake.

I know that Ruby used to use the old-style C function declarations. Is there an automated way of reformatting tcltklib.c?


cl -nologo -I. -I../../.ext/include/i386-mswin32_90 -I../.././../include -I../.././../ext/tk -MDd -Zi -RTC1 -W3 -wd4996 -Od -Zm600 -DRUBY_EXTCONF_H="extconf.h" -I. -I./.. -I./../missing -DLIBRUBY_SO="ruby19.dll" -IC:\Development\msvc\include -DWITH_TCL_ENABLE_THREAD=0 -Fotcltklib.obj -c -Tc../.././../ext/tk/tcltklib.c tcltklib.c
../.././../ext/tk/tcltklib.c(1561) : warning C4244: '=' : conversion from 'time_t' to 'long', possible loss of data
../.././../ext/tk/tcltklib.c(1667) : warning C4244: '=' : conversion from 'time_t' to 'long', possible loss of data
../.././../ext/tk/tcltklib.c(1722) : warning C4113: 'VALUE (__cdecl *)()' differs in parameter lists from 'VALUE (__cdecl *)(VALUE)'
../.././../ext/tk/tcltklib.c(1826) : warning C4113: 'VALUE (__cdecl *)()' differs in parameter lists from 'VALUE (__cdecl *)(VALUE)'
../.././../ext/tk/tcltklib.c(1830) : warning C4113: 'VALUE (__cdecl *)()' differs in parameter lists from 'VALUE (__cdecl *)(VALUE)'
../.././../ext/tk/tcltklib.c(1918) : warning C4113: 'VALUE (__cdecl *)()' differs in parameter lists from 'VALUE (__cdecl *)(VALUE)'
../.././../ext/tk/tcltklib.c(2431) : warning C4113: 'VALUE (__cdecl *)()' differs in parameter lists from 'VALUE (__cdecl *)(VALUE)'
../.././../ext/tk/tcltklib.c(2637) : warning C4113: 'VALUE (__cdecl *)()' differs in parameter lists from 'VALUE (__cdecl *)(VALUE)'
../.././../ext/tk/tcltklib.c(5055) : warning C4113: 'int (__cdecl *)()' differs in parameter lists from 'Tcl_ObjCmdProc (__cdecl *)'
../.././../ext/tk/tcltklib.c(5057) : warning C4113: 'int (__cdecl *)()' differs in parameter lists from 'Tcl_ObjCmdProc (__cdecl *)'
../.././../ext/tk/tcltklib.c(5059) : warning C4113: 'int (__cdecl *)()' differs in parameter lists from 'Tcl_ObjCmdProc (__cdecl *)'
../.././../ext/tk/tcltklib.c(5555) : warning C4113: 'int (__cdecl *)()' differs in parameter lists from 'Tcl_ObjCmdProc (__cdecl *)'
../.././../ext/tk/tcltklib.c(5558) : warning C4113: 'int (__cdecl *)()' differs in parameter lists from 'Tcl_ObjCmdProc (__cdecl *)'
../.././../ext/tk/tcltklib.c(5561) : warning C4113: 'int (__cdecl *)()' differs in parameter lists from 'Tcl_ObjCmdProc (__cdecl *)'
../.././../ext/tk/tcltklib.c(5582) : warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'Tcl_InterpDeleteProc (__cdecl *)'
../.././../ext/tk/tcltklib.c(5670) : warning C4113: 'int (__cdecl *)()' differs in parameter lists from 'Tcl_ObjCmdProc (__cdecl *)'
../.././../ext/tk/tcltklib.c(5685) : warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'Tcl_InterpDeleteProc (__cdecl *)'
../.././../ext/tk/tcltklib.c(5851) : warning C4113: 'int (__cdecl *)()' differs in parameter lists from 'Tcl_ObjCmdProc (__cdecl *)'
../.././../ext/tk/tcltklib.c(5946) : warning C4113: 'int (__cdecl *)()' differs in parameter lists from 'Tcl_ObjCmdProc (__cdecl *)'
../.././../ext/tk/tcltklib.c(5959) : warning C4113: 'int (__cdecl *)()' differs in parameter lists from 'Tcl_ObjCmdProc (__cdecl *)'
../.././../ext/tk/tcltklib.c(6528) : warning C4113: 'VALUE (__cdecl *)()' differs in parameter lists from 'VALUE (__cdecl *)(VALUE)'
../.././../ext/tk/tcltklib.c(7772) : warning C4113: 'VALUE (__cdecl *)()' differs in parameter lists from 'VALUE (__cdecl *)(VALUE)'
../.././../ext/tk/tcltklib.c(10125) : warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(VALUE)'
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0