mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 15:32:12 +08:00
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
This commit is contained in:
+5
-4
@@ -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 $".
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user