diff --git a/Makefile b/Makefile index 482cf4e..07aa986 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # Compiler and flags CC = gcc DEBUG_FLAGS = -g -Wall -Wextra -RELEASE_FLAGS = -Wall -Wextra +RELEASE_FLAGS = -Wall -Wextra -DNDEBUG LFLAGS = -lpthread # Source files diff --git a/webserver.c b/webserver.c index 61a87ee..93bfe04 100644 --- a/webserver.c +++ b/webserver.c @@ -19,7 +19,12 @@ #include "logging.h" struct sockaddr_in server_addr; + +#ifndef NDEBUG #define DEBUG 1 +#else +#define DEBUG 0 +#endif int main() { open_log_file();