Remove 'register' storage class in clFFT
authorErik Lindahl <erik.lindahl@gmail.com>
Wed, 3 Jun 2020 15:05:18 +0000 (17:05 +0200)
committerPaul Bauer <paul.bauer.q@gmail.com>
Wed, 3 Jun 2020 16:59:20 +0000 (16:59 +0000)
Required for compatibility with C++17.

src/external/clFFT/README.Gromacs
src/external/clFFT/src/statTimer/statisticalTimer.CPU.cpp
src/external/clFFT/src/statTimer/statisticalTimer.GPU.cpp

index f15657b9807bca373c02a0f1e98987fcadf6d5c4..6063cb3573d84cf77425d3d482920a1e5391d5d8 100644 (file)
@@ -30,3 +30,7 @@ substituting the version number placeholders with version 2.14.0
 
 To compile everything as C++ the src/library/md5sum.c is renamed to cpp and
 the extern "C" is removed from src/library/fft_binary_lookup.cpp.
+
+To be compatible with ISO C++17, we have removed the "register" storage
+class in src/statTimer/statisticalTimer.CPU.cpp and
+src/statTimer/statisticalTimer.GPU.cpp
index 4e3c8c2edeeea9d558e2af5161335839fadeafeb..a5a9ed72a4b4a2d23c7ba923ac8d9a859f148e02 100644 (file)
@@ -41,7 +41,7 @@ std::basic_string<TCHAR> commatize (T number)
 {
        static TCHAR scratch [8*sizeof(T)];
 
-       register TCHAR * ptr = scratch + countOf( scratch );
+       TCHAR * ptr = scratch + countOf( scratch );
        *(--ptr) = 0;
 
        for (int digits = 3; ; )
index 403178ef358dc50e6320e94bc4ccf027874336b0..822cd401828bd9a282bf43b0d14bf0b11b3ddc92 100644 (file)
@@ -33,7 +33,7 @@ std::basic_string<TCHAR> commatize (T number)
 {
        static TCHAR scratch [8*sizeof(T)];
 
-       register TCHAR * ptr = scratch + countOf( scratch );
+       TCHAR * ptr = scratch + countOf( scratch );
        *(--ptr) = 0;
 
        for (int digits = 3; ; )