Re: pgsql-server: Fix TAS assembly stuff for Solaris/386.

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: pgsql-server: Fix TAS assembly stuff for Solaris/386.
Дата
Msg-id Pine.BSO.4.56.0409240448010.27660@leary.csoft.net
обсуждение исходный текст
Ответ на Re: pgsql-server: Fix TAS assembly stuff for Solaris/386.  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pgsql-server: Fix TAS assembly stuff for Solaris/386.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers

On Fri, 24 Sep 2004, Tom Lane wrote:

> > UINT64CONST produces these in a number of places:
> > "xlog.c", line 552: warning: constant promoted to unsigned long long
>
> This is pretty annoying, considering that the entire point of the
> UINT64CONST macro is to suppress such complaints.  Can you suggest an
> incantation that will shut this compiler up?

it likes either ##ULL or unadorned.  The problem is we're taking a
constant larger than long long and explicitly saying it's a long long.

> > Then there are a whole lot of code reachability warnings in these classes
> >  - statement not reached
> >  - end-of-loop code not reached
> >  - loop not entered at top
>
> I think most of these come from flex and/or bison code that we don't
> have a lot of control over.
>

Another significant amount is from switch statements written like this:

switch(i) {
    case 1:
        return 1;
        break;
}

Kris Jurka

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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: pginstaller - CVSROOT: Update address for CVS
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql-server: Fix TAS assembly stuff for Solaris/386.