From: Florian Krohm Date: Thu, 9 Oct 2014 16:44:30 +0000 (+0000) Subject: Use __typeof__. X-Git-Tag: svn/VALGRIND_3_11_0~933 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb8c5e3d1fde8008f6b0259255d1ef898574cb55;p=thirdparty%2Fvalgrind.git Use __typeof__. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14613 --- diff --git a/coregrind/m_translate.c b/coregrind/m_translate.c index 72311bc787..8469e7eafc 100644 --- a/coregrind/m_translate.c +++ b/coregrind/m_translate.c @@ -1629,9 +1629,7 @@ Bool VG_(translate) ( ThreadId tid, : VG_(tdict).tool_instrument; IRSB*(*g)(void*, IRSB*,const VexGuestLayout*,const VexGuestExtents*, - const VexArchInfo*,IRType,IRType) - = (IRSB*(*)(void*,IRSB*,const VexGuestLayout*, - const VexGuestExtents*, const VexArchInfo*,IRType,IRType))f; + const VexArchInfo*,IRType,IRType) = (__typeof__(g)) f; vta.instrument1 = g; } /* No need for type kludgery here. */