[gnome-commander: 1/2] Remove register specifier removed from C++17
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander: 1/2] Remove register specifier removed from C++17
- Date: Tue, 9 Mar 2021 22:29:28 +0000 (UTC)
commit 450df9a2153cbd009d4c19f6581ca4b3ba3d3933
Author: Mamoru TASAKA <mtasaka fedoraproject org>
Date: Thu Feb 25 23:17:56 2021 +0900
Remove register specifier removed from C++17
gcc11 defaults to -std=gnu++17, which warns:
```
/builddir/build/BUILD/GIT/gnome-commander/_BUILDDIR/../src/eggcellrendererkeys.cc:139:56: warning: ISO
C++17 does not allow 'register' storage class specifier [-Wregister]
/builddir/build/BUILD/GIT/gnome-commander/_BUILDDIR/../src/eggcellrendererkeys.cc:140:25: warning: ISO
C++17 does not allow 'register' storage class specifier [-Wregister]
/builddir/build/BUILD/GIT/gnome-commander/_BUILDDIR/../src/eggcellrendererkeys.cc:141:23: warning: ISO
C++17 does not allow 'register' storage class specifier [-Wregister]
/builddir/build/BUILD/GIT/gnome-commander/_BUILDDIR/../src/eggcellrendererkeys.cc:141:30: warning: ISO
C++17 does not allow 'register' storage class specifier [-Wregister]
/builddir/build/BUILD/GIT/gnome-commander/_BUILDDIR/../src/gnome-cmd-file-list.cc:390:25: warning: ISO
C++17 does not allow 'register' storage class specifier [-Wregister]
/builddir/build/BUILD/GIT/gnome-commander/_BUILDDIR/../src/gnome-cmd-file-list.cc:391:23: warning: ISO
C++17 does not allow 'register' storage class specifier [-Wregister]
/builddir/build/BUILD/GIT/gnome-commander/_BUILDDIR/../src/gnome-cmd-file-list.cc:391:30: warning: ISO
C++17 does not allow 'register' storage class specifier [-Wregister]
/builddir/build/BUILD/GIT/gnome-commander/_BUILDDIR/../src/gnome-cmd-file-list.cc:411:49: warning: ISO
C++17 does not allow 'register' storage class specifier [-Wregister]
```
Just remove these deprecated specifier.
src/eggcellrendererkeys.cc | 6 +++---
src/gnome-cmd-file-list.cc | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/eggcellrendererkeys.cc b/src/eggcellrendererkeys.cc
index 11137ebf..f38937e8 100644
--- a/src/eggcellrendererkeys.cc
+++ b/src/eggcellrendererkeys.cc
@@ -136,9 +136,9 @@ marshal_VOID__STRING_UINT_FLAGS_UINT (GClosure *closure,
int arg_3,
guint arg_4,
gpointer data2);
- register GMarshalFunc_VOID__STRING_UINT_FLAGS_UINT callback;
- register GCClosure *cc = (GCClosure*) closure;
- register gpointer data1, data2;
+ GMarshalFunc_VOID__STRING_UINT_FLAGS_UINT callback;
+ GCClosure *cc = (GCClosure*) closure;
+ gpointer data1, data2;
if (G_CCLOSURE_SWAP_DATA (closure))
{
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index d21578e2..333dd131 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -387,8 +387,8 @@ g_cclosure_marshal_VOID__POINTER_POINTER (GClosure *closure,
gpointer invocation_hint G_GNUC_UNUSED,
gpointer marshal_data)
{
- register GCClosure *cc = (GCClosure *) closure;
- register gpointer data1, data2;
+ GCClosure *cc = (GCClosure *) closure;
+ gpointer data1, data2;
g_return_if_fail (n_param_values == 3);
@@ -408,7 +408,7 @@ g_cclosure_marshal_VOID__POINTER_POINTER (GClosure *closure,
gpointer arg_2,
gpointer data2);
- register GMarshalFunc_VOID__POINTER_POINTER callback = (GMarshalFunc_VOID__POINTER_POINTER)
(marshal_data ? marshal_data : cc->callback);
+ GMarshalFunc_VOID__POINTER_POINTER callback = (GMarshalFunc_VOID__POINTER_POINTER) (marshal_data ?
marshal_data : cc->callback);
callback (data1,
g_value_get_pointer (param_values + 1),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]