Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
e6ae4098
Commit
e6ae4098
authored
Dec 02, 2008
by
Thomas Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replaced mpd_noreturn by G_GNUC_NORETURN
We want to remove gcc.h eventually. This takes care of all the G_GNUC_NORETURN macros.
parent
c252143d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
log.c
src/log.c
+1
-1
log.h
src/log.h
+2
-1
state_file.c
src/state_file.c
+1
-1
state_file.h
src/state_file.h
+2
-2
No files found.
src/log.c
View file @
e6ae4098
...
@@ -182,7 +182,7 @@ log_func(DEBUG, G_LOG_LEVEL_DEBUG)
...
@@ -182,7 +182,7 @@ log_func(DEBUG, G_LOG_LEVEL_DEBUG)
#undef log_func
#undef log_func
mpd_printf
mpd_noreturn
void
FATAL
(
const
char
*
fmt
,
...)
mpd_printf
G_GNUC_NORETURN
void
FATAL
(
const
char
*
fmt
,
...)
{
{
va_list
args
;
va_list
args
;
va_start
(
args
,
fmt
);
va_start
(
args
,
fmt
);
...
...
src/log.h
View file @
e6ae4098
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
#include "gcc.h"
#include "gcc.h"
#include <glib.h>
#include <stdbool.h>
#include <stdbool.h>
mpd_printf
void
ERROR
(
const
char
*
fmt
,
...);
mpd_printf
void
ERROR
(
const
char
*
fmt
,
...);
...
@@ -28,7 +29,7 @@ mpd_printf void LOG(const char *fmt, ...);
...
@@ -28,7 +29,7 @@ mpd_printf void LOG(const char *fmt, ...);
mpd_printf
void
SECURE
(
const
char
*
fmt
,
...);
mpd_printf
void
SECURE
(
const
char
*
fmt
,
...);
mpd_printf
void
DEBUG
(
const
char
*
fmt
,
...);
mpd_printf
void
DEBUG
(
const
char
*
fmt
,
...);
mpd_printf
void
WARNING
(
const
char
*
fmt
,
...);
mpd_printf
void
WARNING
(
const
char
*
fmt
,
...);
mpd_printf
mpd_noreturn
void
FATAL
(
const
char
*
fmt
,
...);
mpd_printf
G_GNUC_NORETURN
void
FATAL
(
const
char
*
fmt
,
...);
void
initLog
(
bool
verbose
);
void
initLog
(
bool
verbose
);
...
...
src/state_file.c
View file @
e6ae4098
...
@@ -99,7 +99,7 @@ void read_state_file(void)
...
@@ -99,7 +99,7 @@ void read_state_file(void)
while
(
fclose
(
fp
)
&&
errno
==
EINTR
)
/* nothing */
;
while
(
fclose
(
fp
)
&&
errno
==
EINTR
)
/* nothing */
;
}
}
void
mpd_noreturn
state_file_fatal
(
void
)
void
G_GNUC_NORETURN
state_file_fatal
(
void
)
{
{
FATAL
(
"error parsing state file
\"
%s
\"\n
"
,
sfpath
);
FATAL
(
"error parsing state file
\"
%s
\"\n
"
,
sfpath
);
}
}
...
...
src/state_file.h
View file @
e6ae4098
...
@@ -19,10 +19,10 @@
...
@@ -19,10 +19,10 @@
#ifndef MPD_STATE_FILE_H
#ifndef MPD_STATE_FILE_H
#define MPD_STATE_FILE_H
#define MPD_STATE_FILE_H
#include
"gcc.h"
#include
<glib.h>
void
write_state_file
(
void
);
void
write_state_file
(
void
);
void
read_state_file
(
void
);
void
read_state_file
(
void
);
void
mpd_noreturn
state_file_fatal
(
void
);
void
G_GNUC_NORETURN
state_file_fatal
(
void
);
#endif
/* STATE_FILE_H */
#endif
/* STATE_FILE_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment