add __attribute__((noreturn)) to suppress a waring - Mailing list pgsql-hackers

From Itagaki Takahiro
Subject add __attribute__((noreturn)) to suppress a waring
Date
Msg-id AANLkTikvi3m7RKOtHP0ctSdspSfmc-75fmWv79GYLM57@mail.gmail.com
Whole thread Raw
Responses Re: add __attribute__((noreturn)) to suppress a waring  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
I found the following warning with Fedora 14 / gcc 4.5.1.
----
pg_backup_archiver.c: In function ‘_discoverArchiveFormat’:
pg_backup_archiver.c:1736:11: warning: ‘fh’ may be used uninitialized
in this function
----
To suppress it, I'm thinking to add noreturn to die_horribly().
Any objections?  Another solution might be adding a dummy assignment
after calls of die_horribly().

--
Itagaki Takahiro

Attachment

pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: ALTER TABLE ... ADD FOREIGN KEY ... NOT ENFORCED
Next
From: "Kevin Grittner"
Date:
Subject: SSI, simplified