void functions should not return values

Bug #1842132 reported by Ginta
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

While gcc silently allows returning values from void functions (just by discarding them), in clang this is a compile error.

I attach a patch with a suggested canonical solution for C which does not involve any return.

Use it in combination with the patch attached in bug #1840490 to make hplip to be compiled with clang.

Revision history for this message
Ginta (stormbyte) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.