GCC will generate the above warning in the following case.
To Reproduce
- Define a fake function with return value and no arguments:
FAKE_VALUE_FUNC(int, some_function)
- 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
GCC will generate the above warning in the following case.
To Reproduce
FAKE_VALUE_FUNC(int, some_function)Expected behavior
Compilation without warnings
Compiler, toolset, platform (please complete the following information):