GCC: Use GCC pragma instead of clang
1. GCC doesn't support clang pragma. Below is an example: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas] Fortunately, clang supports GCC pragma, even though some warnings are not compatible each other. 2. A warning "-Wdelete-non-abstract-non-virtual-dtor" is a clang-only flag. It looks like suppression "-Wdelete-non-virtual-dtor" is better because it is supported by both compiler. This CL changes to use GCC pragma, and suppress "-Wdelete-non-virtual-dtor" warning. Change-Id: I33e42f7465276e60729f9071af96693f57d0f2ba Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2366532 Commit-Queue: Anton Bikineev <bikineev@chromium.org> Reviewed-by:Anton Bikineev <bikineev@chromium.org> Cr-Commit-Position: refs/heads/master@{#800072}
Showing
Please register or sign in to comment