OSDN Git Service

gralloc: don't initialize reserved_proc
authorGreg Hackmann <ghackmann@google.com>
Fri, 9 May 2014 22:34:54 +0000 (15:34 -0700)
committerGreg Hackmann <ghackmann@google.com>
Fri, 9 May 2014 22:53:18 +0000 (15:53 -0700)
commitc99ae19a2ad61000b65224724370278f2df41a7c
treee09e8b490fd49b4268ee2c6e01b1da6f582f8f37
parentc950e0df7e0c730c3db7f51a0a5c472ee1c2772f
gralloc: don't initialize reserved_proc

gcc supports designated initializers in C++ mode as an extension, but
*only* when all of the specified fields are at the beginning of the
struct.  Hence initializing reserved_proc breaks compilation when new
procs are added.

Initializing reserved_proc makes a (spurious) warning go away, so
instead directly suppress that warning.

Change-Id: I279b7070b1aa7068c23fb59422589ff31980432d
Signed-off-by: Greg Hackmann <ghackmann@google.com>
system/gralloc/Android.mk
system/gralloc/gralloc.cpp