Skip to content

Commit 0e2cf7a

Browse files
Merge pull request #644 from E3SM-Project/jayeshkrishna/rm_register_bget
Remove the register keyword that is no longer supported by C++ (the keyword is not supported >= C++17)
2 parents 346b2ab + eab76bc commit 0e2cf7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clib/bget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ void brel(void *buf)
10321032
released, since it's negative to indicate that the buffer is
10331033
allocated. */
10341034

1035-
register bufsize size = b->bh.bsize;
1035+
bufsize size = b->bh.bsize;
10361036

10371037
/* Make the previous buffer the one we're working on. */
10381038
assert(BH((char *) b - b->bh.prevfree)->bsize == b->bh.prevfree);

0 commit comments

Comments
 (0)