diff options
author | QC <qball@gmpclient.org> | 2015-02-09 19:58:17 +0100 |
---|---|---|
committer | QC <qball@gmpclient.org> | 2015-02-09 19:58:17 +0100 |
commit | f6bc8f7c32254aa442f9ab55cf157cb15c102aba (patch) | |
tree | a0af720ab5911d0163e97a98552331aab2538684 /test/textbox-test.c | |
parent | 682907d3409db9c5d22314eb8fc5a0acf9d11b5a (diff) |
Fix test compile warning.
Diffstat (limited to 'test/textbox-test.c')
-rw-r--r-- | test/textbox-test.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/textbox-test.c b/test/textbox-test.c index d8d9fe48..bd8ef80f 100644 --- a/test/textbox-test.c +++ b/test/textbox-test.c @@ -26,7 +26,6 @@ XVisualInfo vinfo; static unsigned int color_get ( Display *display, const char *const name ) { - int screen_id = DefaultScreen ( display ); XColor color; // Special format. if ( strncmp ( name, "argb:", 5 ) == 0 ) { @@ -53,7 +52,7 @@ static void create_visual_and_colormap() map = DefaultColormap( display, DefaultScreen (display)); } } -int main ( int argc, char **argv ) +int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv ) { // Get DISPLAY @@ -64,8 +63,6 @@ int main ( int argc, char **argv ) } create_visual_and_colormap(); TASSERT( display != NULL ); - Screen *screen = DefaultScreenOfDisplay ( display ); - Window root = RootWindow ( display, XScreenNumberOfScreen ( screen ) ); XSetWindowAttributes attr; attr.colormap = map; attr.border_pixel = color_get ( display, config.menu_bc ); |