summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-10-02 15:27:47 +0100
committerSadie Powell <sadie@witchery.services>2020-10-02 16:53:13 +0100
commit4ba871c631d5362cba1bf90c3fecc03d0f0bc484 (patch)
tree4bc44adc16e5a6bf4bc68fe195ec15d6bd2c2b7e
parentda08dd6d0e8d7c895eee42768a8cb9d80830de25 (diff)
Remove use of the deprecated register keyword.
Fixes a build error on C++17 compilers.
-rw-r--r--.github/workflows/ci-linux.yml2
-rw-r--r--src/hashcomp.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml
index 00c99561e..62e0cbb4e 100644
--- a/.github/workflows/ci-linux.yml
+++ b/.github/workflows/ci-linux.yml
@@ -48,4 +48,4 @@ jobs:
- g++
standard:
- c++98
- - c++14
+ - c++17
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp
index d88a23142..7eac1205a 100644
--- a/src/hashcomp.cpp
+++ b/src/hashcomp.cpp
@@ -63,7 +63,7 @@ int ci::ci_char_traits::compare(const char *str1, const char *str2, size_t n)
{
for (unsigned i = 0; i < n; ++i)
{
- register unsigned char c1 = case_map_upper[static_cast<unsigned char>(*str1)],
+ unsigned char c1 = case_map_upper[static_cast<unsigned char>(*str1)],
c2 = case_map_upper[static_cast<unsigned char>(*str2)];
if (c1 > c2)