fix clang build break (attempt #2)
This commit is contained in:
parent
a2ad21c0b2
commit
f2e925f5d6
1 changed files with 2 additions and 2 deletions
|
@ -782,13 +782,13 @@ GPUVIS_EXTERN const char *gpuvis_get_tracefs_filename( char *buf, size_t buflen,
|
|||
{
|
||||
|
||||
// truncation is ok here
|
||||
#if defined( __GNUC__ )
|
||||
#if defined( __GNUC__ ) && !defined(__llvm__) && !defined(__INTEL_COMPILER)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wformat-truncation"
|
||||
#endif
|
||||
|
||||
snprintf( buf, buflen, "%s/%s", tracefs_dir, file );
|
||||
#if defined( __GNUC__ )
|
||||
#if defined( __GNUC__ ) && !defined(__llvm__) && !defined(__INTEL_COMPILER)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue