[tor-bugs] #22895 [Core Tor/Tor]: Unused variables in donna's SSE2 header

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Jul 12 17:08:26 UTC 2017


#22895: Unused variables in donna's SSE2 header
--------------------------+---------------------
 Reporter:  cypherpunks   |          Owner:
     Type:  defect        |         Status:  new
 Priority:  Medium        |      Milestone:
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:                |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+---------------------

Comment (by cypherpunks):

 I probably should provide a little more information. The unused variables
 are in the Curve25519 SSE2 header.

 {{{
 In file included from src/ext/ed25519/donna/ed25519-donna.h:55:0,
                  from src/ext/ed25519/donna/ed25519_tor.c:38:
 src/ext/ed25519/donna/curve25519-donna-sse2.h:51:27: error:
 ‘packed121666121665’ defined but not used [-Werror=unused-const-variable=]
  static const packedelem64 packed121666121665 = {{121666, 121665}};
                            ^~~~~~~~~~~~~~~~~~
 src/ext/ed25519/donna/curve25519-donna-sse2.h:48:27: error: ‘packed9638’
 defined but not used [-Werror=unused-const-variable=]
  static const packedelem64 packed9638 = {{19*4,19*2}};
                            ^~~~~~~~~~
 src/ext/ed25519/donna/curve25519-donna-sse2.h:45:27: error:
 ‘packednineteenone’ defined but not used [-Werror=unused-const-variable=]
  static const packedelem64 packednineteenone = {{19, 1}};
                            ^~~~~~~~~~~~~~~~~
 src/ext/ed25519/donna/curve25519-donna-sse2.h:39:27: error:
 ‘packedmask2625’ defined but not used [-Werror=unused-const-variable=]
  static const packedelem32 packedmask2625 = {{0x3ffffff,0,0x1ffffff,0}};
                            ^~~~~~~~~~~~~~
 src/ext/ed25519/donna/curve25519-donna-sse2.h:32:27: error: ‘top32bitmask’
 defined but not used [-Werror=unused-const-variable=]
  static const packedelem32 top32bitmask = {{0x00000000, 0xffffffff,
 0x00000000, 0xffffffff}};
                            ^~~~~~~~~~~~
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22895#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list