[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] [PATCH] storage pool discovery
- From: David Lively <dlively virtualiron com>
- To: Jim Meyering <jim meyering net>
- Cc: libvir-list <libvir-list redhat com>
- Subject: Re: [libvirt] [PATCH] storage pool discovery
- Date: Fri, 22 Aug 2008 16:03:38 -0400
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
foo = "I'm a const char *";
bar = foo; // warns iff bar not const char *
}
Dave
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]