No return in non-void function in scan/sane/hpaio.c
Bug #1017496 reported by
Philipp Wagner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
Fix Released
|
Undecided
|
Sarbeswar Meher |
Bug Description
I tried to package hplip 3.12.6 for openSUSE and got the following error from rpmlint:
E: hplip no-return-
The functions in the corresponding lines use some if-constructs to return a different return status depending on some parameters, but don't return anything if no if-clause matches. This is what rpmlint complains about. I don't know enough about the source code to submit a patch with a sane default return value, so could you please look into this? I would like to avoid disabling this error for indefinite amounts of time.
Changed in hplip: | |
status: | New → Fix Committed |
Changed in hplip: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I found out that it is not possible to disable the error when doing the RPM packing, so I needed to try a patch. I attached it for you to have a look at it. Does this look ok?