[AArch64/AArch64-4.7] Fix warning - aarch64_mangle_type has no prototype.
James Greenhalgh
james.greenhalgh@arm.com
Thu Feb 28 09:37:00 GMT 2013
Hi,
aarch64_mangle_type has no prototype, but it doesn't need one as
it should be declared static.
This patch fixes the warning:
config/aarch64/aarch64.c:5974:1: warning: no previous prototype for ‘aarch64_mangle_type’ [-Wmissing-prototypes]
Which is hidden when building with g++, but looks like:
config/aarch64/aarch64:5990:1: warning: no previous declaration for ‘const char* aarch64_mangle_type’ [-Wmissing-declarations]
On Trunk.
Regression tested on aarch64-none-elf with no regressions.
OK for trunk and aarch64-4.7-branch?
Thanks,
James Greenhalgh
---
gcc/
2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
* config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-AArch64-AArch64-4.7-Fix-warning-aarch64_mangle_type-.patch
Type: text/x-patch
Size: 443 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130228/fd852de0/attachment.bin>
More information about the Gcc-patches
mailing list