Eliminate various issues brought up by scan-build.
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4152 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
5cda45d5ec
commit
16cdbb244c
8 changed files with 10 additions and 14 deletions
|
|
@ -24,7 +24,7 @@ void usage()
|
|||
exit(1);
|
||||
}
|
||||
|
||||
void fatal(char *s)
|
||||
void __attribute__((noreturn)) fatal(char *s)
|
||||
{
|
||||
perror(s);
|
||||
exit(2);
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ FILE *infile, *outfile;
|
|||
#define BITSIZE 32
|
||||
#endif
|
||||
|
||||
static __inline__ void Error(char *message)
|
||||
static __inline__ __attribute__((noreturn)) void Error(char *message)
|
||||
{
|
||||
Fprintf((stderr, "\n%s\n", message));
|
||||
exit(EXIT_FAILURE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue