gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] [PATCH] Fix a compiler warning when compiling with clang.


From: Gary E. Miller
Subject: Re: [gpsd-dev] [PATCH] Fix a compiler warning when compiling with clang.
Date: Thu, 3 May 2012 14:28:28 -0700

Yo Beat!

On Thu,  3 May 2012 23:14:03 +0200
Beat Bolli <address@hidden> wrote:

> I tried to compile GPSd with clang from the LLVM project.

Cool.

> I had to exclude the NMEA2000 driver because <time.h> on Ubuntu 12.04
> (Precise Pangolin) doesn't define clock_gettime().

Can you tell us where clock_gettime() is defined?
>
> This was the only warning:
> 
> clang -o gpxlogger.o -c -O2 gpxlogger.c
> gpxlogger.c:338:5: warning: expression result unused [-Wunused-value]
>     (int)gps_mainloop(&gpsdata, 5000000, conditionally_log_fix);
>     ^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Good catch.  Fix pushed to git head.


RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
        address@hidden  Tel:+1(541)382-8588

Attachment: signature.asc
Description: PGP signature


reply via email to

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