[ruby-core:74532] [Ruby trunk Bug#12213] Lots of warnings: operation on ‘precision’ may be undefined

From: duerst@...
Date: 2016-03-24 09:57:32 UTC
List: ruby-core #74532
Issue #12213 has been reported by Martin Dürst.

----------------------------------------
Bug #12213: Lots of warnings: operation on ‘precision’ may be undefined
https://bugs.ruby-lang.org/issues/12213

* Author: Martin Dürst
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.4.0dev (2016-03-24 trunk 54246) [x86_64-cygwin]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
When compiling ruby trunk on cygwin, I get a long list of warnings starting with the following:

strftime.c:290:14: warning: operation on ‘precision’ may be undefined [-Wsequence-poin                     t]
    precision = FMT_PRECISION(def_prec); \
              ^
strftime.c:411:4: note: in expansion of macro ‘FMT’
    FMT('0', 2, "d", (int)i);
    ^

The other line numbers are: 425, 430, 435, 440, 462, 464, 323, and so on. Besides line 290, which turns up a lot, line 327 is also mentioned a few times, as well as the macro 'FMTV' (rather than 'FMT').



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next