aboutsummaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2012-08-06 21:02:40 +0000
committerDimitry Andric <dim@FreeBSD.org>2012-08-06 21:02:40 +0000
commit3283f9d4f5cba3d01be36b968776b359900c031e (patch)
tree62c532aeb6dd2b82590b02068126c3fb30b81e84 /sbin
parent6aa4d618ca548af42cf133a550385d62637467dd (diff)
downloadsrc-3283f9d4f5cba3d01be36b968776b359900c031e.tar.gz
src-3283f9d4f5cba3d01be36b968776b359900c031e.zip
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
Notes
Notes: svn path=/head/; revision=239106
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ggate/shared/ggate.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ggate/shared/ggate.h b/sbin/ggate/shared/ggate.h
index 3e26253c360c..898efea6507e 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);