Opened 15 months ago

Closed 15 months ago

Last modified 15 months 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 15 months ago.

Download all attachments as: .zip

Change History (4)

Changed 15 months ago by kalxas

Attachment: ogr_wrap.patch added

comment:1 Changed 15 months ago by Ari Jolma

Resolution: fixed
Status: newclosed

In 34216:

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

comment:2 Changed 15 months ago by Even Rouault

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

comment:3 Changed 15 months ago by Ari Jolma

Backported in r34224.

Note: See TracTickets for help on using tickets.