Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#6506 closed defect (fixed)

Perl Bindings: no return in non void function

Reported by: kalxas Owned by: Ari Jolma
Priority: normal Milestone:
Component: PerlBindings Version: 2.1.0
Severity: normal Keywords: perl bindings
Cc:

Description

While packaging GDAL 2.1.0 for openSUSE, I got around this rpmlint error:

[  582s] I: Program returns random data in a function
[  582s] E: gdal no-return-in-nonvoid-function ogr_wrap.cpp:2842

While ogr_wrap.cpp is included in the release tar file, patching it won't work since it gets generated again at build time.

I am attaching a patch to ogr.i that fixes this issue.

Best regards, Angelos

Attachments (1)

ogr_wrap.patch (469 bytes ) - added by kalxas 8 years ago.

Download all attachments as: .zip

Change History (4)

by kalxas, 8 years ago

Attachment: ogr_wrap.patch added

comment:1 by Ari Jolma, 8 years ago

Resolution: fixed
Status: newclosed

In 34216:

Perl bindings: return value always from GetGeomFieldIndex, fixes #6506

comment:2 by Even Rouault, 8 years ago

Shouldn't that be backported in 2.1 branch as well ?

comment:3 by Ari Jolma, 8 years ago

Backported in r34224.

Note: See TracTickets for help on using tickets.