[Top][All Lists]

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

Re: [lwip-users] Compiler warning fix

From: Adrian Godwin
Subject: Re: [lwip-users] Compiler warning fix
Date: Wed, 27 Jul 2005 13:20:03 +0100
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

Chris Hiszpanski wrote:

When compiling etharp.c with #define ARP_QUEUEING 0, the temporary pbuf *p in etharp_query is not used and generates a compiler warning. Here is a diff of the change I made to fix this:

It sounds as though you generally compile with few or no warnings.

I get large numbers of warnings (target is PPC with Diab compiler)
and although many of them are benign there are some nasties in

I've just been bitten by one of them : a warning about 'narrowing
conversion' turned out to be true, and results in the truncation
of a buffer length argument when netconn_write is called from the
sockets api.

I will need to go through the compiler warnings and sort them out,
but has anyone else had to do this already ? Any machine with
32-bit native integers would seem to be a problem.


reply via email to

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