[MacPorts] #65013: gindent @2.2.12: error: variable 'paren_level' set but not used [-Werror, -Wunused-but-set-variable] (was: gindent won't build -- paren_level not used error)
MacPorts
noreply at macports.org
Sat Apr 16 00:42:32 UTC 2022
#65013: gindent @2.2.12: error: variable 'paren_level' set but not used [-Werror
,-Wunused-but-set-variable]
---------------------------+----------------------
Reporter: physicsbeany | Owner: larryv
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords: monterey
Port: gindent |
---------------------------+----------------------
Changes (by ryandesign):
* status: new => assigned
* owner: (none) => larryv
* keywords: gindent gnuplot paren_level => monterey
Old description:
> Hi. Trying to install gnuplot on a fresh MacPorts installation on MacOS
> Monterey, but it quickly fails when installing the dependency port
> "gindent". Looking at the error log, it seems that the compiler flags are
> too stringent, killing the build because a variable is declared but not
> used:
>
> :info:build output.c:843:8: error: variable 'paren_level' set but not
> used [-Werror,-Wunused-but-set-variable]
>
> Full log file attached to this ticket.
New description:
Hi. Trying to install gnuplot on a fresh MacPorts installation on MacOS
Monterey, but it quickly fails when installing the dependency port
"gindent". Looking at the error log, it seems that the compiler flags are
too stringent, killing the build because a variable is declared but not
used:
{{{
:info:build output.c:843:8: error: variable 'paren_level' set but not used
[-Werror,-Wunused-but-set-variable]
}}}
Full log file attached to this ticket.
--
Comment:
This kind of thing is the reason why we recommend ports don't build with
`-Werror`.
Since this isn't a MacPorts-specific problem, please report it to the
developers of gindent at https://savannah.gnu.org/bugs/?group=indent.
--
Ticket URL: <https://trac.macports.org/ticket/65013#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list