diff options
author | dos-reis <gdr@axiomatics.org> | 2013-04-01 00:00:11 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2013-04-01 00:00:11 +0000 |
commit | 664e27a1d8f4927285e8c4f89870796c9d9f518e (patch) | |
tree | 0d898301aa9fe690bc9d02e9450b39492efb4d6c /src/lib/pixmap.c | |
parent | 37a3397a82d94da8df1c0a0e48a39d43d17cce00 (diff) | |
download | open-axiom-664e27a1d8f4927285e8c4f89870796c9d9f518e.tar.gz |
Fix various warnings from the C++ compiler
Diffstat (limited to 'src/lib/pixmap.c')
-rw-r--r-- | src/lib/pixmap.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/pixmap.c b/src/lib/pixmap.c index 2d321743..d0ad2097 100644 --- a/src/lib/pixmap.c +++ b/src/lib/pixmap.c @@ -1,7 +1,7 @@ /* Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd. All rights reserved. - Copyright (C) 2007-2011, Gabriel Dos Reis. + Copyright (C) 2007-2013, Gabriel Dos Reis. All rights reserved. Redistribution and use in source and binary forms, with or without @@ -271,7 +271,6 @@ read_pixmap_file(Display *display, int screen, char *filename, { XpmAttributes attr; XImage *xireturn; - int status; attr.valuemask = 0; @@ -289,7 +288,7 @@ read_pixmap_file(Display *display, int screen, char *filename, attr.valuemask |= XpmAllocCloseColors; /* we don't allocate close colors*/ - status=XpmReadFileToImage(display,filename,xi,&xireturn, &attr ); + XpmReadFileToImage(display,filename,xi,&xireturn, &attr ); *width= (*xi)->width; *height=(*xi)->height; #ifdef DEBUG @@ -306,12 +305,11 @@ write_pixmap_file(Display *dsp, int scr, char *fn, Window wid, int x, int y, int width,int height) { XImage *xi; - int status; /* reads image structure in ZPixmap format */ xi = XGetImage(dsp, wid, x, y, width, height, AllPlanes, ZPixmap); if (xi==0) return ; - status=XpmWriteFileFromImage(dsp,fn,xi,0,0); + XpmWriteFileFromImage(dsp,fn,xi,0,0); } |