OpenSolaris

Printable Version Enter a New Search
Bug ID 6351554
Synopsis Kernel build should be more pedantic
State 10-Fix Delivered (Fix available in build)
Category:Subcategory consolidation:os-net-misc
Keywords
Responsible Engineer David Robinson
Reported Against snv_26
Duplicate Of
Introduced In solaris_2.0
Commit to Fix snv_30
Fixed In snv_30
Release Fixed solaris_nevada(snv_30)
Related Bugs 6219031
Submit Date 17-November-2005
Last Update Date 8-June-2007
Description
By default the ON consolidation is built using the followinf C flags:

    CERRWARN = -errtags=yes -errwarn=%all
    CERRWARN += -erroff=E_EMPTY_TRANSLATION_UNIT
    CERRWARN += -erroff=E_STATEMENT_NOT_REACHED

By simple experiment it can be discovered that no file under uts
will fail to compile due to E_EMPTY_TRANSLATION_UNIT, and
only 9 will fail due to E_STATEMENT_NOT_REACHED.

By removing the two erroff statements and fixing the few
warnings we can have cleaner kernel sources.
Work Around
N/A
Comments
N/A