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
Oh wow, I wonder how this went unnoticed for so long. Seems a legitimate problem with the tests but I haven't tried to reproduce yet. Bleh, different warning diagnostics across different compilers.
Adding __attribute__((__unused__)) is going to be tricky because the code triggering the problem comes from within macros.
The easiest way out, I think, would be to actually put the unused variables to use by referencing them. Doing something like:
Both the base and port testcases for atf appear to be failing on FreeBSD CURRENT because of clang -Wunused ( http://kyua3.nyi.freebsd.org/head/data/0-LATEST/results/local_atf_atf-c_macros_test_use.html ):
The code will probably need to be modified to use the variable, or to just add
__attribute__((__unused__))
around the declaration.The text was updated successfully, but these errors were encountered: