Explorar o código

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 %!s(int64=10) %!d(string=hai) anos
pai
achega
e3a8e57724
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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