Commit 884cb50f authored by Frank DENIS's avatar Frank DENIS
Browse files

Use (void) x instead of x = x to mark unused variables.

x = x makes clang whine about assigning a variable to itself.
parent c0ac27fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ void output_report_banner(
#if defined(_MSC_VER)
#define UNUSEDPARM(x) x
#else
#define UNUSEDPARM(x) (x)=(x)
#define UNUSEDPARM(x) (void) x
#endif
#endif

+2 −1
Original line number Diff line number Diff line
#include "proto-ssh.h"
#include "proto-banner1.h"
#include "unusedparm.h"
#include <ctype.h>


@@ -13,7 +14,7 @@ banner_ssh( struct Banner1 *banner1,
{
    unsigned i;

    banner1=banner1;
    UNUSEDPARM(banner1);

    for (i=0; i<length; i++)
    switch (state) {
+1 −1
Original line number Diff line number Diff line
@@ -2,6 +2,6 @@
#if defined(_MSC_VER)
#define UNUSEDPARM(x) x
#elif defined(__GNUC__)
#define UNUSEDPARM(x)
#define UNUSEDPARM(x) (void) x
#endif
#endif