From a5bc89102e790d38d23a0a220ee2d42baee647a1 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Mon, 6 Nov 2017 22:45:32 -0600 Subject: ALL: Remove obsolete register keyword The register keyword was deprecated from the C++11 standard, , and removed from the C++17 standard, , so cannot exist in a well-formed C++17 program. It has never done anything in GCC and because of the way it is specified in the standard, it is “as meaningful as whitespace” . The one remaining use of the register keyword is in the DS backend, where it is used to create a local register variable using the non-standard GCC Extended Asm feature. Closes gh-1079. --- audio/rate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio') diff --git a/audio/rate.h b/audio/rate.h index 8c8b726c72..cbfaf2c12b 100644 --- a/audio/rate.h +++ b/audio/rate.h @@ -46,7 +46,7 @@ enum { }; static inline void clampedAdd(int16& a, int b) { - register int val; + int val; #ifdef OUTPUT_UNSIGNED_AUDIO val = (a ^ 0x8000) + b; #else -- cgit v1.2.3