[gdb/testsuite] Fix implicit declaration of printf in gdb.objc/*.m
authorTom de Vries <tdevries@suse.de>
Wed, 24 Jul 2019 17:01:59 +0000 (19:01 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 24 Jul 2019 17:01:59 +0000 (19:01 +0200)
commitb3b965fb91e1671da5b7d42349fa0d78e80c29f4
treee999305757c275486580c6efdd005e9469189274
parent8f79c1075e8f258ac5a909b39704009ebc440e76
[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.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.objc/basicclass.m
gdb/testsuite/gdb.objc/nondebug.m
gdb/testsuite/gdb.objc/objcdecode.m