From 692f78d66385cf5c9a252a16dc0f6c8cadc7bcb8 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Sat, 28 Jun 2003 10:10:25 +0000 Subject: [PATCH] Fix errors reported by ICC. * src/tgba/state.hh (state_ptr_less_than::operator()): Make it const. * src/tgba/tgbaproduct.cc: Include string.hh. * src/ltlast/multop.hh (multop::add, multop::add_sorted): Do not use qualified names in declarations. * m4/gccwarn.m4 (CF_GXX_WARNINGS): Fix GXX test. * src/ltlenv/defaultenv.hh, src/ltlenv/defaultenv.cc, src/ltlenv/environment.hh: Add virtual destructors. --- ChangeLog | 12 ++++++++++++ m4/gccwarn.m4 | 2 +- src/ltlast/multop.hh | 4 ++-- src/ltlenv/defaultenv.cc | 4 ++++ src/ltlenv/defaultenv.hh | 1 + src/ltlenv/environment.hh | 5 +++++ src/tgba/state.hh | 2 +- src/tgba/tgbaproduct.cc | 1 + 8 files changed, 27 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5107c6ecd..41a799d84 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2003-06-28 Alexandre Duret-Lutz + + Fix errors reported by ICC. + + * src/tgba/state.hh (state_ptr_less_than::operator()): Make it const. + * src/tgba/tgbaproduct.cc: Include string.hh. + * src/ltlast/multop.hh (multop::add, multop::add_sorted): Do + not use qualified names in declarations. + * m4/gccwarn.m4 (CF_GXX_WARNINGS): Fix GXX test. + * src/ltlenv/defaultenv.hh, src/ltlenv/defaultenv.cc, + src/ltlenv/environment.hh: Add virtual destructors. + 2003-06-26 Alexandre Duret-Lutz * Makefile.am (EXTRA_DIST): Add HACKING. diff --git a/m4/gccwarn.m4 b/m4/gccwarn.m4 index 5601050ea..1fcdf8f63 100644 --- a/m4/gccwarn.m4 +++ b/m4/gccwarn.m4 @@ -14,7 +14,7 @@ dnl A few other options have been left out because they are annoying in C++. AC_DEFUN([CF_GXX_WARNINGS], -[if test -n "$GXX"; then +[if test "x$GXX" = xyes; then AC_CACHE_CHECK([for g++ warning options], ac_cv_prog_gxx_warn_flags, [ cat > conftest.$ac_ext <compare(right) < 0; } diff --git a/src/tgba/tgbaproduct.cc b/src/tgba/tgbaproduct.cc index 8e432c687..c1e56ca09 100644 --- a/src/tgba/tgbaproduct.cc +++ b/src/tgba/tgbaproduct.cc @@ -1,6 +1,7 @@ #include "tgbaproduct.hh" #include "tgbatranslateproxy.hh" #include "dictunion.hh" +#include #include namespace spot