Skip to content

Kconfig should not produce warnings #7744

Open
@SebastianBoe

Description

@SebastianBoe

I believe that the Kconfig warnings that are produced today are creating more confusion for users than they are creating value by assisting users with diagnostic information.

I would suggest to rectify this by following this procedure:

    for warning in warning_types:
        should_treat_as_error = determine_if_the_warning_should_be_treated_as_an_error()
        feasible_to_resolve   = determine_if_it_is_feasible_to_resolve_all_instances_in_testsuite()

        if should_treat_as_error:
            if feasible_to_resolve:
                resolve()
                change_warning_into_an_error()
            else:
                turn_off_warning_for_non_verbose_builds()
        else:
            turn_off_warning_for_non_verbose_builds()

Turning off warnings that should be treated as errors is unfortunate, but I believe that it is better to live with this technical debt than to have the system behave as it does today.

Alternatively, we could simply have Kconfig follow gcc's warning policy. -Werror on sanitycheck, warnings otherwise. But I would prefer it if the CI environment was not different from the desktop environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions