nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Announcing the second release candidate of nmh 1.7.1

2018-01-23 05:08:53
Hi Andy,

uip/fmttest.c: In function 'main':
uip/fmttest.c:123: warning: 'outputsize' may be used uninitialized in this 
function

Looks like  this one  will require even  more investigation  to
discover whether the warning is just a red herring or not.

It is.  Summarising the flow:

    bool outputsize_given = false;
    int outputsize;

    switch {
    case ...:
        outputsize_given = true;
        if (...)
            outputsize = INT_MAX;
        else if (...)
            outputsize = sc_width();
        else
            outputsize = atoi(cp);
    }

    if (!outputsize_given) {
        outputsize = ...;
    }

And from then on they're all reads.

Again, no warning from cc here.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy

-- 
Nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>