trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: February 2020

Re: [trinity-devel] "register int" still needed?

From: "Michele Calgaro via trinity-devel" <trinity-devel@...>
Date: Fri, 14 Feb 2020 23:39:52 +0800
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

> The register also appears to be in the code along with types other than 'int'. For example:
>
> [2021/2181] Building CXX object ktalkd/ktalkd/CMakeFiles/ktalkd.dir/process.cpp.o In file included from
> ../ktalkd/ktalkd/process.cpp:64: ../ktalkd/ktalkd/table.h:66:23: warning: 'register' storage class specifier is
> deprecated and i ncompatible with C++17 [-Wdeprecated-register] void delete_entry(register TABLE_ENTRY *ptr);
>
> ==========
>
> [319/1276] Building CXX object arts/modules/synth/CMakeFiles/artsmodulessynth-shared.dir/synth_ osc_impl.cc.o In
> file included from ../arts/modules/synth/synth_osc_impl.cc:27: In file included from
> /opt/trinity/include/arts/gsl/gslsignal.h:23: /opt/trinity/include/arts/gsl/gslieee754.h:231:11: warning:
> 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] gsl_ftoi
> (register float v) ^~~~~~~~~ /opt/trinity/include/arts/gsl/gslieee754.h:236:11: warning: 'register' storage class
> specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] gsl_dtoi (register double v) ^~~~~~~~~
> In file included from ../arts/modules/synth/synth_osc_impl.cc:27: /opt/trinity/include/arts/gsl/gslsignal.h:116:43:
> warning: 'register' storage class specifier i s deprecated and incompatible with C++17 [-Wdeprecated-register]
> static inline double    gsl_approx_atan1          (register double x) G_GNUC_CONST; ^~~~~~~~~ ==================
>
> [290/2742] Building CXX object libtdepim/CMakeFiles/tdepim-shared.dir/kxface.cpp.o In file included from
> ../libtdepim/kxface.cpp:26: ../libtdepim/kxface.h:568:19: warning: 'register' storage class specifier is deprecated
> and inc ompatible with C++17 [-Wdeprecated-register] int  BigPop(register const Prob *p); ^~~~~~~~~ 1 warning
> generated.
>
>
> Probably such can be removed as well.
>
> Cheers
>

Uhm... I removed "register" with whatever type I found. Perhaps I may have missed a few here and there?? I will have
to double check then
Cheers
  Michele
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEjhl1z5vbYB3YbFTiKnW3yore1c8FAl5Gv0gACgkQKnW3yore
1c9E8Q/+O0REpn0ddAJPg39aMnv0WYe/DxjAnd5730MNp01e+O0ILeUBsxqF4SMe
djZgi7HxoTOT2Pv8khAfugZKWOnYDa1/vogOTwUGJpN2IxsWxhwuhrt9KprpKZDg
W07JsSdSehaVtVtEww+q7NwWfdi/u2uUhUMIJSVHPnPBed6JZU3afWO+tjzsCHhU
qTl7pDDIWiBKb56cHkXIBVraabnk6X0vjapKeLPUHettZEwP0RaNP+CzUMOcX2HL
SlaAwtdoQEilygzx8QebnORVs6SoyGOSdfd3kyFXD4t6ru+9JlVjrUJ5g7GJU8fc
Ps6A7rCEBldSsCHWyl5hC7ZHU+Wjs48dBi739/YJB8z7G936tHRq0mokIfGg1aPY
LhglOwd3M+5Q/i53sf8qAn4QhVUpwdIT42dIUphXe8dz+DcvInxYcbXuF1xp5p5E
vWw+y2MXBblyaS/r/FNGiMAdY2z+0RpFGF+ygtDgMvq/QcMKnz6in/U+J+AWXmae
MMw/RBhaxNZLKHLjgUZD+baBFWEmdjt3A6y41TX0Gup+ja9wZi2EY2xBtnETQCx9
TqRm1kB+UfGFBL6PHZ8lil5ykx1TOtIc8meB2qaqzNl0WlYB6u2HahC5cjGP6krX
cY4Lm+H225rWUUdf5+y+0KO37q4B16HhEiKe7xzPNzhauc8tPrg=
=3Th+
-----END PGP SIGNATURE-----