Skip to content

Commit

Permalink
campaignd: Ignore old-style-cast warning caused by a system macro on GCC
Browse files Browse the repository at this point in the history
Somehow only happens with the Travis GCC configuration we use as of this
writing when using ccache.
  • Loading branch information
irydacea committed Oct 16, 2016
1 parent 2b12dd8 commit 0749207
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/campaign_server/campaign_server.cpp
Expand Up @@ -116,6 +116,7 @@ server::server(const std::string& cfg_file)
#ifndef _WIN32
struct sigaction sa;
std::memset( &sa, 0, sizeof(sa) );
#pragma GCC diagnostic ignored "-Wold-style-cast"
sa.sa_handler = SIG_IGN;
int res = sigaction( SIGPIPE, &sa, NULL);
assert( res == 0 );
Expand Down

0 comments on commit 0749207

Please sign in to comment.