Skip to content

Commit

Permalink
Revert "lmbench_usage() needs a prototype"
Browse files Browse the repository at this point in the history
This reverts commit ef44cac.
  • Loading branch information
songha1x committed Dec 20, 2019
1 parent a92cded commit 701c6c3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/bench.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,9 @@ typedef unsigned char bool_t;
#include <sys/un.h>
#include <sys/resource.h>
#define PORTMAP
#ifndef __linux__
#include <rpc/rpc.h>
#else
#include <tirpc/rpc/rpc.h>
#endif

#endif

#ifndef __linux__
#include <rpc/types.h>
#else
#include <tirpc/rpc/types.h>
#endif

#include <stdarg.h>
#ifndef HAVE_uint
Expand Down Expand Up @@ -270,8 +260,6 @@ extern int optopt;
extern char *optarg;
int getopt(int ac, char **av, char *opts);

void lmbench_usage(int argc, char *argv[], char* usage);

typedef u_long iter_t;
typedef void (*benchmp_f)(iter_t iterations, void* cookie);

Expand Down

1 comment on commit 701c6c3

@axiqia
Copy link

@axiqia axiqia commented on 701c6c3 Jul 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@songha1x Why did you delete the declaration of lmbench_usage? I got a lot of warnings when complile lmbench with gcc like bellow:

lat_pmake.c:47:23: warning: implicit declaration of function ‘lmbench_usage’ [-Wimplicit-function-declaration]
    if (parallel <= 0) lmbench_usage(ac, av, usage);

Please sign in to comment.