summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/GsWidget.cxx3
-rw-r--r--src/PSEditWidget.cxx2
2 files changed, 1 insertions, 4 deletions
diff --git a/src/GsWidget.cxx b/src/GsWidget.cxx
index dbf7340..f6c58e3 100644
--- a/src/GsWidget.cxx
+++ b/src/GsWidget.cxx
@@ -256,13 +256,12 @@ GsWidget::load_page(int p) {
}
int GsWidget::fd_copy(int to, int from, size_t len) {
- size_t n, r;
+ size_t r;
char buf[1024];
int ret = 0;
signal(SIGPIPE, SIG_IGN); // don't die if gs has a problem
- n = 0;
while(len > 0) {
Fl::check(); // let fltk do its stuff
diff --git a/src/PSEditWidget.cxx b/src/PSEditWidget.cxx
index 31230f2..df956f1 100644
--- a/src/PSEditWidget.cxx
+++ b/src/PSEditWidget.cxx
@@ -277,11 +277,9 @@ int PSEditWidget::get_size() {
void PSEditWidget::set_color(const PSEditColor *c) {
PSEditText *t;
- uchar *p;
t = model->get_cur_text();
- p = (uchar*) &c;
cur_text_color.set(c);
model->set_color(&cur_text_color);