COIN-OR::LEMON - Graph Library

Opened 16 years ago

Closed 16 years ago

#1 closed defect (fixed)

random.h emits warnings

Reported by: Alpar Juttner Owned by: Balazs Dezso
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 16 years ago by Alpar Juttner

Status: newassigned

comment:2 Changed 16 years ago by Alpar Juttner

Owner: changed from Alpar Juttner to Balazs Dezso
Status: assignednew

comment:3 Changed 16 years ago by Alpar Juttner

Resolution: fixed
Status: newclosed

Fixed in [4790635473ef].

Note: See TracTickets for help on using tickets.