void functions should not return values
Bug #1842132 reported by
Ginta
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.
To post a comment you must log in.