diff options
author | David Blaikie <dblaikie@gmail.com> | 2022-03-09 21:13:31 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2022-03-25 23:53:19 +0000 |
commit | 34b9b1ea4874b109b998d59a837f81f2f730001c (patch) | |
tree | 350a4c458b7862c8393bc21d19faca4ca7f0c970 /llvm/lib/Target/Sparc/Disassembler/SparcDisassembler.cpp | |
parent | a5032b26337bc7d877c3ab4e7f18265a3c044df9 (diff) | |
download | llvm-34b9b1ea4874b109b998d59a837f81f2f730001c.zip llvm-34b9b1ea4874b109b998d59a837f81f2f730001c.tar.gz llvm-34b9b1ea4874b109b998d59a837f81f2f730001c.tar.bz2 |
Disable -Wmissing-prototypes for internal linkage functions that aren't explicitly marked "static"
Some functions can end up non-externally visible despite not being
declared "static" or in an unnamed namespace in C++ - such as by having
parameters that are of non-external types.
Such functions aren't mistakenly intended to be defining some function
that needs a declaration. They could be maybe more legible (except for
the operator new example) with an explicit static, but that's a
stylistic thing outside what should be addressed by a warning.
This reapplies 275c56226d7fbd6a4d554807374f78d323aa0c1c - once we figure
out what to do about the change in behavior for -Wnon-c-typedef-for-linkage
(this reverts the revert commit 85ee1d3ca1d06b6bd3477515b8d0c72c8df7c069)
Differential Revision: https://reviews.llvm.org/D121328
Diffstat (limited to 'llvm/lib/Target/Sparc/Disassembler/SparcDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions