tar: make safe for -Wunused-parameter
This also ports to C23 [[maybe_unused]]. * configure.ac (WARN_CFLAGS): Do not add -Wno-unused-parameter. Add MAYBE_UNUSED where needed in source code. Also, put it at the front where C23 requires it.
This commit is contained in:
@@ -189,7 +189,6 @@ if test "$gl_gcc_warnings" = yes; then
|
||||
done
|
||||
gl_WARN_ADD([-Wno-sign-compare]) # Too many warnings for now
|
||||
gl_WARN_ADD([-Wno-type-limits]) # It's OK to optimize based on types.
|
||||
gl_WARN_ADD([-Wno-unused-parameter]) # Too many warnings for now
|
||||
gl_WARN_ADD([-Wno-format-nonliteral])
|
||||
|
||||
gl_WARN_ADD([-fdiagnostics-show-option])
|
||||
|
||||
Reference in New Issue
Block a user