[vlc-commits] [Git][videolan/vlc][3.0.x] include: Don't use the gnu_printf format attribute with clang

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Wed Nov 24 11:21:50 UTC 2021



Hugo Beauzée-Luyssen pushed to branch 3.0.x at VideoLAN / VLC


Commits:
7b43e275 by Martin Storsjö at 2021-11-23T11:22:41+01:00
include: Don't use the gnu_printf format attribute with clang

Clang doesn't support this attribute yet.

(cherry picked from commit 070fcc422e270939fdb91f855690cca447c4d3ab)

Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>

- - - - -


1 changed file:

- include/vlc_common.h


Changes:

=====================================
include/vlc_common.h
=====================================
@@ -89,7 +89,7 @@
 #  define VLC_DEPRECATED_ENUM
 # endif
 
-# if defined( _WIN32 )
+# if defined( _WIN32 ) && !defined( __clang__ )
 #  define VLC_FORMAT(x,y) __attribute__ ((format(gnu_printf,x,y)))
 # else
 #  define VLC_FORMAT(x,y) __attribute__ ((format(printf,x,y)))



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7b43e275feb8835393cc1bad6771f561b591b557

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7b43e275feb8835393cc1bad6771f561b591b557
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list