From: pancake@nopcode.org Date: Wed, 24 Nov 2010 13:27:44 +0000 (+0100) Subject: Fix unused variable issue and OSX includes X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=eaf38bf310a3c7850df2444fcdd77683ab8e4dc2;p=st.git Fix unused variable issue and OSX includes --- diff --git a/st.c b/st.c index e7e292f..35945b0 100644 --- a/st.c +++ b/st.c @@ -23,7 +23,7 @@ #if defined(__linux) #include -#elif defined(__OpenBSD__) || defined(__NetBSD__) +#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__) #include #elif defined(__FreeBSD__) || defined(__DragonFly__) #include @@ -405,7 +405,7 @@ bpress(XEvent *e) { void selcopy(void) { char *str, *ptr; - int ls, x, y, sz, sl; + int x, y, sz, sl, ls = 0; if(sel.bx == -1) str = NULL;