diff --git a/gophernicus.h b/gophernicus.h index 271e878..d987b09 100644 --- a/gophernicus.h +++ b/gophernicus.h @@ -26,6 +26,14 @@ #define _GOPHERNICUS_H +/* + * Ignore useless snprintf() format truncation warnings on GCC 7+ + */ +#if __GNUC__ >= 7 +#pragma GCC diagnostic ignored "-Wformat-truncation" +#endif + + /* * Features */