소스 검색

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
tags/ggatessh-v1.0.0
dim 11 년 전
부모
커밋
e2c19f0934
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      shared/ggate.h

+ 2
- 2
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);


불러오는 중...
취소
저장