From 2ac58c1d7927587882b91232711e44d70d5dd57e Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Fri, 8 Jun 2012 17:08:27 +0000 Subject: [PATCH] In usr.bin/sort, use another method of silencing warnings about unused arguments, which does not trigger self-assignment warnings in certain circumstances (for example, using clang with ccache). MFC after: 3 days --- usr.bin/sort/sort.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/sort/sort.h b/usr.bin/sort/sort.h index f6505c9b2a99..0a90637bd4f7 100644 --- a/usr.bin/sort/sort.h +++ b/usr.bin/sort/sort.h @@ -41,7 +41,7 @@ #define VERSION "2.3-FreeBSD" -#define UNUSED_ARG(A) do { A=A; } while(0) +#define UNUSED_ARG(A) do { (void)(A); } while(0) #ifdef WITHOUT_NLS #define getstr(n) nlsstr[n]