Skip to content
/ smpeg Public

-Waggressive-loop-optimizations warnings #4

@sezero

Description

@sezero
audio/mpeglayer3.cpp: In function 'void layer3reorder_1(int, int, REAL (*)[18], REAL (*)[18])':
audio/mpeglayer3.cpp:1287:33: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations]
 1287 |  (sfb_lines=sfBandIndex->s[sfb+1]-sfb_start))
      |             ~~~~~~~~~~~~~~~~~~~~^
audio/mpeglayer3.cpp:1285:10: note: within this loop
 1285 |       sfb<13;
      |       ~~~^~~
audio/mpeglayer3.cpp: In function 'void layer3reorder_2(int, int, REAL (*)[18], REAL (*)[18])':
audio/mpeglayer3.cpp:1312:33: warning: iteration 12 invokes undefined behavior [-Waggressive-loop-optimizations]
 1312 |  (sfb_lines=sfBandIndex->s[sfb+1]-sfb_start))
      |             ~~~~~~~~~~~~~~~~~~~~^
audio/mpeglayer3.cpp:1310:10: note: within this loop
 1310 |       sfb<13;
      |       ~~~^~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions