Re: Make foo=null a warning by default.
| От | Fabien COELHO |
|---|---|
| Тема | Re: Make foo=null a warning by default. |
| Дата | |
| Msg-id | alpine.DEB.2.21.1807181604480.26741@lancre обсуждение исходный текст |
| Ответ на | Re: Make foo=null a warning by default. (David Fetter <david@fetter.org>) |
| Ответы |
Re: Make foo=null a warning by default.
|
| Список | pgsql-hackers |
> [...] Done.
All looks well, but I just noticed a warning:
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard
-Wno-format-truncation-O2 -I. -I. -I../../../../src/include -D_GNU_SOURCE -c -o guc.o guc.c
guc.c:4090:3: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
&transform_null_equals,
^
guc.c:4090:3: note: (near initialization for ‘ConfigureNamesEnum[16].variable’)
Too bad, gcc does not like an (enum*) there. Maybe cast to (int *), or
declare the variable as an int (which seems to be what is done for
others)?
--
Fabien.
В списке pgsql-hackers по дате отправления: