Compatibility with strict(er) C99 compilers

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

Bug Description

hplip uses implicit ints and implicit function declarations in a few places. This causes the build to fail with a compiler that does not implement these obsolete C language features (they were removed with C99).

With the attached patches, I can get the sources to build again with a more strict compiler.

I added the manual strcasestr declaration only to get the build going. I've proposed that we expose the declaration by default in future glibc versions. I did not want to switch the entire build to -D_GNU_SOURCE out of compatibility concerns, but this is what you should do if you want to use GNU extensions such as strcasestr.

Revision history for this message
Florian Weimer (fweimer) 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.