[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: const/volatile vs. -Werror
From: |
Eric Blake |
Subject: |
Re: const/volatile vs. -Werror |
Date: |
Sat, 08 Apr 2006 03:58:43 +0000 |
> > -int * volatile y;])],
> > +int * volatile y = (int *) 0;
>
> Why is that initialization needed? y is zero by default.
Actually, this code snippet occurs as the second argument to
AC_LANG_PROGRAM, meaning that they are local variables inside
main(). If y is not initialized, then it is indeterminate. But if the
compiler doesn't warn about the reference to an indeterminate y,
then I don't mind simplifying this patch by not changing that line
(the warning I was attempting to fix was that y was not being
referenced).
--
Eric Blake