GNOME Bugzilla – Bug 730293
clang++-3.4: error: 'register' storage class specifier is deprecated
Last modified: 2014-06-28 17:36:27 UTC
echo '#include <glib.h>'|clang++ -c $(pkg-config --cflags glib-2.0) -Werror -std=c++11 -x c++ - In file included from <stdin>:1: In file included from /usr/include/glib-2.0/glib.h:56: In file included from /usr/include/glib-2.0/glib/giochannel.h:36: In file included from /usr/include/glib-2.0/glib/gstring.h:37: /usr/include/glib-2.0/glib/gutils.h:321:3: error: 'register' storage class specifier is deprecated [-Werror,-Wdeprecated-register] register guint n_bits = 0; ^~~~~~~~~ 1 error generated. Fedora 20 x86_64 glib2-devel-2.38.2-2.fc20.x86_64 clang-3.4-6.fc20.x86_64
Created attachment 277140 [details] [review] all: remove use of 'register' keyword We should have done this a decade ago... Does anyone have any argument against this? In particular, it seems a bit strange to do it to pcre considering this is a copy-paste lib, more or less...
Comment on attachment 277140 [details] [review] all: remove use of 'register' keyword yay > Does anyone have any argument against this? In particular, it seems a > bit strange to do it to pcre considering this is a copy-paste lib, more > or less... we appear to already be making lots of changes to the internal copy of pcre. eg: https://git.gnome.org/browse/glib/commit/?id=706b72db
Attachment 277140 [details] pushed as dce8876 - all: remove use of 'register' keyword