Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libdrgn: mark log format as non-NULL and disable -Wformat-zero-length
In my branch for the module API (#332), I want to log an error without any additional context. Passing an empty format string causes a "zero-length gnu_printf format string" warning from GCC, and passing NULL crashes in vsnprintf(). Empty format strings are totally valid, but NULL clearly isn't, so annotate the format parameter as non-NULL and disable -Wformat-zero-length. Signed-off-by: Omar Sandoval <[email protected]>
- Loading branch information