[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] getopt: avoid compiler warning during configure
From: |
Eric Blake |
Subject: |
Re: [PATCH] getopt: avoid compiler warning during configure |
Date: |
Thu, 07 Jul 2011 15:30:58 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10 |
On 07/07/2011 03:26 PM, Paul Eggert wrote:
>
> char *argv[3] = { "program", "-ab", NULL };
>
> with stuff like this:
>
> static char program[] = "program";
> static char x_ab[] = "-ab";
> char *argv[3] = { program, x_ab, NULL };
>
> This will pacify the compiler. It's a bit awkward,
> but it's bound to be more portable than the casts are.
Sure; do you want to tackle that, or shall I?
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [PATCH] getopt: handle W; without long options in getopt, Eric Blake, 2011/07/07
- [PATCH] getopt-gnu: avoid crash in glibc getopt, Eric Blake, 2011/07/07
- Re: [PATCH] getopt-gnu: avoid crash in glibc getopt, Pádraig Brady, 2011/07/19
- Re: [PATCH] getopt-gnu: avoid crash in glibc getopt, Eric Blake, 2011/07/19
- Re: [PATCH] getopt-gnu: avoid crash in glibc getopt, Pádraig Brady, 2011/07/19
- Re: [PATCH] getopt-gnu: avoid crash in glibc getopt, Eric Blake, 2011/07/19
- Re: [PATCH] getopt-gnu: avoid crash in glibc getopt, Bruno Haible, 2011/07/19
- Re: [PATCH] getopt-gnu: avoid crash in glibc getopt, Pádraig Brady, 2011/07/19
[PATCH] getopt: avoid compiler warning during configure, Eric Blake, 2011/07/07