Skip to content

Would you consider cleaning up gcc warnings with -Wextra and -Wpedantic? #1116

Closed

Description

@lukester1975

https://github.com/lukester1975/stdexec/tree/gcc-warnings if you would and it's any good...

Happy to fix it up as directed if it's useful. There's only a few in the library itself; mostly in the tests.

Thanks

(gcc manual seems wrong r.e. -Wmissing-field-initializers in c++ code: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39589, hence turning that off)

Activity

  1. williamspatrick commented on Nov 17, 2023

    @williamspatrick
    Contributor

    I'd like this. I'm usually finding regressions in unused parameters because we typically compile some code using stdexec with meson warning_level=3.

  2. veljjanoski commented on Oct 27, 2026

    @veljjanoski
    Contributor

    I opened #2373 for this. With it, the headers build without warnings under -Wall -Wextra -Wpedantic on GCC 12 and Clang 21 when they are included with a plain -I, as meson does. The tests already use these flags, but CMake adds the headers as system headers, so the tests never saw these warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions