浏览代码

srdb1: get rid of llvm warnings related to extern inline definitions

Daniel-Constantin Mierla 11 年之前
父节点
当前提交
4cb7abe093
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      lib/srdb1/db_row.c
  2. 2 2
      lib/srdb1/db_row.h

+ 2 - 2
lib/srdb1/db_row.c

@@ -39,7 +39,7 @@
 /*
  * Release memory used by row
  */
-inline int db_free_row(db_row_t* _r)
+int db_free_row(db_row_t* _r)
 {
 	int col;
 	db_val_t* _val;
@@ -108,7 +108,7 @@ inline int db_free_row(db_row_t* _r)
  * \param _row filled row
  * \return zero on success, negative on errors
  */
-inline int db_allocate_row(const db1_res_t* _res, db_row_t* _row)
+int db_allocate_row(const db1_res_t* _res, db_row_t* _row)
 {
 	int len = sizeof(db_val_t) * RES_COL_N(_res);
 	ROW_VALUES(_row) = (db_val_t*)pkg_malloc(len);

+ 2 - 2
lib/srdb1/db_row.h

@@ -62,7 +62,7 @@ typedef struct db_row {
  * \param _r row that should be released
  * \return zero on success, negative on error
  */
-extern inline int db_free_row(db_row_t* _r);
+int db_free_row(db_row_t* _r);
 
 
 /**
@@ -71,6 +71,6 @@ extern inline int db_free_row(db_row_t* _r);
  * \param _row filled row
  * \return zero on success, negative on errors
  */
-extern inline int db_allocate_row(const db1_res_t* _res, db_row_t* _row);
+int db_allocate_row(const db1_res_t* _res, db_row_t* _row);
 
 #endif /* DB1_ROW_H */