meekrosoft / fff

A testing micro framework for creating function test doubles
Other
749 stars 163 forks source link

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

Open nradulovic opened 2 years ago

nradulovic commented 2 years ago

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):

nradulovic commented 2 years ago

See PR #95 for the same issue.