[MacPorts] #65016: py-pytorch @1.8.1: error: variable 'sigma_gn' set but not used [-Werror, -Wunused-but-set-variable]

MacPorts noreply at macports.org
Sun Apr 17 18:53:03 UTC 2022


#65016: py-pytorch @1.8.1: error: variable 'sigma_gn' set but not used [-Werror
,-Wunused-but-set-variable]
-------------------------+----------------------------------------
  Reporter:  mascguy     |      Owner:  mascguy
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.7.2
Resolution:              |   Keywords:  sierra highsierra haspatch
      Port:  py-pytorch  |
-------------------------+----------------------------------------

Comment (by mascguy):

 Replying to [comment:3 ryandesign]:
 > A workaround would be to add `-Wno-error=unused-but-set-variable` with
 clang 13 or later. The better solution would be to fix the code for
 example by removing the unused variable. It's an upstream bug, of course,
 so consultation with the developers is recommended. In this case, such
 consultation has already occurred. Here is their bug report:
 >
 > https://github.com/google/benchmark/issues/1172
 >
 > And their fix which we should apply to the port:
 >
 >
 https://github.com/google/benchmark/commit/e991355c02b93fe17713efe04cbc2e278e00fdbd

 Thanks for the background detail, as well as a link to the patch.
 (Googling this was on my to-do list, but the sudden behavior change made
 me second-guess my sanity!)

-- 
Ticket URL: <https://trac.macports.org/ticket/65016#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list