瀏覽代碼

Pacify C compiler

This eliminates a warning about a missing return
statement. The code was correct though, because
hex2num() is guarded by is_hexdigit().
tags/1.0
Timo Röhling 11 年之前
父節點
當前提交
37c6dc7b0d
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      postsrsd.c

+ 1
- 0
postsrsd.c 查看文件

@@ -85,6 +85,7 @@ static char hex2num (char c)
85 85
   if (c >= '0' && c <= '9') return c - '0';
86 86
   if (c >= 'a' && c <= 'f') return c - 'a' + 10;
87 87
   if (c >= 'A' && c <= 'F') return c - 'A' + 10;
88
+  return 0;
88 89
 }
89 90
 
90 91
 static char num2hex (char c)

Loading…
取消
儲存