Bug 1253187 - Remove some warnings in clang-plugin tests, r=ehsan
authorAndrea Marchesini <amarchesini@mozilla.com>
Thu, 03 Mar 2016 18:31:12 +0100
changeset 324932 e88c874e1f766b0602038d0d3dc14039e6e3e3d8
parent 324931 d9221ea650001991646fcc0198815a9d2c1e8ee2
child 324933 1931aaadbec47be48ed412c7115c59b3452775bb
push id1128
push userjlund@mozilla.com
push dateWed, 01 Jun 2016 01:31:59 +0000
treeherdermozilla-release@fe0d30de989d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs1253187
milestone47.0a1
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
Bug 1253187 - Remove some warnings in clang-plugin tests, r=ehsan
build/clang-plugin/tests/TestHeapClass.cpp
build/clang-plugin/tests/TestNonTemporaryClass.cpp
--- a/build/clang-plugin/tests/TestHeapClass.cpp
+++ b/build/clang-plugin/tests/TestHeapClass.cpp
@@ -1,18 +1,18 @@
 #define MOZ_HEAP_CLASS __attribute__((annotate("moz_heap_class")))
 #define MOZ_IMPLICIT __attribute__((annotate("moz_implicit")))
 
 #include <stddef.h>
 
 struct MOZ_HEAP_CLASS Heap {
   int i;
   Heap() {}
-  MOZ_IMPLICIT Heap(int i) {}
-  Heap(int i, int j) {}
+  MOZ_IMPLICIT Heap(int a) {}
+  Heap(int a, int b) {}
   void *operator new(size_t x) throw() { return 0; }
   void *operator new(size_t blah, char *buffer) { return buffer; }
 };
 
 template <class T>
 struct MOZ_HEAP_CLASS TemplateClass {
   T i;
 };
--- a/build/clang-plugin/tests/TestNonTemporaryClass.cpp
+++ b/build/clang-plugin/tests/TestNonTemporaryClass.cpp
@@ -1,18 +1,18 @@
 #define MOZ_NON_TEMPORARY_CLASS __attribute__((annotate("moz_non_temporary_class")))
 #define MOZ_IMPLICIT __attribute__((annotate("moz_implicit")))
 
 #include <stddef.h>
 
 struct MOZ_NON_TEMPORARY_CLASS NonTemporary {
   int i;
   NonTemporary() {}
-  MOZ_IMPLICIT NonTemporary(int i) {}
-  NonTemporary(int i, int j) {}
+  MOZ_IMPLICIT NonTemporary(int a) {}
+  NonTemporary(int a, int b) {}
   void *operator new(size_t x) throw() { return 0; }
   void *operator new(size_t blah, char *buffer) { return buffer; }
 };
 
 template <class T>
 struct MOZ_NON_TEMPORARY_CLASS TemplateClass {
   T i;
 };