Skip to content

Add warning filter configurations #40

@jpeach

Description

@jpeach

It would be really convenient if I could specify compiler warning filters in the llama configuration since sometimes it's really hard do pass the right flags through build systems, and warnings tend to be fragile across compilers and versions of compilers.

One common use case is to force warnings off, so a config like this would be amazing:

disable-warnings:
- unused-command-line-argument # emits "-Wno-unused-command-line-argument"

The second use case is to completely filter out warnings so that compilers don't error out when they see them:

filter-warnings:
- maybe-uninitialized # both "-Wmaybe-uninitialized" and "-Wno-maybe-uninitialized" are removed
- packed-not-aligned

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions