Suppress unreachable code warning in unwind tests

llvm-svn: 290487
This commit is contained in:
Eric Fiselier 2016-12-24 05:01:55 +00:00
parent dee07a6a9f
commit 47570b8d2c
5 changed files with 20 additions and 0 deletions

View File

@ -11,6 +11,10 @@
#include <assert.h>
#if defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wunreachable-code"
#endif
struct A
{
static int count;

View File

@ -11,6 +11,10 @@
#include <assert.h>
#if defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wunreachable-code"
#endif
struct A
{
static int count;

View File

@ -13,6 +13,10 @@
#include <stdlib.h>
#include <assert.h>
#if defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wunreachable-code"
#endif
struct A
{
static int count;

View File

@ -13,6 +13,10 @@
#include <stdlib.h>
#include <assert.h>
#if defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wunreachable-code"
#endif
struct A
{
static int count;

View File

@ -13,6 +13,10 @@
#include <stdlib.h>
#include <assert.h>
#if defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wunreachable-code"
#endif
struct A
{
static int count;