New warning in pg_dump

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема New warning in pg_dump
Дата
Msg-id 20040823155854.GD8990@dcc.uchile.cl
обсуждение исходный текст
Ответы Re: New warning in pg_dump  (Philip Warner <pjw@rhyme.com.au>)
Список pgsql-hackers
Hackers,

I'm seeing this:

gcc -O2 -fno-strict-aliasing -g -Wall -Wmissing-prototypes -Wmissing-declarations
-I/home/alvherre/CVS/pgsql/source/00orig/src/interfaces/libpq-I../../../src/include
-I/home/alvherre/CVS/pgsql/source/00orig/src/include-D_GNU_SOURCE  -DFRONTEND  -c -o pg_backup_db.o
/home/alvherre/CVS/pgsql/source/00orig/src/bin/pg_dump/pg_backup_db.c-MMD
 
/home/alvherre/CVS/pgsql/source/00orig/src/bin/pg_dump/pg_backup_db.c: In function `_isIdentChar':
/home/alvherre/CVS/pgsql/source/00orig/src/bin/pg_dump/pg_backup_db.c:874: warning: comparison is always true due to
limitedrange of data type
 
/home/alvherre/CVS/pgsql/source/00orig/src/bin/pg_dump/pg_backup_db.c: In function `_isDQChar':
/home/alvherre/CVS/pgsql/source/00orig/src/bin/pg_dump/pg_backup_db.c:891: warning: comparison is always true due to
limitedrange of data type
 

If I change _isIdentChar to be

static int _isIdentChar(unsigned char c)

I get instead

/home/alvherre/CVS/pgsql/source/00orig/src/bin/pg_dump/pg_backup_db.c: In function `_isIdentChar':
/home/alvherre/CVS/pgsql/source/00orig/src/bin/pg_dump/pg_backup_db.c:874: warning: comparison is always true due to
limitedrange of data type
 
/home/alvherre/CVS/pgsql/source/00orig/src/bin/pg_dump/pg_backup_db.c:874: warning: comparison is always false due to
limitedrange of data type
 

(yes, both lines), which is kind of strange.

This is

gcc (GCC) 3.4.1 (Mandrakelinux (Alpha 3.4.1-3mdk)

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"La fuerza no está en los medios físicos
sino que reside en una voluntad indomable" (Gandhi)



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE
Следующее
От: Gaetano Mendola
Дата:
Сообщение: Interactive docs