Use __attribute__((format(printf, ...))) directly
Instead of defining the macro _R_(), define __attribute__() as a macro for compilers that do not support __attribute__(), namely Microsoft Visual Studio. Signed-off-by: Bart Van Assche <bvanassche@acm.org>
This commit is contained in:
@@ -23,8 +23,7 @@ endif
|
||||
libiscsipriv_la_LDFLAGS = -no-undefined
|
||||
|
||||
libiscsipriv_la_CPPFLAGS = -I${srcdir}/../include -I$(srcdir)/include \
|
||||
"-D_U_=__attribute__((unused))" \
|
||||
"-D_R_(A,B)=__attribute__((format(printf,A,B)))"
|
||||
"-D_U_=__attribute__((unused))"
|
||||
|
||||
AM_CFLAGS=$(WARN_CFLAGS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user