[MacPorts] #69384: gklib @20230327: error: 'lnlen' may be used uninitialized in this function
MacPorts
noreply at macports.org
Thu Nov 28 18:26:59 UTC 2024
#69384: gklib @20230327: error: 'lnlen' may be used uninitialized in this function
-----------------------+---------------------------------------
Reporter: rmottola | Owner: catap
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: tiger leopard snowleopard
Port: gklib |
-----------------------+---------------------------------------
Comment (by rmottola):
I think the warning is actually legit and depends on the stupid way
variables are declared and initialized.
Changing all occurrences to this:
{{{
size_t lnlen=0;
size_t nlines=0;
}}}
fixes the issue and gklib compiles.
Unfortunaly I hacked away and did not save a patch :(
I attach the full file though.
--
Ticket URL: <https://trac.macports.org/ticket/69384#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list