void-packages/srcpkgs/yabar/patches/gcc7.patch

23 lines
881 B
Diff

From 9779a5e04bd6e8cdc1c9fcf5d7ac31416af85a53 Mon Sep 17 00:00:00 2001
From: NBonaparte <98007b33@opayq.com>
Date: Wed, 28 Jun 2017 17:47:16 -0700
Subject: [PATCH] Fix GCC 7 inline error from #154
---
src/intern_blks/ya_intern.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intern_blks/ya_intern.c b/src/intern_blks/ya_intern.c
index 187e62d..2e6095f 100644
--- a/src/intern_blks/ya_intern.c
+++ b/src/intern_blks/ya_intern.c
@@ -116,7 +116,7 @@ int ya_fscanf(char* fpath, ya_block_t *blk, char *fmt, ...) {
return ret;
}
-inline void ya_setup_prefix_suffix(ya_block_t *blk, size_t * prflen, size_t *suflen, char **startstr) {
+__attribute__ ((gnu_inline)) inline void ya_setup_prefix_suffix(ya_block_t *blk, size_t * prflen, size_t *suflen, char **startstr) {
if(blk->internal->prefix) {
*prflen = strlen(blk->internal->prefix);
if(*prflen) {