From: usa@... Date: 2016-08-04T07:18:16+00:00 Subject: [ruby-dev:49748] [Ruby trunk Bug#12524] Excess semicolons in ext/digest and ext/openssl Issue #12524 has been updated by Usaku NAKAMURA. Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: DONTNEED, 2.2: DONTNEED, 2.3: REQUIRED ---------------------------------------- Bug #12524: Excess semicolons in ext/digest and ext/openssl https://bugs.ruby-lang.org/issues/12524#change-59930 * Author: Naohisa Goto * Status: Closed * Priority: Normal * Assignee: * ruby -v: * Backport: 2.1: DONTNEED, 2.2: DONTNEED, 2.3: REQUIRED ---------------------------------------- ext/digest については r49564 以降、 ext/openssl については r55285 以降、 Solaris 10 上の Oracle Solaris Studio 12.x によるコンパイル時に以下のwarningが出ます。 ``` compiling md5init.c "md5ossl.h", line 11: warning: syntax error: empty declaration (E_EMPTY_DECLARATION) (略) compiling sha1init.c "sha1ossl.h", line 18: warning: syntax error: empty declaration (E_EMPTY_DECLARATION) (略) compiling sha2init.c "sha2ossl.h", line 23: warning: syntax error: empty declaration (E_EMPTY_DECLARATION) "sha2ossl.h", line 24: warning: syntax error: empty declaration (E_EMPTY_DECLARATION) "sha2ossl.h", line 25: warning: syntax error: empty declaration (E_EMPTY_DECLARATION) (略) compiling ossl_pkey_rsa.c "ossl_pkey_rsa.c", line 659: warning: syntax error: empty declaration (E_EMPTY_DECLARATION) "ossl_pkey_rsa.c", line 660: warning: syntax error: empty declaration (E_EMPTY_DECLARATION) "ossl_pkey_rsa.c", line 661: warning: syntax error: empty declaration (E_EMPTY_DECLARATION) ``` 原因は [Bug #12470] とほぼ同様です。つまり、マクロ使用時の最後のセミコロンが余計で、何も内容の無い行が発生して、empty declaration の警告が出ています。 -- https://bugs.ruby-lang.org/