gcc 4.6 -Wunused-but-set-variable

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема gcc 4.6 -Wunused-but-set-variable
Дата
Msg-id 1308169407.30599.17.camel@vanquo.pezone.net
обсуждение исходный текст
Ответы Re: gcc 4.6 -Wunused-but-set-variable  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Another set of new gcc 4.6 warnings:

readfuncs.c: In function ‘_readCaseWhen’:
readfuncs.c:875:567: warning: variable ‘token’ set but not used [-Wunused-but-set-variable]
readfuncs.c: In function ‘_readFromExpr’:
readfuncs.c:1159:568: warning: variable ‘token’ set but not used [-Wunused-but-set-variable]

read.c: In function ‘nodeTokenType’:
read.c:222:8: warning: variable ‘val’ set but not used [-Wunused-but-set-variable]

I couldn't see a way good way of programming around this (perhaps in the
second case, but it would get uselessly ugly), so perhaps just marking
the variables as potentially unused would be appropriate?  See patch.


Вложения

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

Предыдущее
От: Jaime Casanova
Дата:
Сообщение: Re: FK NOT VALID can't be deferrable?
Следующее
От: Dan Ports
Дата:
Сообщение: patch: update README-SSI