[libvirt] [PATCH] storage pool discovery

Jim Meyering jim at meyering.net
Fri Aug 22 20:56:11 UTC 2008


David Lively <dlively at virtualiron.com> wrote:
> On Fri, 2008-08-22 at 19:16 +0200, Jim Meyering wrote:
>> > +    const char *name, *path;
>>
>> path can be const, too.
>
> It is, at least according to my gcc (4.3.0-8, x86_64, Fedora9).
>
> Compile the following and without FORCE_WARNING to check:
>
> void check()
> {
> #ifdef FORCE_WARNING
>     const char *foo;
>     char *bar;
> #else
>     const char *foo, *bar;
> #endif

Oops.  Now you know why I prefer to declare them on separate lines:
one less rule to remember that way ;-)




More information about the libvir-list mailing list