Backed out changeset 818fc5631d72 (bug 553032)

This commit is contained in:
Sebastian Hengst 2016-10-19 18:29:41 +02:00
parent 9e31a95f74
commit a538fb80cc
3 changed files with 10 additions and 4 deletions

View File

@ -41,7 +41,9 @@ static char gLastError[2000];
#if defined(__APPLE__) || defined(__linux__) || defined(MOZ_CALLGRIND)
static void
MOZ_FORMAT_PRINTF(1, 2)
#ifdef __GNUC__
__attribute__((format(printf,1,2)))
#endif
UnsafeError(const char* format, ...)
{
va_list args;

View File

@ -186,7 +186,10 @@ namespace jit {
printer = sp;
}
void spew(const char* fmt, ...) MOZ_FORMAT_PRINTF(2, 3)
void spew(const char* fmt, ...)
#ifdef __GNUC__
__attribute__ ((format (printf, 2, 3)))
#endif
{
if (MOZ_UNLIKELY(printer || JitSpewEnabled(JitSpew_Codegen))) {
va_list va;

View File

@ -13,7 +13,6 @@
#include <stdarg.h>
#include "mozilla/Assertions.h"
#include "mozilla/Attributes.h"
#ifdef __cplusplus
@ -27,7 +26,9 @@ int VsprintfLiteral(char (&buffer)[N], const char* format, va_list args)
}
template <size_t N>
MOZ_FORMAT_PRINTF(2, 3)
#if defined(__GNUC__)
__attribute__((format(printf, 2, 3)))
#endif
int SprintfLiteral(char (&buffer)[N], const char* format, ...)
{
va_list args;