[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] several messages
From: |
Greg Troxel |
Subject: |
Re: [gpsd-dev] several messages |
Date: |
Mon, 15 Aug 2016 20:13:17 -0400 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (berkeley-unix) |
Fred Wright <address@hidden> writes:
>> The other thing that works with gcc and clang is to add --std=c99. I am
>> not sure if that is duplicative with the define you mentioned, but it
>> seems to be the normal way to tell the compiler to disable gcc
>> extensions and to follow the C99 standard as strictly as it can.
>
> However, that's specific to gcc/clang. The point of the POSIX 'c99'
> command (when it exists) is to hide such details.
>
> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html
Totally fair, but in configure.ac, if you don't find c99, but do find
clang or gcc, and add --std=c99, that helps.
On NetBSD from 5 onward, there is /usr/bin/c99:
#!/bin/sh
exec /usr/bin/cc -std=c99 "$@"
OS X 10.9 has a /usr/bin/c99 that is documented to conform to POSIX.
So I agree it is worth checking for c99 as you say.
signature.asc
Description: PGP signature
- Re: [gpsd-dev] Lots of warnings, (continued)
- Re: [gpsd-dev] Lots of warnings, Gary E. Miller, 2016/08/12
- Re: [gpsd-dev] Lots of warnings, Joshua Judson Rosen, 2016/08/15
- Re: [gpsd-dev] Lots of warnings, Gary E. Miller, 2016/08/15
- Re: [gpsd-dev] Lots of warnings, Fred Wright, 2016/08/15
- Re: [gpsd-dev] Lots of warnings, Eric S. Raymond, 2016/08/15
- Re: [gpsd-dev] several messages, Fred Wright, 2016/08/15
- Re: [gpsd-dev] several messages, Gary E. Miller, 2016/08/15
- Re: [gpsd-dev] several messages, Greg Troxel, 2016/08/15
- Re: [gpsd-dev] several messages, Gary E. Miller, 2016/08/15
- Re: [gpsd-dev] several messages, Fred Wright, 2016/08/15
- Re: [gpsd-dev] several messages,
Greg Troxel <=
- Re: [gpsd-dev] several messages, Gary E. Miller, 2016/08/15
- Re: [gpsd-dev] several messages, Greg Troxel, 2016/08/16
- Re: [gpsd-dev] several messages, Sanjeev Gupta, 2016/08/16
- Re: [gpsd-dev] Lots of warnings, Gary E. Miller, 2016/08/15
- Re: [gpsd-dev] Lots of warnings, Hal Murray, 2016/08/12
- Re: [gpsd-dev] Today's warnings.... / Lots of warnings, Fred Wright, 2016/08/12
- Re: [gpsd-dev] Lots of warnings, Fred Wright, 2016/08/10
- Re: [gpsd-dev] Lots of warnings, Hal Murray, 2016/08/10
- Re: [gpsd-dev] Lots of warnings, Norton Allen, 2016/08/10