Commit 39dcfd79 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[master] Workaround for unused-variable issues on Solaris.

parent 04a793d3
......@@ -31,6 +31,14 @@
int
main(const int argc, char* const argv[])
{
// We need to manipulate argc and argv to avoid
// unused-variable warnings.
// This is temporary solution.
int ac = argc;
char* av = argv[0];
if (ac >= 0 && av != 0) {
ac = 1;
}
fprintf(stderr, "perfdhcp is not supported on this version of the operating system\n");
return (1);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment