diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-10-27 14:48:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-10-27 14:48:06 +0100 |
commit | 3529f1bf2739399905cd55b27c7609459bfc069f (patch) | |
tree | 030ac4ab6cc001de1876af06bc97f8d480c911f1 /media-libs/SoXt/files | |
parent | 0fcaac21e786bd7911b1e8f436cd885c5e2f6437 (diff) |
gentoo auto-resync : 27:10:2023 - 14:48:06
Diffstat (limited to 'media-libs/SoXt/files')
-rw-r--r-- | media-libs/SoXt/files/SoXt-1.4.0-drop-register-keyword.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/media-libs/SoXt/files/SoXt-1.4.0-drop-register-keyword.patch b/media-libs/SoXt/files/SoXt-1.4.0-drop-register-keyword.patch new file mode 100644 index 000000000000..fcbfa7dfd357 --- /dev/null +++ b/media-libs/SoXt/files/SoXt-1.4.0-drop-register-keyword.patch @@ -0,0 +1,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 + |