Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
audio/spectmorph: Remove 'register' keywords instead of having USE_ST…
…DCXX=c++17 Reported by: fallout
- Loading branch information
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
- fix compilation failure on 14: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] | ||
- see https://github.com/swesterfeld/spectmorph/issues/23 | ||
|
||
--- lib/smmath.hh.orig 2023-07-12 03:47:47 UTC | ||
+++ lib/smmath.hh | ||
@@ -431,7 +431,7 @@ double db_from_factor (double factor, double min_dB); | ||
|
||
#if defined (__i386__) && defined (__GNUC__) | ||
static inline int G_GNUC_CONST | ||
-sm_ftoi (register float f) | ||
+sm_ftoi (float f) | ||
{ | ||
int r; | ||
|
||
@@ -441,7 +441,7 @@ sm_ftoi (register float f) | ||
return r; | ||
} | ||
static inline int G_GNUC_CONST | ||
-sm_dtoi (register double f) | ||
+sm_dtoi (double f) | ||
{ | ||
int r; | ||
|