Skip to content

Commit

Permalink
Merge pull request #487 from bnaras/prototype_fix
Browse files Browse the repository at this point in the history
Prototype fixes for pardiso
  • Loading branch information
vineetbansal committed Jan 23, 2023
2 parents 5dab81d + 82ca916 commit e3e338a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lin_sys/direct/pardiso/pardiso_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void pardiso(void**, // pt
c_int* // error
);
c_int mkl_set_interface_layer(c_int);
c_int mkl_get_max_threads();
c_int mkl_get_max_threads(void);

// Free LDL Factorization structure
void free_linsys_solver_pardiso(pardiso_solver *s) {
Expand Down
6 changes: 3 additions & 3 deletions lin_sys/direct/pardiso/pardiso_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ typedef void (*pardiso_t)(void**, const c_int*, const c_int*, const c_int*,
const c_int*, c_int*, const c_int*, c_float*,
c_float*, c_int*);
typedef int (*mkl_set_ifl_t)(int);
typedef int (*mkl_get_mt_t)();
typedef int (*mkl_get_mt_t)(void);


// Handlers are static variables
Expand Down Expand Up @@ -55,7 +55,7 @@ c_int mkl_set_interface_layer(c_int code) {
return (c_int)func_mkl_set_interface_layer((int)code);
}

c_int mkl_get_max_threads() {
c_int mkl_get_max_threads(void) {
return (c_int)func_mkl_get_max_threads();
}

Expand Down Expand Up @@ -87,7 +87,7 @@ c_int lh_load_pardiso(const char* libname) {
return 0;
}

c_int lh_unload_pardiso() {
c_int lh_unload_pardiso(void) {

if (Pardiso_handle == OSQP_NULL) return 0;

Expand Down
2 changes: 1 addition & 1 deletion lin_sys/direct/pardiso/pardiso_loader.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ c_int lh_load_pardiso(const char* libname);
* Unloads the loaded Pardiso shared library.
* @return Zero on success, nonzero on failure.
*/
c_int lh_unload_pardiso();
c_int lh_unload_pardiso(void);


#ifdef __cplusplus
Expand Down

0 comments on commit e3e338a

Please sign in to comment.