1
0
mirror of https://github.com/gophernicus/gophernicus.git synced 2024-06-09 06:20:43 +00:00

Ignore useless snprintf() format truncation warnings on GCC 7+

This commit is contained in:
Kim Holviala 2018-01-29 12:15:15 +02:00
parent e0a363855c
commit 60b391e65e

View File

@ -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
*/