summaryrefslogtreecommitdiff
path: root/test/demo.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-10-28 21:47:01 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-10-28 21:47:01 +0000
commit8f79d200a0c20c1840f8f8fa9862c4f84ce72135 (patch)
tree7695dc20692a91694f00424da1c5a8caad792e2d /test/demo.cxx
parent1b6dae10bff9e86977f7293e14d48fb8b619a1c9 (diff)
Fixed the remaining warnings
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7767 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/demo.cxx')
-rw-r--r--test/demo.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/demo.cxx b/test/demo.cxx
index 01a320598..e4e2383a6 100644
--- a/test/demo.cxx
+++ b/test/demo.cxx
@@ -417,7 +417,7 @@ void dobut(Fl_Widget *, long arg)
char* command = new char[icommand_length+5]; // 5 for extra './' and ' &\0'
sprintf(command, "./%s &", menus[men].icommand[bn]);
- system(command);
+ if (system(command)==-1) { /* ignore */ }
delete[] command;
#endif // WIN32
@@ -518,7 +518,10 @@ int main(int argc, char **argv) {
if (buf!=fname)
strcpy(buf,fname);
const char *c = fl_filename_name(buf);
- if (c > buf) {buf[c-buf] = 0; chdir(buf);}
+ if (c > buf) {
+ buf[c-buf] = 0;
+ if (chdir(buf)==-1) { /* ignore */ }
+ }
push_menu("@main");
form->show(argc,argv);
Fl::run();