Get rid of false positive gcc warnings

Due to an old bug [1], gcc generates false positive while using
designated initializers. This patch suppresses this warnings while
using gcc.

[1] (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36446)