Warning in new GIN code

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Warning in new GIN code
Дата
Msg-id 25947.1390502480@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: Warning in new GIN code  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Список pgsql-hackers
The rather ancient gcc on my HPUX box is complaining thusly about HEAD:

ginbtree.c: In function `ginPlaceToPage':
ginbtree.c:602: warning: control reaches end of non-void function

I would imagine this would happen on any compiler that doesn't recognize
the hint about elog(ERROR) not returning.  Could we stick a dummy return
at the end?
}else
+    {    elog(ERROR, "unknown return code from GIN placeToPage method: %d", rc);
+        return false;  /* keep compiler quiet */
+    }
}
        regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Case sensitive mode in windows build option
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Add CREATE support to event triggers