Mellanox / libxlio

Other
41 stars 19 forks source link

issue: 3792731 Fix -Walloc-size-larger-than warning #100

Closed pasis closed 7 months ago

pasis commented 7 months ago

Description

The false positive warning is generated during linking phase. Cast array size to 32bit type to suppress the warning.

The warning appears in --enable-lto configuration likely due to inlined new[] operator and generated to the underlying malloc() call.

What

Fix false positive warning.

Why ?

Fix false positive warning.

Change type

What kind of change does this PR introduce?

Check list

galnoam commented 7 months ago

@pasis, please merge and move to fix. Thanks.