summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2005-04-29 14:10:26 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2005-04-29 14:10:26 +0000
commitbf4ef30e7d7ad09b99718dda6983b2862a24b346 (patch)
tree9ebe978a3dba9314e5edd7bde77e4bc7a0308434 /apps
parent460513c304a53efa180303cb97920cb158d18004 (diff)
downloadATCD-bf4ef30e7d7ad09b99718dda6983b2862a24b346.tar.gz
ChangeLogTag:Fri Apr 29 12:42:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/gperf/ChangeLog9
-rw-r--r--apps/gperf/src/Key_List.cpp1
2 files changed, 10 insertions, 0 deletions
diff --git a/apps/gperf/ChangeLog b/apps/gperf/ChangeLog
index af7bb6444ce..100dd45f644 100644
--- a/apps/gperf/ChangeLog
+++ b/apps/gperf/ChangeLog
@@ -1,3 +1,12 @@
+Fri Apr 29 09:08:39 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
+
+ * src/Key_List.cpp (output_binary_search_function): Added a
+
+ do {/* null */} while (&base == 0);
+
+ to silence warnings on some compilers. Thanks to Frank Pilhofer
+ <fp@mc.com>.
+
Fri Aug 5 15:30:00 UTC 2004 Simon Massey <simon.massey@prismtechnologies.com>
* apps/gperf/tests/gperf_test.mpb
diff --git a/apps/gperf/src/Key_List.cpp b/apps/gperf/src/Key_List.cpp
index 4301e629d25..567c178de08 100644
--- a/apps/gperf/src/Key_List.cpp
+++ b/apps/gperf/src/Key_List.cpp
@@ -944,6 +944,7 @@ Key_List::output_binary_search_function (void)
ACE_OS::printf ("int first = 0, last = 0, middle;\n");
ACE_OS::printf ("%s*base;\n",struct_tag);
+ ACE_OS::printf ("do {/* null */} while (&base == 0); // Silence warnings about unused variables...");
ACE_OS::printf ("\nlast = %d;\n",total_keys - 1);
ACE_OS::printf ("while (last >= first)\n");
ACE_OS::printf ("\t{\n");