Skip to content

warning: ISO C99 requires at least one argument for the "..." in a variadic macro #105

Description

@nradulovic

GCC will generate the above warning in the following case.

To Reproduce

  1. Define a fake function with return value and no arguments: FAKE_VALUE_FUNC(int, some_function)
  2. Compile the test with GCC with the following flags: -std=c11 -Wall -Wextra -pedantic

Expected behavior
Compilation without warnings

Compiler, toolset, platform (please complete the following information):

  • toolchain: arm-none-eabi-gcc 10.2.1 20201103
  • OS: Windows 10

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions