diff --git a/src/tfs/src/tfs.c b/src/tfs/src/tfs.c index 9d384892a01f68475837bfd8824ecee6212c5a57..82c83de4c685979c67b60b4a6b7dddaf391ab143 100644 --- a/src/tfs/src/tfs.c +++ b/src/tfs/src/tfs.c @@ -21,6 +21,11 @@ #include "tfs.h" #include "tfsint.h" +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wformat-truncation" +#endif + typedef struct { pthread_spinlock_t lock; SFSMeta meta; @@ -593,3 +598,7 @@ void taosGetDisk() { tsAvailTmpDirectorySpace = (float)(diskSize.avail / unit); } } + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif \ No newline at end of file