forked from OSchip/llvm-project
scudo: fix __attribute__((format))
The attribute should be in the header on declaration. It's almost pointless in the source file. Depends on D107977. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D107978
This commit is contained in:
parent
9c8f888f5f
commit
036f963083
|
@ -39,7 +39,7 @@ extern int VSNPrintf(char *buff, int buff_length, const char *format,
|
|||
|
||||
namespace __scudo {
|
||||
|
||||
FORMAT(1, 2) void NORETURN dieWithMessage(const char *Format, ...) {
|
||||
void dieWithMessage(const char *Format, ...) {
|
||||
static const char ScudoError[] = "Scudo ERROR: ";
|
||||
static constexpr uptr PrefixSize = sizeof(ScudoError) - 1;
|
||||
// Our messages are tiny, 256 characters is more than enough.
|
||||
|
|
|
@ -27,7 +27,7 @@ inline Dest bit_cast(const Source& source) {
|
|||
return dest;
|
||||
}
|
||||
|
||||
void NORETURN dieWithMessage(const char *Format, ...);
|
||||
void dieWithMessage(const char *Format, ...) NORETURN FORMAT(1, 2);
|
||||
|
||||
bool hasHardwareCRC32();
|
||||
|
||||
|
|
Loading…
Reference in New Issue