summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <johannes.hofmann@gmx.de>2004-10-12 15:14:16 +0000
committerJohannes Hofmann <johannes.hofmann@gmx.de>2004-10-12 15:14:16 +0000
commit570f2cbe4b10f587591273226a64b79d6d0f48e7 (patch)
treebb6c2e327bdd517eb1e9c3adec1e34c5a962071f /src
parentdbac923494a608d03f9381687b2ee2a3056b6696 (diff)
fix some warnings
fix some warnings
Diffstat (limited to 'src')
-rw-r--r--src/GsWidget.cxx12
-rw-r--r--src/PSEditWidget.cxx4
-rw-r--r--src/PSEditor.cxx5
-rw-r--r--src/Postscript.cxx4
4 files changed, 15 insertions, 10 deletions
diff --git a/src/GsWidget.cxx b/src/GsWidget.cxx
index 31f9882..946e0c0 100644
--- a/src/GsWidget.cxx
+++ b/src/GsWidget.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: GsWidget.cxx,v 1.7 2004/10/12 16:41:43 hofmann Exp $"
+// "$Id: GsWidget.cxx,v 1.8 2004/10/12 17:14:16 hofmann Exp $"
//
// GsWidget routines.
//
@@ -55,7 +55,6 @@ void GsWidget::draw() {
void GsWidget::setProps() {
char data[512];
- int gs_win;
if (!offscreen) {
offscreen = fl_create_offscreen(w(), h());
@@ -68,8 +67,7 @@ void GsWidget::setProps() {
atoms[4] = XInternAtom(fl_display,"DONE" , false);
snprintf(data, 512, "%lu %d %d %d %d %d %g %g",
- 0, 0, 0, 0, paper_x, paper_y,
- xdpi, ydpi,0,0,0,0 );
+ 0, 0, 0, 0, paper_x, paper_y, xdpi, ydpi);
int xid = fl_xid(window());
@@ -171,7 +169,9 @@ int GsWidget::load(int fd) {
} else {
gs_pid = pid;
page = 0;
- }
+ }
+
+ return 0;
}
int GsWidget::reload() {
@@ -206,6 +206,8 @@ int GsWidget::next() {
XSendEvent(fl_display, gs_win, false, 0, &e);
XFlush(fl_display);
}
+
+ return 0;
}
int GsWidget::handleX11(int ev) {
diff --git a/src/PSEditWidget.cxx b/src/PSEditWidget.cxx
index 013a94e..257cb7f 100644
--- a/src/PSEditWidget.cxx
+++ b/src/PSEditWidget.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: PSEditWidget.cxx,v 1.14 2004/07/09 17:22:55 hofmann Exp $"
+// "$Id: PSEditWidget.cxx,v 1.15 2004/10/12 17:14:16 hofmann Exp $"
//
// PSEditWidget routines.
//
@@ -73,7 +73,7 @@ int PSEditWidget::next() {
}
}
cur_text = NULL;
- GsWidget::next();
+ return GsWidget::next();
}
void PSEditWidget::new_text(int x1, int y1, const char *s, int p) {
diff --git a/src/PSEditor.cxx b/src/PSEditor.cxx
index 963c9fb..fa8ad34 100644
--- a/src/PSEditor.cxx
+++ b/src/PSEditor.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: PSEditor.cxx,v 1.9 2004/10/11 14:44:47 hofmann Exp $"
+// "$Id: PSEditor.cxx,v 1.10 2004/10/12 17:14:16 hofmann Exp $"
//
// PSEditor routines.
//
@@ -115,7 +115,7 @@ int PSEditor::load(char *f) {
FILE *fp;
char tmpname[256];
char linebuf[1024];
- int size, ret, ret1, ret2;
+ int ret;
PSParser *p1 = new PSParser_1(this);
PSParser *p2 = new PSParser_2(this);
@@ -210,6 +210,7 @@ int PSEditor::import(char *f) {
delete(p2);
mod = 1;
+ return 0;
}
int PSEditor::get_ps_level() {
diff --git a/src/Postscript.cxx b/src/Postscript.cxx
index e0916de..7fdabcc 100644
--- a/src/Postscript.cxx
+++ b/src/Postscript.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Postscript.cxx,v 1.7 2004/07/28 20:15:48 hofmann Exp $"
+// "$Id: Postscript.cxx,v 1.8 2004/10/12 17:14:16 hofmann Exp $"
//
// Postscript handling routines.
//
@@ -228,6 +228,8 @@ int PSWriter::write(FILE *in, FILE *out) {
fprintf(out, PSEDIT_PAGE_MARKER, page++);
}
}
+
+ return 0;
}
void PSWriter::write_internal_format(FILE *out) {