From 949479b5b21827ba33c681d213b9909a0bfaaedc Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Sun, 20 Aug 2000 04:35:17 +0000 Subject: Removed some (not all) of the warnings when compiled with -Wwrite-strings, this should also get similar warnings Solaris produces. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1292 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/fluid.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'fluid') diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx index d38ac1916..cb028bf4e 100644 --- a/fluid/fluid.cxx +++ b/fluid/fluid.cxx @@ -1,5 +1,5 @@ // -// "$Id: fluid.cxx,v 1.15.2.8 2000/06/08 08:26:45 bill Exp $" +// "$Id: fluid.cxx,v 1.15.2.9 2000/08/20 04:35:16 spitzak Exp $" // // FLUID main entry for the Fast Light Tool Kit (FLTK). // @@ -208,7 +208,7 @@ void write_cb(Fl_Widget *, void *) { } void write_strings_cb(Fl_Widget *, void *) { - static char *exts[] = { ".txt", ".po", ".msg" }; + static const char *exts[] = { ".txt", ".po", ".msg" }; if (!filename) { save_cb(0,0); if (!filename) return; @@ -421,11 +421,12 @@ static int arg(int argc, char** argv, int& i) { #endif #endif +extern "C" { static void sigint(SIGARG) { signal(SIGINT,sigint); exit_cb(0,0); } - +} #endif int main(int argc,char **argv) { @@ -464,5 +465,5 @@ int main(int argc,char **argv) { } // -// End of "$Id: fluid.cxx,v 1.15.2.8 2000/06/08 08:26:45 bill Exp $". +// End of "$Id: fluid.cxx,v 1.15.2.9 2000/08/20 04:35:16 spitzak Exp $". // -- cgit v1.2.3