svn commit: r239525 - stable/9/sbin/ggate/shared
Dimitry Andric
dim at FreeBSD.org
Tue Aug 21 19:26:50 UTC 2012
Author: dim
Date: Tue Aug 21 19:26:49 2012
New Revision: 239525
URL: http://svn.freebsd.org/changeset/base/239525
Log:
MFC r239106:
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
Modified:
stable/9/sbin/ggate/shared/ggate.h
Directory Properties:
stable/9/sbin/ (props changed)
Modified: stable/9/sbin/ggate/shared/ggate.h
==============================================================================
--- stable/9/sbin/ggate/shared/ggate.h Tue Aug 21 19:24:39 2012 (r239524)
+++ stable/9/sbin/ggate/shared/ggate.h Tue Aug 21 19:26:49 2012 (r239525)
@@ -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);
More information about the svn-src-stable-9
mailing list