diff --git a/Makefile b/Makefile index 1121af4..6871992 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ bspc: - cc bspc.c -o bspc -lxcb + cc bspc.c -o bspc -lxcb -Wall -Wextra -std=c99 clean: rm bspc diff --git a/bspc.c b/bspc.c index cc20af8..9251dc2 100644 --- a/bspc.c +++ b/bspc.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -253,7 +254,7 @@ char *send_msg_to_bspwm(char *args[], int count) err("Failed to send the data.\n"); } - int ret = EXIT_SUCCESS, nb; + int nb; struct pollfd fds[] = { {sock_fd, POLLIN, 0},