]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Switch Helper Declaration to Not Force Inline
authorW. Felix Handte <w@felixhandte.com>
Thu, 30 Apr 2020 21:43:20 +0000 (17:43 -0400)
committerW. Felix Handte <w@felixhandte.com>
Mon, 4 May 2020 14:59:15 +0000 (10:59 -0400)
It was causing build issues in ANSI mode.

lib/common/zstd_internal.h

index 35fb3ee3f79ae405114b9e8aac2adecf7db8ad0a..57a6137e1540de4e46b9d529794f5dd025ace053 100644 (file)
@@ -62,7 +62,8 @@ extern "C" {
  * us statically check that at least one (string) argument was passed,
  * independent of the compilation flags.
  */
-HINT_INLINE UNUSED_ATTR void _force_has_format_string(const char *format, ...) {
+static INLINE_KEYWORD UNUSED_ATTR
+void _force_has_format_string(const char *format, ...) {
   (void)format;
 }