summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
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");