Project

General

Profile

Bug #9972

tcltklib.c: a lot warnings format '%lx' on x64 mingw

Added by h.shirosaki (Hiroshi Shirosaki) about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.0dev (2014-06-23 trunk 46506) [x64-mingw32]
[ruby-core:63283]

Description

I see the following warnings while building mingw x64 ruby.
VALUE is not long but long long on Windows x64.
Instead we could use %p and void * cast.

../../../../../ruby/ext/tk/tcltklib.c:2501:21: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'VALUE' [-Wformat]
../../../../../ruby/ext/tk/tcltklib.c:2502:21: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'VALUE' [-Wformat]
../../../../../ruby/ext/tk/tcltklib.c: In function 'lib_eventloop_ensure':
../../../../../ruby/ext/tk/tcltklib.c:2623:5: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'VALUE' [-Wformat]
../../../../../ruby/ext/tk/tcltklib.c:2624:5: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'VALUE' [-Wformat]

Associated revisions

Revision e3e359ba
Added by nobu (Nobuyoshi Nakada) about 4 years ago

tcltklib.c: fix format specifiers

  • ext/tk/tcltklib.c: fix format specifiers for VALUE and Tcl_Interp*. [Bug #9972]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 46530
Added by nobu (Nobuyoshi Nakada) about 4 years ago

tcltklib.c: fix format specifiers

  • ext/tk/tcltklib.c: fix format specifiers for VALUE and Tcl_Interp*. [Bug #9972]

Revision 46530
Added by nobu (Nobuyoshi Nakada) about 4 years ago

tcltklib.c: fix format specifiers

  • ext/tk/tcltklib.c: fix format specifiers for VALUE and Tcl_Interp*. [Bug #9972]

Revision 46530
Added by nobu (Nobuyoshi Nakada) about 4 years ago

tcltklib.c: fix format specifiers

  • ext/tk/tcltklib.c: fix format specifiers for VALUE and Tcl_Interp*. [Bug #9972]

Revision 46530
Added by nobu (Nobuyoshi Nakada) about 4 years ago

tcltklib.c: fix format specifiers

  • ext/tk/tcltklib.c: fix format specifiers for VALUE and Tcl_Interp*. [Bug #9972]

Revision 46530
Added by nobu (Nobuyoshi Nakada) about 4 years ago

tcltklib.c: fix format specifiers

  • ext/tk/tcltklib.c: fix format specifiers for VALUE and Tcl_Interp*. [Bug #9972]

History

#1 [ruby-core:63306] Updated by nobu (Nobuyoshi Nakada) about 4 years ago

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

Applied in changeset r46530.


tcltklib.c: fix format specifiers

  • ext/tk/tcltklib.c: fix format specifiers for VALUE and Tcl_Interp*. [Bug #9972]

Also available in: Atom PDF