Sorry, the warning is still there.

Ping

On Tue, Dec 21, 2010 at 10:36 PM, Peter Hutterer
<[email protected]> wrote:
>  CC     wcmConfig.lo
> wcmConfig.c: In function ‘NewWcmPreInit’:
> wcmConfig.c:515:3: warning: implicit declaration of function ‘asprintf’
> wcmConfig.c:515:3: warning: nested extern declaration of ‘asprintf’
>
>  CC     wcmValidateDevice.lo
> wcmValidateDevice.c: In function ‘wcmOptionDupConvert’:
> wcmValidateDevice.c:320:2: warning: implicit declaration of function 
> ‘asprintf’
> wcmValidateDevice.c:320:2: warning: nested extern declaration of ‘asprintf’
>
> Signed-off-by: Peter Hutterer <[email protected]>
> ---
>
> Ping, can you please test this? somehow my inclusion order is different, so
> I don't get the asprintf warnings.
>
>  src/wcmConfig.c         |    2 ++
>  src/wcmValidateDevice.c |    2 ++
>  2 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/src/wcmConfig.c b/src/wcmConfig.c
> index af385f2..c894272 100644
> --- a/src/wcmConfig.c
> +++ b/src/wcmConfig.c
> @@ -26,6 +26,8 @@
>  #include <sys/stat.h>
>  #include <fcntl.h>
>  #include <unistd.h>
> +#define _GNU_SOURCE
> +#include <stdio.h>
>
>  /*****************************************************************************
>  * wcmAllocate --
> diff --git a/src/wcmValidateDevice.c b/src/wcmValidateDevice.c
> index e3ee091..2e71d46 100644
> --- a/src/wcmValidateDevice.c
> +++ b/src/wcmValidateDevice.c
> @@ -25,6 +25,8 @@
>  #include <sys/stat.h>
>  #include <fcntl.h>
>  #include <unistd.h>
> +#define _GNU_SOURCE
> +#include <stdio.h>
>
>  /* wcmCheckSource - Check if there is another source defined this device
>  * before or not: don't add the tool by hal/udev if user has defined at least
> --
> 1.7.3.4
>
>

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to