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:
Dmitry Vyukov 2021-08-12 19:59:12 +02:00
parent 9c8f888f5f
commit 036f963083
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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();