BIND 10 master, updated. 39dcfd79bb1b79812838c7b2f1eb146519f9cf7e [master] Workaround for unused-variable issues on Solaris.
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon May 28 19:28:28 UTC 2012
The branch, master has been updated
via 39dcfd79bb1b79812838c7b2f1eb146519f9cf7e (commit)
from 04a793d3454490fe8aa05d91185c7bc59ff30c97 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 39dcfd79bb1b79812838c7b2f1eb146519f9cf7e
Author: Marcin Siodelski <marcin at isc.org>
Date: Mon May 28 21:27:56 2012 +0200
[master] Workaround for unused-variable issues on Solaris.
-----------------------------------------------------------------------
Summary of changes:
tests/tools/perfdhcp/perfdhcp.cc | 8 ++++++++
1 file changed, 8 insertions(+)
-----------------------------------------------------------------------
diff --git a/tests/tools/perfdhcp/perfdhcp.cc b/tests/tools/perfdhcp/perfdhcp.cc
index 296dd90..5ed94ee 100644
--- a/tests/tools/perfdhcp/perfdhcp.cc
+++ b/tests/tools/perfdhcp/perfdhcp.cc
@@ -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);
}
More information about the bind10-changes
mailing list