Author: dim
Date: Fri Jun 8 17:08:27 2012
New Revision: 236759
URL: http://svn.freebsd.org/changeset/base/236759
Log:
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,
On 2012.06.08. 19:08, Dimitry Andric wrote:
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
Modified:
On 2012-06-08 19:30, Gabor Kovesdan wrote:
On 2012.06.08. 19:08, Dimitry Andric wrote:
...
-#define UNUSED_ARG(A) do { A=A; } while(0)
+#define UNUSED_ARG(A) do { (void)(A); } while(0)
My fault, I should have fixed this. But what about this version? I think
it is more elegant and