You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I add -pedantic/-Wpedantic to the Makefile, I receive the following errors:
$ make
cc -fPIC -Wall -Werror -Wunused -Wextra -Wpedantic -O0 -g -std=c11 -fprofile-arcs -ftest-coverage -c -o common.o common.c
In file included from common.c:5:
./common.h:36:14: error: token pasting of ',' and __VA_ARGS__ is a GNU extension [-Werror,-Wgnu-zero-variadic-macro-arguments]
log_err(M, ##__VA_ARGS__); \
^
./common.h:25:55: error: token pasting of ',' and __VA_ARGS__ is a GNU extension [-Werror,-Wgnu-zero-variadic-macro-arguments]
__LINE__, __FUNCTION__, errno, clean_errno(), ##__VA_ARGS__)
^
./common.h:36:14: error: token pasting of ',' and __VA_ARGS__ is a GNU extension [-Werror,-Wgnu-zero-variadic-macro-arguments]
log_err(M, ##__VA_ARGS__); \
^
./common.h:25:55: error: token pasting of ',' and __VA_ARGS__ is a GNU extension [-Werror,-Wgnu-zero-variadic-macro-arguments]
__LINE__, __FUNCTION__, errno, clean_errno(), ##__VA_ARGS__)
^
4 errors generated.
make: *** [common.o] Error 1
If I add
-pedantic
/-Wpedantic
to the Makefile, I receive the following errors:No clean solution exists. See: https://stackoverflow.com/questions/5588855/standard-alternative-to-gccs-va-args-trick
The text was updated successfully, but these errors were encountered: