remove 2 warnings

This commit is contained in:
Thomas Bernard 2020-05-06 01:19:07 +02:00
parent 9c7057eab7
commit 16a32f259c
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -26,6 +26,7 @@
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <X11/XKBlib.h>
#include "screen.h"
#include "gfx2surface.h"
#include "loadsave.h"
@ -355,6 +356,7 @@ int GFX2_MessageBox(const char * text, const char * caption, unsigned int type)
Atom wmDelete, atoms[2];
char * atom_name;
(void)type;
if (X11_display == NULL)
X11_display = XOpenDisplay(NULL);// NULL is equivalent to getenv("DISPLAY")
if (X11_display == NULL)