Project

General

Profile

Bug #12524

Excess semicolons in ext/digest and ext/openssl

Added by ngoto (Naohisa Goto) about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
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 の警告が出ています。

Associated revisions

Revision 8b251c6c
Added by ngoto (Naohisa Goto) about 3 years ago

  • 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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 55523
Added by ngoto (Naohisa Goto) about 3 years ago

  • 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.

Revision 55523
Added by ngoto (Naohisa Goto) about 3 years ago

  • 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.

Revision 55523
Added by ngoto (Naohisa Goto) about 3 years ago

  • 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.

Revision 55523
Added by ngoto (Naohisa Goto) about 3 years ago

  • 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.

Revision 2f0555c3
Added by nagachika (Tomoyuki Chikanaga) about 3 years ago

merge revision(s) 55523: [Backport #12524]

    * 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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@55918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 55918
Added by nagachika (Tomoyuki Chikanaga) about 3 years ago

merge revision(s) 55523: [Backport #12524]

* 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.

History

#1

Updated by ngoto (Naohisa Goto) about 3 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) about 3 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) about 3 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.

Also available in: Atom PDF