From: nobu@... Date: 2014-06-23T21:15:48+00:00 Subject: [ruby-core:63306] [ruby-trunk - Bug #9972] [Closed] tcltklib.c: a lot warnings format '%lx' on x64 mingw Issue #9972 has been updated by Nobuyoshi Nakada. 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*. [ruby-core:63283] [Bug #9972] ---------------------------------------- Bug #9972: tcltklib.c: a lot warnings format '%lx' on x64 mingw https://bugs.ruby-lang.org/issues/9972#change-47356 * Author: Hiroshi Shirosaki * Status: Closed * Priority: Normal * Assignee: * Category: ext * Target version: * ruby -v: ruby 2.2.0dev (2014-06-23 trunk 46506) [x64-mingw32] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- 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] ~~~ ---Files-------------------------------- 0001-Suppress-warnings-printf-format-lx-of-VALUE.patch (19.4 KB) -- https://bugs.ruby-lang.org/