summaryrefslogtreecommitdiff
blob: fcbfa7dfd357602ba97f0241bcc2d322d4149e05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
https://github.com/coin3d/soxt/pull/17
From: Brahmajit Das <brahmajit.xyz@gmail.com>
Date: Sat, 16 Sep 2023 07:32:47 +0000
Subject: [PATCH] Fix C++17 does not allow register storage class specifier

The register storage class was deprecated in C++14 and completely
removed in C++17. Hence, we cannot use it anymore and would result in a
build error.

Bug: https://bugs.gentoo.org/896234
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
--- a/src/Inventor/Xt/widgets/SoXtGLArea.cpp
+++ b/src/Inventor/Xt/widgets/SoXtGLArea.cpp
@@ -468,7 +468,7 @@ createColormap(
   } * cmapCache;
   static int cacheEntries = 0;
   static int cacheMalloced = 0;
-  register int i;
+  int i;
     
   assert(widget->soxtGLArea.visualInfo);
 
@@ -564,7 +564,7 @@ Realize(
   Mask * valueMask,
   XSetWindowAttributes * attributes)
 {
-  register SoXtGLAreaWidget glw = (SoXtGLAreaWidget) widget;
+  SoXtGLAreaWidget glw = (SoXtGLAreaWidget) widget;
   SoXtGLAreaCallbackStruct cb;
   Widget parentShell;
   Status status;
@@ -670,7 +670,7 @@ Destroy(
   Widget parentShell;
   Status status;
   int countReturn;
-  register int i;
+  int i;
 
   if (glw->soxtGLArea.myList && glw->soxtGLArea.attribList)
     XtFree((char *) glw->soxtGLArea.attribList);
-- 
2.42.0