diff options
author | dim <dim@FreeBSD.org> | 2012-08-06 21:02:40 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-08-06 21:02:40 +0000 |
commit | f55a63866ddd5a5540bbca18254bfd482042ac6e (patch) | |
tree | 62c532aeb6dd2b82590b02068126c3fb30b81e84 /sbin/ggate | |
parent | bfd2c5fd43d74735eb0b6328171adf065fb34158 (diff) | |
download | FreeBSD-src-f55a63866ddd5a5540bbca18254bfd482042ac6e.zip FreeBSD-src-f55a63866ddd5a5540bbca18254bfd482042ac6e.tar.gz |
Make sure the compiler knows g_gate_xvlog() and g_gate_xlog() do not
return. This silences a warning from clang 3.2 about uninitialized use
of the variable 'mediasize' in sbin/ggate/shared/ggate.c.
Reviewed by: pjd
MFC after: 1 week
Diffstat (limited to 'sbin/ggate')
-rw-r--r-- | sbin/ggate/shared/ggate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ggate/shared/ggate.h b/sbin/ggate/shared/ggate.h index 3e26253..898efea 100644 --- a/sbin/ggate/shared/ggate.h +++ b/sbin/ggate/shared/ggate.h @@ -95,8 +95,8 @@ struct g_gate_hdr { void g_gate_vlog(int priority, const char *message, va_list ap); void g_gate_log(int priority, const char *message, ...); -void g_gate_xvlog(const char *message, va_list ap); -void g_gate_xlog(const char *message, ...); +void g_gate_xvlog(const char *message, va_list ap) __dead2; +void g_gate_xlog(const char *message, ...) __dead2; off_t g_gate_mediasize(int fd); unsigned g_gate_sectorsize(int fd); void g_gate_open_device(void); |