2
0
Эх сурвалжийг харах

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

Daniel-Constantin Mierla 11 жил өмнө
parent
commit
4cb7abe093

+ 2 - 2
lib/srdb1/db_row.c

@@ -39,7 +39,7 @@
 /*
 /*
  * Release memory used by row
  * Release memory used by row
  */
  */
-inline int db_free_row(db_row_t* _r)
+int db_free_row(db_row_t* _r)
 {
 {
 	int col;
 	int col;
 	db_val_t* _val;
 	db_val_t* _val;
@@ -108,7 +108,7 @@ inline int db_free_row(db_row_t* _r)
  * \param _row filled row
  * \param _row filled row
  * \return zero on success, negative on errors
  * \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);
 	int len = sizeof(db_val_t) * RES_COL_N(_res);
 	ROW_VALUES(_row) = (db_val_t*)pkg_malloc(len);
 	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
  * \param _r row that should be released
  * \return zero on success, negative on error
  * \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
  * \param _row filled row
  * \return zero on success, negative on errors
  * \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 */
 #endif /* DB1_ROW_H */