compiler warnings with GCC 4.5

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема compiler warnings with GCC 4.5
Дата
Msg-id 1263745178.11833.10.camel@vanquo.pezone.net
обсуждение исходный текст
Ответы Re: compiler warnings with GCC 4.5  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Only these few:

read.c: In function ‘nodeRead’:
read.c:370:3: warning: case value ‘1000001’ not in enumerated type
‘NodeTag’
read.c:300:3: warning: case value ‘1000002’ not in enumerated type
‘NodeTag’
read.c:294:3: warning: case value ‘1000003’ not in enumerated type
‘NodeTag’
read.c:374:3: warning: case value ‘1000004’ not in enumerated type
‘NodeTag’

This can be fixed by changing
   switch (type)

to
   switch ((int) type)


preproc.y: In function ‘base_yyparse’:
preproc.y:8043:19: warning: operation on ‘yyval.str’ may be undefined

The code in question looks like

|  SETOF SimpleTypename opt_array_bounds   {   $$ = $$ = cat_str(3, make_str("setof"), $2, $3.str); }       ^^^^^^^

It is converted from the main grammar, so it looks like a bug in the
conversion routine.



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Clearing global statistics
Следующее
От: Tom Lane
Дата:
Сообщение: Re: compiler warnings with GCC 4.5