diff options
author | Jeroen Roovers <jer@gentoo.org> | 2018-07-07 09:49:23 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2018-07-07 09:49:39 +0200 |
commit | 4a6467112e7e14f9b3ea244a26c6b6fb012312e3 (patch) | |
tree | 482db81204ba3ab4d6322f9c0c421d7b51bfd921 /app-text/pinfo/files | |
parent | net-analyzer/zabbix: Remove old (diff) | |
download | gentoo-4a6467112e7e14f9b3ea244a26c6b6fb012312e3.tar.gz gentoo-4a6467112e7e14f9b3ea244a26c6b6fb012312e3.tar.bz2 gentoo-4a6467112e7e14f9b3ea244a26c6b6fb012312e3.zip |
app-text/pinfo: Fix compile failure with GCC 7 / -Os.
Package-Manager: Portage-2.3.41, Repoman-2.3.9
Diffstat (limited to 'app-text/pinfo/files')
-rw-r--r-- | app-text/pinfo/files/pinfo-0.6.10-gcc-7-inline.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/app-text/pinfo/files/pinfo-0.6.10-gcc-7-inline.patch b/app-text/pinfo/files/pinfo-0.6.10-gcc-7-inline.patch new file mode 100644 index 000000000000..d73ad947c7df --- /dev/null +++ b/app-text/pinfo/files/pinfo-0.6.10-gcc-7-inline.patch @@ -0,0 +1,42 @@ +--- a/src/initializelinks.c ++++ b/src/initializelinks.c +@@ -75,7 +75,7 @@ + * checks if an item belongs to tag table. returns 1 on success and 0 on + * failure. It should be optimised... + */ +-inline int ++int + exists_in_tag_table(char *item) + { + if (gettagtablepos(item) != -1) +--- a/src/filehandling_functions.c ++++ b/src/filehandling_functions.c +@@ -554,7 +554,7 @@ + return 1; + } + +-inline void ++void + buildcommand(char *dest, char *command, char *filename, const char *tmpfilename) + { + strcpy(dest, command); +@@ -564,7 +564,7 @@ + strcat(dest, tmpfilename); + } + +-inline void ++void + builddircommand(char *dest, char *command, char *filename, const char *tmpfilename) + { + strcpy(dest, command); +--- a/src/utils.c ++++ b/src/utils.c +@@ -193,7 +193,7 @@ + return value; + } + +-inline void ++void + initlocale() + { + #ifdef ___DEBUG___ |