xbps_xasprintf: use __attribute__(format printf) too.

This commit is contained in:
Juan RP 2016-02-06 09:46:52 +01:00
parent 2130d5daa6
commit 0d4906e1ae

View File

@ -1734,7 +1734,7 @@ int xbps_mkpath(const char *path, mode_t mode);
* is set appropiately. The pointer should be free(3)d when it's
* no longer needed.
*/
char *xbps_xasprintf(const char *fmt, ...);
char *xbps_xasprintf(const char *fmt, ...)__attribute__ ((format (printf, 1, 2)));
/**
* Creates a memory mapped object from file \a file into \a mmf