Bug 4812 - GCC __attribute__ annotations for printf, non-returning functions etc., patch by linux@youmustbejoking.demon.co.uk and Zack Middleton
This commit is contained in:
parent
69a7ada911
commit
9dc32d55e2
30 changed files with 63 additions and 61 deletions
|
@ -251,7 +251,7 @@ void String_Init(void) {
|
|||
PC_SourceWarning
|
||||
=================
|
||||
*/
|
||||
void PC_SourceWarning(int handle, char *format, ...) {
|
||||
static __attribute__ ((format (printf, 2, 3))) void PC_SourceWarning(int handle, char *format, ...) {
|
||||
int line;
|
||||
char filename[128];
|
||||
va_list argptr;
|
||||
|
@ -273,7 +273,7 @@ void PC_SourceWarning(int handle, char *format, ...) {
|
|||
PC_SourceError
|
||||
=================
|
||||
*/
|
||||
void PC_SourceError(int handle, char *format, ...) {
|
||||
static __attribute__ ((format (printf, 2, 3))) void PC_SourceError(int handle, char *format, ...) {
|
||||
int line;
|
||||
char filename[128];
|
||||
va_list argptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue