[gdb/testsuite] Fix implicit declaration of printf in gdb.objc/*.m
When running gdb.objc/objcdecode.exp we get: ... objcdecode.m: In function '-[Decode multipleDef]': objcdecode.m:14:3: warning: incompatible implicit declaration of built-in \ function 'printf' printf("method multipleDef\n"); ^~~~~~ objcdecode.m:14:3: note: include '<stdio.h>' or provide a declaration of \ 'printf' ... Fix this in the three gdb.objc/*.m test-cases by including stdio.h. Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2019-07-24 Tom de Vries <tdevries@suse.de> PR testsuite/24807 * gdb.objc/basicclass.m: Include stdio.h. * gdb.objc/nondebug.m: Same. * gdb.objc/objcdecode.m: Same.
This commit is contained in:
parent
8f79c1075e
commit
b3b965fb91
@ -1,3 +1,10 @@
|
|||||||
|
2019-07-24 Tom de Vries <tdevries@suse.de>
|
||||||
|
|
||||||
|
PR testsuite/24807
|
||||||
|
* gdb.objc/basicclass.m: Include stdio.h.
|
||||||
|
* gdb.objc/nondebug.m: Same.
|
||||||
|
* gdb.objc/objcdecode.m: Same.
|
||||||
|
|
||||||
2019-07-24 Tom de Vries <tdevries@suse.de>
|
2019-07-24 Tom de Vries <tdevries@suse.de>
|
||||||
|
|
||||||
PR testsuite/24612
|
PR testsuite/24612
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <stdio.h>
|
||||||
#include <objc/Object.h>
|
#include <objc/Object.h>
|
||||||
|
|
||||||
@interface BasicClass: Object
|
@interface BasicClass: Object
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <stdio.h>
|
||||||
#include <objc/Object.h>
|
#include <objc/Object.h>
|
||||||
|
|
||||||
@interface NonDebug: Object
|
@interface NonDebug: Object
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <stdio.h>
|
||||||
#include <objc/Object.h>
|
#include <objc/Object.h>
|
||||||
|
|
||||||
@interface Decode: Object
|
@interface Decode: Object
|
||||||
|
Loading…
x
Reference in New Issue
Block a user