OSDN Git Service

Fix trailing semicolon warnings
authorColin Cross <ccross@android.com>
Mon, 26 Sep 2016 20:07:06 +0000 (13:07 -0700)
committerColin Cross <ccross@android.com>
Wed, 28 Sep 2016 01:09:42 +0000 (18:09 -0700)
Remove semicolons after inline function definitions.  The warnings were
being hidden by the use of -isystem to include
frameworks/native/include.

Bug: 31752268
Test: m -j
Change-Id: I1027e87f459c36a575cd04b3afb645736832b07b

27 files changed:
include/batteryservice/IBatteryPropertiesListener.h
include/batteryservice/IBatteryPropertiesRegistrar.h
include/binder/IAppOpsCallback.h
include/binder/IAppOpsService.h
include/binder/IBatteryStats.h
include/binder/IMediaResourceMonitor.h
include/binder/IMemory.h
include/binder/IPermissionController.h
include/binder/IProcessInfoService.h
include/binder/IResultReceiver.h
include/binder/IServiceManager.h
include/binder/Parcel.h
include/gui/BufferQueueCore.h
include/gui/IConsumerListener.h
include/gui/IDisplayEventConnection.h
include/gui/IGraphicBufferAlloc.h
include/gui/IGraphicBufferConsumer.h
include/gui/IGraphicBufferProducer.h
include/gui/ISensorEventConnection.h
include/gui/ISensorServer.h
include/gui/ISurfaceComposer.h
include/gui/ISurfaceComposerClient.h
include/input/IInputFlinger.h
include/powermanager/IPowerManager.h
include/private/ui/RegionHelper.h
include/ui/FrameStats.h
include/ui/Gralloc1On0Adapter.h

index b02d8e9..9154076 100644 (file)
@@ -33,7 +33,7 @@ enum {
 
 class IBatteryPropertiesListener : public IInterface {
 public:
-    DECLARE_META_INTERFACE(BatteryPropertiesListener);
+    DECLARE_META_INTERFACE(BatteryPropertiesListener)
 
     virtual void batteryPropertiesChanged(struct BatteryProperties props) = 0;
 };
index eca075d..b5c3a4d 100644 (file)
@@ -31,7 +31,7 @@ enum {
 
 class IBatteryPropertiesRegistrar : public IInterface {
 public:
-    DECLARE_META_INTERFACE(BatteryPropertiesRegistrar);
+    DECLARE_META_INTERFACE(BatteryPropertiesRegistrar)
 
     virtual void registerListener(const sp<IBatteryPropertiesListener>& listener) = 0;
     virtual void unregisterListener(const sp<IBatteryPropertiesListener>& listener) = 0;
index 7f8eb01..b62e9e2 100644 (file)
@@ -27,7 +27,7 @@ namespace android {
 class IAppOpsCallback : public IInterface
 {
 public:
-    DECLARE_META_INTERFACE(AppOpsCallback);
+    DECLARE_META_INTERFACE(AppOpsCallback)
 
     virtual void opChanged(int32_t op, const String16& packageName) = 0;
 
index cd81efa..dc18045 100644 (file)
@@ -28,7 +28,7 @@ namespace android {
 class IAppOpsService : public IInterface
 {
 public:
-    DECLARE_META_INTERFACE(AppOpsService);
+    DECLARE_META_INTERFACE(AppOpsService)
 
     virtual int32_t checkOperation(int32_t code, int32_t uid, const String16& packageName) = 0;
     virtual int32_t noteOperation(int32_t code, int32_t uid, const String16& packageName) = 0;
index 5f38186..e15d6f0 100644 (file)
@@ -26,7 +26,7 @@ namespace android {
 class IBatteryStats : public IInterface
 {
 public:
-    DECLARE_META_INTERFACE(BatteryStats);
+    DECLARE_META_INTERFACE(BatteryStats)
 
     virtual void noteStartSensor(int uid, int sensor) = 0;
     virtual void noteStopSensor(int uid, int sensor) = 0;
index c671f7a..b21047f 100644 (file)
@@ -25,7 +25,7 @@ namespace android {
 
 class IMediaResourceMonitor : public IInterface {
 public:
-    DECLARE_META_INTERFACE(MediaResourceMonitor);
+    DECLARE_META_INTERFACE(MediaResourceMonitor)
 
     // Values should be in sync with Intent.EXTRA_MEDIA_RESOURCE_TYPE_XXX.
     enum {
index 2d0db00..15a104f 100644 (file)
@@ -32,7 +32,7 @@ namespace android {
 class IMemoryHeap : public IInterface
 {
 public:
-    DECLARE_META_INTERFACE(MemoryHeap);
+    DECLARE_META_INTERFACE(MemoryHeap)
 
     // flags returned by getFlags()
     enum {
@@ -70,7 +70,7 @@ protected:
 class IMemory : public IInterface
 {
 public:
-    DECLARE_META_INTERFACE(Memory);
+    DECLARE_META_INTERFACE(Memory)
 
     virtual sp<IMemoryHeap> getMemory(ssize_t* offset=0, size_t* size=0) const = 0;
 
index 4e5fb34..25f3431 100644 (file)
@@ -28,7 +28,7 @@ namespace android {
 class IPermissionController : public IInterface
 {
 public:
-    DECLARE_META_INTERFACE(PermissionController);
+    DECLARE_META_INTERFACE(PermissionController)
 
     virtual bool checkPermission(const String16& permission, int32_t pid, int32_t uid) = 0;
 
index 69dc9a7..2669f91 100644 (file)
@@ -25,7 +25,7 @@ namespace android {
 
 class IProcessInfoService : public IInterface {
 public:
-    DECLARE_META_INTERFACE(ProcessInfoService);
+    DECLARE_META_INTERFACE(ProcessInfoService)
 
     virtual status_t    getProcessStatesFromPids( size_t length,
                                                   /*in*/ int32_t* pids,
index 02dc6a6..e494fba 100644 (file)
@@ -27,7 +27,7 @@ namespace android {
 class IResultReceiver : public IInterface
 {
 public:
-    DECLARE_META_INTERFACE(ResultReceiver);
+    DECLARE_META_INTERFACE(ResultReceiver)
 
     virtual void send(int32_t resultCode) = 0;
 
index 7ccd9fe..3b23f81 100644 (file)
@@ -30,7 +30,7 @@ namespace android {
 class IServiceManager : public IInterface
 {
 public:
-    DECLARE_META_INTERFACE(ServiceManager);
+    DECLARE_META_INTERFACE(ServiceManager)
 
     /**
      * Retrieve an existing service, blocking for a few seconds
index 405c668..bd58568 100644 (file)
@@ -451,7 +451,7 @@ private:
         void clear();
         void release();
         inline size_t size() const { return mSize; }
-        inline int fd() const { return mFd; };
+        inline int fd() const { return mFd; }
         inline bool isMutable() const { return mMutable; }
 
     protected:
index 4337da9..4ab5db1 100644 (file)
@@ -311,7 +311,7 @@ private:
           transform(_transform),
           scalingMode(_scalingMode),
           dataspace(_dataspace) {
-        };
+        }
 
         Rect crop;
         uint32_t transform;
index 3f39799..e428371 100644 (file)
@@ -84,7 +84,7 @@ public:
 class IConsumerListener : public ConsumerListener, public IInterface
 {
 public:
-    DECLARE_META_INTERFACE(ConsumerListener);
+    DECLARE_META_INTERFACE(ConsumerListener)
 };
 
 // ----------------------------------------------------------------------------
index 86247de..848368c 100644 (file)
@@ -34,7 +34,7 @@ class IDisplayEventConnection : public IInterface
 {
 public:
 
-    DECLARE_META_INTERFACE(DisplayEventConnection);
+    DECLARE_META_INTERFACE(DisplayEventConnection)
 
     /*
      * getDataChannel() returns a BitTube where to receive the events from
index 600cf27..acc2f30 100644 (file)
@@ -33,7 +33,7 @@ namespace android {
 class IGraphicBufferAlloc : public IInterface
 {
 public:
-    DECLARE_META_INTERFACE(GraphicBufferAlloc);
+    DECLARE_META_INTERFACE(GraphicBufferAlloc)
 
     /* Create a new GraphicBuffer for the client to use.
      */
index e983c16..1165c40 100644 (file)
@@ -269,7 +269,7 @@ public:
     virtual void dump(String8& result, const char* prefix) const = 0;
 
 public:
-    DECLARE_META_INTERFACE(GraphicBufferConsumer);
+    DECLARE_META_INTERFACE(GraphicBufferConsumer)
 };
 
 // ----------------------------------------------------------------------------
index 37ae6df..40579c2 100644 (file)
@@ -54,7 +54,7 @@ class Surface;
 class IGraphicBufferProducer : public IInterface
 {
 public:
-    DECLARE_META_INTERFACE(GraphicBufferProducer);
+    DECLARE_META_INTERFACE(GraphicBufferProducer)
 
     enum {
         // A flag returned by dequeueBuffer when the client needs to call
index f64c6b8..857444b 100644 (file)
@@ -33,7 +33,7 @@ class BitTube;
 class ISensorEventConnection : public IInterface
 {
 public:
-    DECLARE_META_INTERFACE(SensorEventConnection);
+    DECLARE_META_INTERFACE(SensorEventConnection)
 
     virtual sp<BitTube> getSensorChannel() const = 0;
     virtual status_t enableDisable(int handle, bool enabled, nsecs_t samplingPeriodNs,
index 571acb5..737c430 100644 (file)
@@ -35,7 +35,7 @@ class String8;
 class ISensorServer : public IInterface
 {
 public:
-    DECLARE_META_INTERFACE(SensorServer);
+    DECLARE_META_INTERFACE(SensorServer)
 
     virtual Vector<Sensor> getSensorList(const String16& opPackageName) = 0;
     virtual Vector<Sensor> getDynamicSensorList(const String16& opPackageName) = 0;
index af26721..b46e9e6 100644 (file)
@@ -50,7 +50,7 @@ class Rect;
  */
 class ISurfaceComposer: public IInterface {
 public:
-    DECLARE_META_INTERFACE(SurfaceComposer);
+    DECLARE_META_INTERFACE(SurfaceComposer)
 
     // flags for setTransactionState()
     enum {
index bb79bd0..48bd088 100644 (file)
@@ -36,7 +36,7 @@ class IGraphicBufferProducer;
 class ISurfaceComposerClient : public IInterface
 {
 public:
-    DECLARE_META_INTERFACE(SurfaceComposerClient);
+    DECLARE_META_INTERFACE(SurfaceComposerClient)
 
     // flags for createSurface()
     enum { // (keep in sync with Surface.java)
index 629310f..11bb721 100644 (file)
@@ -30,7 +30,7 @@ namespace android {
  */
 class IInputFlinger : public IInterface {
 public:
-    DECLARE_META_INTERFACE(InputFlinger);
+    DECLARE_META_INTERFACE(InputFlinger)
 };
 
 
index 461fad7..3230189 100644 (file)
@@ -50,7 +50,7 @@ public:
         CRASH                        = IBinder::FIRST_CALL_TRANSACTION + 16,
     };
 
-    DECLARE_META_INTERFACE(PowerManager);
+    DECLARE_META_INTERFACE(PowerManager)
 
     // The parcels created by these methods must be kept in sync with the
     // corresponding methods from IPowerManager.aidl.
index 84eb100..6b9b460 100644 (file)
@@ -63,7 +63,7 @@ public:
         friend class region_operator;
         virtual void operator()(const RECT& rect) = 0;
     public:
-        virtual ~region_rasterizer() { };
+        virtual ~region_rasterizer() { }
     };
     
     inline region_operator(int op, const region& lhs, const region& rhs) 
index 6bfe635..bc9d3ec 100644 (file)
@@ -25,7 +25,7 @@ namespace android {
 
 class FrameStats : public LightFlattenable<FrameStats> {
 public:
-    FrameStats() : refreshPeriodNano(0) {};
+    FrameStats() : refreshPeriodNano(0) {}
 
     /*
      * Approximate refresh time, in nanoseconds.
index 97c9a89..191377c 100644 (file)
@@ -81,7 +81,7 @@ private:
             uint32_t* outCount,
             int32_t* /*gralloc1_capability_t*/ outCapabilities) {
         getAdapter(device)->doGetCapabilities(outCount, outCapabilities);
-    };
+    }
 
     // getFunction