[MacPorts] #72471: djvulibre @ 3.5.28: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]

MacPorts noreply at macports.org
Thu Jul 2 17:48:04 UTC 2026


#72471: djvulibre @ 3.5.28: error: ISO C++17 does not allow 'register' storage
class specifier [-Wregister]
------------------------+-------------------------
  Reporter:  acjones8   |      Owner:  NicosPavlov
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.10.7
Resolution:             |   Keywords:
      Port:  djvulibre  |
------------------------+-------------------------

Comment (by Dave-Allured):

 I am not sure whether this is still an issue for `djvulibre`.  The
 `register` keyword is deprecated starting with C++17, as implied by the
 error message.

 However, if it is still in the code base, then a suggested fix is to use
 the compiler flag `-Wno-register` as a single-point mitigation to suppress
 these warnings.  This would be better than code patching.  Reference:
 https://emmtrix.com/wiki/Clang:Flag/-Wregister

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


More information about the macports-tickets mailing list