Avoid: $ make clean && make CFLAGS=-Wpedantic 2>&1 | head -n 5 rm -f conmon.o cmsg.o ../bin/conmon cc -Wpedantic -std=c99 -Os -Wall -Wextra -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -c -o conmon.o conmon.c conmon.c: In function ‘write_k8s_log’: conmon.c:342:33: warning: ISO C99 requires at least one argument for the "..." in a variadic macro ninfo("Creating new log file"); ^ by distinguishing between calls with and without user-supplied formatting. Also remove some user-supplied newlines from the following * nwarn for "Could not find newline in entire buffer" * ninfo for "Got ctl message..." * ninfo for "container %d exited with status..." * nexitf for "Failed to write %s to exit file..." because the macros add their own trailing newlines. Also drop some redundant user-specified strerror() arguments from the following: * pexit for "Failed to open log file..." * pexit for "Runtime path %s is not valid..." because the pexit* macros add strerror on their own. Signed-off-by: W. Trevor King <wking@tremily.us> |
||
---|---|---|
.. | ||
cmsg.c | ||
cmsg.h | ||
conmon.c | ||
Makefile |