12 Jun 2011 20:04
Compilation with gcc 4.6.0
Julien ÉLIE <julien <at> trigofacile.com>
2011-06-12 18:04:08 GMT
2011-06-12 18:04:08 GMT
Hi all,
I am currently building INN with gcc 4.6.0; a few issues appear with
the new "-Wunused-but-set-parameter" and "-Wunused-but-set-variable"
warnings.
I fixed all of them in our source code (variables or parameters
really not used).
However, here are a few errors I do not not what to do with.
In authprogs/radius.c:
typedef struct _auth_req {
unsigned char code;
unsigned char id;
unsigned short length;
unsigned char vector[AUTH_VECTOR_LEN];
unsigned char data[NNTP_MAXLEN_COMMAND*2];
int datalen;
} auth_req;
static void req_copyto (auth_req to, sending_t *from)
{
to = from->req;
}
The function is called in the code with:
req_copyto(req, sreq);
(Continue reading)
Anyway, the rest of the source code is not always optimized…
> This part is just a mess and has needed rewriting for a while. The real
RSS Feed