Project

General

Profile

Actions

Bug #12524

closed

Excess semicolons in ext/digest and ext/openssl

Added by ngoto (Naohisa Goto) almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-dev:49692]

Description

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 の警告が出ています。

Actions #1

Updated by ngoto (Naohisa Goto) almost 8 years ago

  • Status changed from Open to Closed

Applied in changeset r55523.


  • ext/digest/md5/md5ossl.h: Remove excess semicolons.
    Suppress warning on Solaris with Oracle Solaris Studio 12.
    [ruby-dev:49692] [Bug #12524]

  • ext/digest/md5/md5cc.h: ditto.

  • ext/digest/sha1/sha1cc.h: ditto.

  • ext/digest/sha1/sha1ossl.h: ditto.

  • ext/digest/sha2/sha2cc.h: ditto.

  • ext/digest/sha2/sha2ossl.h: ditto.

  • ext/openssl/ossl_pkey_rsa.c: ditto.

Updated by usa (Usaku NAKAMURA) over 7 years ago

  • Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: DONTNEED, 2.2: DONTNEED, 2.3: REQUIRED

Updated by nagachika (Tomoyuki Chikanaga) over 7 years ago

  • Backport changed from 2.1: DONTNEED, 2.2: DONTNEED, 2.3: REQUIRED to 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONE

ruby_2_3 r55918 merged revision(s) 55523.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0