Bug 772373 - Force warnings as errors in hal/. r=jlebar
authorMounir Lamouri <mounir.lamouri@gmail.com>
Thu, 12 Jul 2012 21:34:18 +0200
changeset 101821 322ef042e1d227966b440c7533a53bbc38198fc7
parent 101820 ab6a89ec10feb29040c494347f94d73aa518f0d5
child 101822 f25cba119ef99aaf3990b0cd923bd53d5835f2c7
push id1729
push userlsblakk@mozilla.com
push dateMon, 16 Jul 2012 20:02:43 +0000
treeherdermozilla-aurora@f4e75e148951 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlebar
bugs772373
milestone16.0a1
Bug 772373 - Force warnings as errors in hal/. r=jlebar
hal/Makefile.in
hal/cocoa/smslib.mm
--- a/hal/Makefile.in
+++ b/hal/Makefile.in
@@ -19,16 +19,17 @@ VPATH       = \
 
 include $(DEPTH)/config/autoconf.mk
 
 MODULE         = hal
 LIBRARY_NAME   = hal_s
 FORCE_STATIC_LIB = 1
 LIBXUL_LIBRARY = 1
 EXPORT_LIBRARY = 1
+FAIL_ON_WARNINGS = 1
 
 EXPORTS_NAMESPACES = mozilla
 EXPORTS_mozilla = \
   Hal.h \
   HalImpl.h \
   HalSandbox.h \
   HalSensor.h \
   HalTypes.h \
--- a/hal/cocoa/smslib.mm
+++ b/hal/cocoa/smslib.mm
@@ -267,17 +267,17 @@ static void prefSynchronize(void);
 // static long getMicroseconds(void);
 float fakeData(NSTimeInterval time);
 
 #pragma mark Static variables
 
 static int debugging = NO;		// True if debugging (synthetic data)
 static io_connect_t connection;	// Connection for reading accel values
 static int running = NO;		// True if we successfully started
-static int sensorNum = 0;		// The current index into sensors[]
+static unsigned int sensorNum = 0;		// The current index into sensors[]
 static const char *serviceName;	// The name of the current service
 static char *iRecord, *oRecord;	// Pointers to read/write records for sensor
 static int recordSize;			// Size of read/write records
 static unsigned int function;	// Which kernel function should be used
 static float zeros[3];			// X, Y and Z zero calibration values
 static float onegs[3];			// X, Y and Z one-g calibration values
 
 #pragma mark Defines