Backed out changeset e832fc3b5a03 (bug 553032)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Wed, 19 Oct 2016 18:29:45 +0200
changeset 318616 0c9cc278b8f492fbf5e05ce2fe4bb74b4fae0fa5
parent 318615 cb8a74d6d50080d99f68e45bfe801c2fdef887aa
child 318617 b50520db14601df2cc29d23f211000a309b62026
push id20725
push userphilringnalda@gmail.com
push dateThu, 20 Oct 2016 01:36:01 +0000
treeherderfx-team@998ad5a74da8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs553032
milestone52.0a1
backs oute832fc3b5a03041da9af10c22b3517137c93edbc
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