1

(1 replies, posted in wolfSSL)

In our setup, the compiler warning "variable is used before it is set" is promoted from warning to error, so it breaks our builds.

In "internal.c" around line 9255, there is the following code:

        byte*       out;
        int         outLen;
        byte        hashAlgo = sha_mac;
        byte        sigAlgo = anonymous_sa_algo;

        (void)out;
        (void)outLen;

While I don't understand the meaning of the last two lines, the compiler throws an error for outLen because this line uses it before it is set.
What's the purpose of those lines?
Can you either remove them or set an initial value to the two variables in future releases?