summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2006-08-02 18:03:10 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2006-08-02 18:03:10 +0000
commit8266e090f5aaa8ba37a17eef6f13eec44facc662 (patch)
treecc273955651c7adfcccab65f687fff62acffdc3b
parentd9eecaf4ab21a39b37eaf5f13bba523a61559781 (diff)
Don't call dummy function inside dummy function - some compilers don't like
it... Drop +DAportable from default HP-UX optimizations. Move HP-UX C++ compiler warning options to CXXFLAGS. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5274 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--configure.in6
-rw-r--r--src/fl_call_main.c2
2 files changed, 2 insertions, 6 deletions
diff --git a/configure.in b/configure.in
index 61a9a8986..c21b8e0f9 100644
--- a/configure.in
+++ b/configure.in
@@ -936,15 +936,11 @@ else
fi
fi
- if test "x$with_optim" = x; then
- OPTIM="$OPTIM +DAportable"
- fi
-
if test $PICFLAG = 1; then
OPTIM="+z $OPTIM"
fi
- OPTIM="$OPTIM +W336,501,736,740,749,829"
+ CXXFLAGS="$CXXFLAGS +W336,501,736,740,749,829"
;;
OSF1*)
# Running Digital/Tru64 UNIX; these options should work for the
diff --git a/src/fl_call_main.c b/src/fl_call_main.c
index 81c1baef6..e29f5853e 100644
--- a/src/fl_call_main.c
+++ b/src/fl_call_main.c
@@ -98,7 +98,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
#else
/* This code to prevent "empty translation unit" or similar warnings... */
-static void dummy(void) {dummy();}
+static void dummy(void) {}
#endif
/*