gralloc: reorder initializers to eliminate warnings
authorGreg Hackmann <ghackmann@google.com>
Wed, 11 Jul 2012 16:53:55 +0000 (09:53 -0700)
committerGreg Hackmann <ghackmann@google.com>
Tue, 17 Jul 2012 00:30:25 +0000 (17:30 -0700)
Change-Id: I5705972a85465697582530f5cc41891d78cb561f
Signed-off-by: Greg Hackmann <ghackmann@google.com>
include/gralloc_priv.h

index aa1ceb221d7e0857beb50b158b9418750fb708dc..20bc9d4cf6ad9bb022b8581a2ec9977648f15310 100644 (file)
@@ -169,6 +169,9 @@ struct private_handle_t
     }
 
     private_handle_t(int flags, int size, int base, int lock_state, int fb_file, int fb_offset):
+        fd(fb_file),
+        u_fd(0),
+        v_fd(0),
         magic(sMagic),
         flags(flags),
         size(size),
@@ -178,9 +181,7 @@ struct private_handle_t
         pid(getpid()),
         ump_id(UMP_INVALID_SECURE_ID),
         ump_mem_handle(UMP_INVALID_MEMORY_HANDLE),
-        fd(fb_file),
-        u_fd(0),
-        v_fd(0),
+        offset(fb_offset),
         format(0),
         usage(0),
         width(0),
@@ -189,8 +190,7 @@ struct private_handle_t
         stride(0),
         yaddr(0),
         uoffset(0),
-        voffset(0),
-        offset(fb_offset)
+        voffset(0)
     {
         version = sizeof(native_handle);
         numFds = sNumFds;