ruby-changes:54572
From: k0kubun <ko1@a...>
Date: Fri, 11 Jan 2019 00:42:51 +0900 (JST)
Subject: [ruby-changes:54572] k0kubun:r66787 (trunk): addr2line.c: fix -Wextra-semi
k0kubun 2019-01-11 00:42:44 +0900 (Fri, 11 Jan 2019) New Revision: 66787 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66787 Log: addr2line.c: fix -Wextra-semi and ignore only -Wgnu-empty-initializer. https://travis-ci.org/ruby/ruby/jobs/477867392 Modified files: trunk/addr2line.c Index: addr2line.c =================================================================== --- addr2line.c (revision 66786) +++ addr2line.c (revision 66787) @@ -9,6 +9,7 @@ https://github.com/ruby/ruby/blob/trunk/addr2line.c#L9 **********************************************************************/ #if defined(__clang__) +#pragma clang diagnostic ignored "-Wgnu-empty-initializer" #pragma clang diagnostic ignored "-Wgcc-compat" #endif @@ -785,7 +786,7 @@ typedef struct { https://github.com/ruby/ruby/blob/trunk/addr2line.c#L786 char *pend; char *q0; char *q; - int format; /* 4 or 8 */; + int format; // 4 or 8 uint8_t address_size; int level; char *abbrev_table[ABBREV_TABLE_SIZE]; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/