COIN-OR::LEMON - Graph Library

Opened 6 years ago

Closed 6 years ago

#1 closed defect (fixed)

random.h emits warnings

Reported by: alpar Owned by: deba
Priority: minor Milestone: LEMON 1.0 release
Component: core Version: hg main
Keywords: Cc:
Revision id:

Description

When compiling random_test.cc on openSUSE 10.3 (using gcc 4.2.1) with the standard configuration settings, it says the following:

./lemon/random.h: In function ‘int main()’:
./lemon/random.h:257: warning: array subscript is below array bounds
./lemon/random.h:257: warning: array subscript is below array bounds
./lemon/random.h:257: warning: array subscript is below array bounds

The warning disappears when compile option '-O2' is not used.

The problem exists in [9bd0d6e0c279] and all preceding changesets.

Change History (3)

comment:1 Changed 6 years ago by alpar

  • Status changed from new to assigned

comment:2 Changed 6 years ago by alpar

  • Owner changed from alpar to deba
  • Status changed from assigned to new

comment:3 Changed 6 years ago by alpar

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [4790635473ef].

Note: See TracTickets for help on using tickets.