fix clang build break (attempt #2)

This commit is contained in:
Jeremy Selan 2023-08-10 16:45:25 -07:00
parent a2ad21c0b2
commit f2e925f5d6

View file

@ -782,13 +782,13 @@ GPUVIS_EXTERN const char *gpuvis_get_tracefs_filename( char *buf, size_t buflen,
{ {
// truncation is ok here // truncation is ok here
#if defined( __GNUC__ ) #if defined( __GNUC__ ) && !defined(__llvm__) && !defined(__INTEL_COMPILER)
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-truncation" #pragma GCC diagnostic ignored "-Wformat-truncation"
#endif #endif
snprintf( buf, buflen, "%s/%s", tracefs_dir, file ); snprintf( buf, buflen, "%s/%s", tracefs_dir, file );
#if defined( __GNUC__ ) #if defined( __GNUC__ ) && !defined(__llvm__) && !defined(__INTEL_COMPILER)
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif #endif