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
commitf96f9cfff505b035d2abe6cb560ca436bbf2181d (patch)
tree9ebe978a3dba9314e5edd7bde77e4bc7a0308434 /apps
parente1ceb5dda468472a216a2f747864b8349a46562d (diff)
downloadATCD-f96f9cfff505b035d2abe6cb560ca436bbf2181d.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");