common: Supress WARNINGs in quiet mode

This commit is contained in:
Solomon Peachy 2024-01-14 20:54:09 -05:00
parent fa74802dba
commit aa45db7e64
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
#include <signal.h>
#include <strings.h> /* For strncasecmp */
#define BACKEND_VERSION "0.129"
#define BACKEND_VERSION "0.130"
#ifndef CORRTABLE_PATH
#ifdef PACKAGE_DATA_DIR

View File

@ -56,7 +56,7 @@
#define DEBUG( ... ) do { if (!quiet) fprintf(logger, "DEBUG: " __VA_ARGS__ ); } while(0)
#define DEBUG2( ... ) do { if (!quiet) fprintf(logger, __VA_ARGS__ ); } while(0)
#define INFO( ... ) do { if (!quiet) fprintf(logger, "INFO: " __VA_ARGS__ ); } while(0)
#define WARNING( ... ) do { fprintf(logger, "WARNING: " __VA_ARGS__ ); } while(0)
#define WARNING( ... ) do { if (!quiet) fprintf(logger, "WARNING: " __VA_ARGS__ ); } while(0)
#define ERROR( ... ) do { fprintf(logger, "ERROR: " __VA_ARGS__ ); sleep(1); } while (0)
#define PPD( ... ) do { fprintf(logger, "PPD: " __VA_ARGS__ ); } while (0)