From a3a73ec277af4f8e132fad81ba45506af9eb90b7 Mon Sep 17 00:00:00 2001 From: dim Date: Fri, 8 Jun 2012 17:08:27 +0000 Subject: 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(-) (limited to 'usr.bin/sort') diff --git a/usr.bin/sort/sort.h b/usr.bin/sort/sort.h index f6505c9..0a90637 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] -- cgit v1.1