Skip to content

Commit

Permalink
remove use of register storage class specifier
Browse files Browse the repository at this point in the history
- removed in C++17
  • Loading branch information
svigerske committed Apr 4, 2024
1 parent 640e1cc commit 0da1351
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions CoinUtils/src/CoinOslC.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,30 +34,30 @@
extern "C" {
#endif

int c_ekkbtrn(register const EKKfactinfo *fact,
int c_ekkbtrn(const EKKfactinfo *fact,
double *dwork1,
int *mpt, int first_nonzero);
int c_ekkbtrn_ipivrw(register const EKKfactinfo *fact,
int c_ekkbtrn_ipivrw(const EKKfactinfo *fact,
double *dwork1,
int *mpt, int ipivrw, int *spare);

int c_ekketsj(register /*const*/ EKKfactinfo *fact,
int c_ekketsj(/*const*/ EKKfactinfo *fact,
double *dwork1,
int *mpt2, double dalpha, int orig_nincol,
int npivot, int *nuspikp,
const int ipivrw, int *spare);
int c_ekkftrn(register const EKKfactinfo *fact,
int c_ekkftrn(const EKKfactinfo *fact,
double *dwork1,
double *dpermu, int *mpt, int numberNonZero);

int c_ekkftrn_ft(register EKKfactinfo *fact,
int c_ekkftrn_ft(EKKfactinfo *fact,
double *dwork1, int *mpt, int *nincolp);
void c_ekkftrn2(register EKKfactinfo *fact, double *dwork1,
void c_ekkftrn2(EKKfactinfo *fact, double *dwork1,
double *dpermu1, int *mpt1, int *nincolp,
double *dwork1_ft, int *mpt_ft, int *nincolp_ft);

int c_ekklfct(register EKKfactinfo *fact);
int c_ekkslcf(register const EKKfactinfo *fact);
int c_ekklfct(EKKfactinfo *fact);
int c_ekkslcf(const EKKfactinfo *fact);
inline void c_ekkscpy(int n, const int *marr1, int *marr2)
{
CoinMemcpyN(marr1, n, marr2);
Expand Down
4 changes: 2 additions & 2 deletions CoinUtils/src/CoinOslFactorization2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
extern int ets_count;
extern int ets_check;
#endif
#define COIN_REGISTER register
#define COIN_REGISTER
#define COIN_REGISTER2
#define COIN_REGISTER3 register
#define COIN_REGISTER3
#ifdef COIN_USE_RESTRICT
#define COIN_RESTRICT2 __restrict
#else
Expand Down

0 comments on commit 0da1351

Please sign in to comment.