Backed out changeset e832fc3b5a03 (bug 553032)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Wed, 19 Oct 2016 18:29:45 +0200
changeset 318610 0c9cc278b8f492fbf5e05ce2fe4bb74b4fae0fa5
parent 318609 cb8a74d6d50080d99f68e45bfe801c2fdef887aa
child 318611 b50520db14601df2cc29d23f211000a309b62026
push id30844
push userphilringnalda@gmail.com
push dateThu, 20 Oct 2016 01:26:07 +0000
treeherdermozilla-central@6e1a56ec3487 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs553032
milestone52.0a1
backs oute832fc3b5a03041da9af10c22b3517137c93edbc
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset e832fc3b5a03 (bug 553032)
mfbt/Attributes.h
--- a/mfbt/Attributes.h
+++ b/mfbt/Attributes.h
@@ -565,39 +565,17 @@
 #  if MOZ_GCC_VERSION_AT_LEAST(4, 8, 1)
 #    define MOZ_HAVE_REF_QUALIFIERS
 #  endif
 #endif
 
 #endif /* __cplusplus */
 
 /**
- * Printf style formats.  MOZ_FORMAT_PRINTF can be used to annotate a
- * function or method that is "printf-like"; this will let (some)
- * compilers check that the arguments match the template string.
- *
- * This macro takes two arguments.  The first argument is the argument
- * number of the template string.  The second argument is the argument
- * number of the '...' argument holding the arguments.
- *
- * Argument numbers start at 1.  Note that the implicit "this"
- * argument of a non-static member function counts as an argument.
- *
- * So, for a simple case like:
- *   void print_something (int whatever, const char *fmt, ...);
- * The corresponding annotation would be
- *   MOZ_FORMAT_PRINTF(2, 3)
- * However, if "print_something" were a non-static member function,
- * then the annotation would be:
- *   MOZ_FORMAT_PRINTF(3, 4)
- *
- * Note that the checking is limited to standards-conforming
- * printf-likes, and in particular this should not be used for
- * PR_snprintf and friends, which are "printf-like" but which assign
- * different meanings to the various formats.
+ * Printf style formats
  */
 #ifdef __GNUC__
 #define MOZ_FORMAT_PRINTF(stringIndex, firstToCheck)  \
     __attribute__ ((format (printf, stringIndex, firstToCheck)))
 #else
 #define MOZ_FORMAT_PRINTF(stringIndex, firstToCheck)
 #endif