Bug 1758017 - Disable MOZ_FORMAT_PRINTF in TestPrintf on Android. r=gsvelto

Differential Revision: https://phabricator.services.mozilla.com/D140272
This commit is contained in:
Mike Hommey 2022-03-09 04:32:29 +00:00
parent dc3fb314e4
commit 1cd4e4fcce

View file

@ -65,7 +65,12 @@ static void TestPrintfTargetPrint() {
checker.print("test string");
}
static bool MOZ_FORMAT_PRINTF(5, 6)
// As of clang 14, __attribute__((printf)) doesn't allow %n on Android targets,
// which is used in this test.
static bool
#ifndef __ANDROID__
MOZ_FORMAT_PRINTF(5, 6)
#endif
check_print(const char* file, int line,
bool (*cmp)(const char* a, const char* b), const char* expect,
const char* fmt, ...) {