nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Ralph Corderoy
Subject: Re: [Nmh-workers] Announcing the second release candidate of nmh 1.7.1
Date: Tue, 23 Jan 2018 11:08:33 +0000

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]