summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-06-08 17:08:27 +0000
committerdim <dim@FreeBSD.org>2012-06-08 17:08:27 +0000
commita3a73ec277af4f8e132fad81ba45506af9eb90b7 (patch)
tree0225fa539a8cb42b464b887e1ccdd378f75638d3 /usr.bin
parentb7f9eb54a9aac41a2963631467f2e9a601a94d9e (diff)
downloadFreeBSD-src-a3a73ec277af4f8e132fad81ba45506af9eb90b7.zip
FreeBSD-src-a3a73ec277af4f8e132fad81ba45506af9eb90b7.tar.gz
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
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/sort/sort.h2
1 files changed, 1 insertions, 1 deletions
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]
OpenPOWER on IntegriCloud