Commit 962c46fd authored by Robert David Graham's avatar Robert David Graham
Browse files

Merge pull request #6 from jedisct1/unused

Use (void) x instead of x = x to mark unused variables.
parents d51e703f 884cb50f
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