dfderie / accelerometer-simulator

Automatically exported from code.google.com/p/accelerometer-simulator
0 stars 0 forks source link

Fix the compiler warnings in AccelerometerSimulation.m #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. add missing endline
2. surround the sharedAccelerometer method body with a compiler pragma to make 
it shut up, like this:

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-protocol-method-implementation"

+ (UIAccelerometer *)sharedAccelerometer
{
    return [AccelerometerSimulation getAccelerometer];
}

#pragma clang diagnostic pop

Original issue reported on code.google.com by tom...@gmail.com on 5 Dec 2012 at 9:36