瀏覽代碼

core: parser - remove inline for parse_param()

- it gets recent compiler warnings when is an extern object
- reported by Victor Seva, GH#286
Daniel-Constantin Mierla 10 年之前
父節點
當前提交
e3a8e57724
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      parser/parse_param.c
  2. 1 1
      parser/parse_param.h

+ 1 - 1
parser/parse_param.c

@@ -534,7 +534,7 @@ error:
  * 	0: success, but expect a next paramter
  * 	1: success and exepect no more parameters
  */
-inline int parse_param(str *_s, pclass_t _c, param_hooks_t *_h, param_t *t)
+int parse_param(str *_s, pclass_t _c, param_hooks_t *_h, param_t *t)
 {
 	return parse_param2(_s, _c, _h, t, ';');
 }

+ 1 - 1
parser/parse_param.h

@@ -143,7 +143,7 @@ typedef union param_hooks {
  * 	0: success, but expect a next paramter
  * 	1: success and exepect no more parameters
  */
-extern inline int parse_param(str *_s, pclass_t _c, param_hooks_t *_h, param_t *t);
+extern int parse_param(str *_s, pclass_t _c, param_hooks_t *_h, param_t *t);
 
 
 /*! \brief