Re: cups-filters 1.16.2 released!
On Tue, Aug 22, 2017 at 11:29:53AM -0300, Till Kamppeter wrote:
> On 08/21/2017 03:50 PM, Adrian Bunk wrote:
> > On Mon, Aug 21, 2017 at 08:59:37AM -0300, Till Kamppeter wrote:
>...
> > Anonymous unions are part of C11.
> >
> > gcc >= 5 defaults to C11, but your -std=gnu99 forces it to C99.
> >
>
> What is overall "better"? Or what is the newer, more modern standard? C11 or
> C99?
The number is the year (1999 and 2011).
> > And cups-filters contains a weird combination of compiler flags:
> >
> > # Be tough with warnings and produce less careless code
> > CFLAGS="$CFLAGS -Wall -pedantic -std=gnu99"
> > ...
> > CFLAGS="$CFLAGS -D_GNU_SOURCE"
> >
> > The things -pedantic warns about are not indications of bad code,
> > just of less portable code.
>
> There are users of non-Linux systems, like *BSD, does this mean to better
> leave -pedantic in place?
>...
As compiler this means either gcc or clang,
and clang supports most of what gcc supports.
Support of Microsoft Visual C++ or other commercial Windows compilers
is usually the main reason for people being pedantic about standards
compliance.
> Till
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
Reply to: