From 1c0cf3101d330efbee49afc8a6dba210af500d45 Mon Sep 17 00:00:00 2001 From: Oleh Prypin Date: Sun, 19 Aug 2018 12:08:09 +0200 Subject: [PATCH] Stop using typeof() GNU extension https://chromium.googlesource.com/chromium/src/+/6009a54aabbe95c77b5f0ca3f8ec8489d2b7093b switches away from -std=gnu++... Bug: chromium:427584 Change-Id: Ib9cb76ce6fb901727f696ded3944af0e510c030a Reviewed-on: https://webrtc-review.googlesource.com/94779 Commit-Queue: Oleh Prypin Reviewed-by: Mirko Bonadei Reviewed-by: Henrik Andreassson Cr-Commit-Position: refs/heads/master@{#24337} --- modules/audio_device/linux/latebindingsymboltable_linux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/audio_device/linux/latebindingsymboltable_linux.h b/modules/audio_device/linux/latebindingsymboltable_linux.h index 1e28c223cf..57314a6e13 100644 --- a/modules/audio_device/linux/latebindingsymboltable_linux.h +++ b/modules/audio_device/linux/latebindingsymboltable_linux.h @@ -158,7 +158,7 @@ class LateBindingSymbolTable { // Returns a reference to the given late-binded symbol, with the correct type. #define LATESYM_GET(ClassName, inst, sym) \ - (*reinterpret_cast( \ + (*reinterpret_cast<__typeof__(&sym)>( \ (inst)->GetSymbol(LATESYM_INDEXOF(ClassName, sym)))) } // namespace adm_linux