[Lsb-messages] /var/www/bzr/lsb/devel/build_env r2306: fix inline function build for later gcc (bug 4159)

Mats Wichmann mats at linuxfoundation.org
Sat Apr 16 20:38:36 UTC 2016


------------------------------------------------------------
revno: 2306
committer: Mats Wichmann <mats at linuxfoundation.org>
branch nick: build_env
timestamp: Sat 2016-04-16 14:38:36 -0600
message:
  fix inline function build for later gcc (bug 4159)
modified:
  lsbdev-cc/lsbcc.c
  lsbdev-cc/lsbcpp.c
-------------- next part --------------
=== modified file 'lsbdev-cc/lsbcc.c'
--- a/lsbdev-cc/lsbcc.c	2015-03-30 15:13:41 +0000
+++ b/lsbdev-cc/lsbcc.c	2016-04-16 20:38:36 +0000
@@ -77,6 +77,9 @@
 
 #include "elf_utils.h"
 
+/* C99 rules: have to declare extern here to get inline from another file */
+extern inline int get_version_index(char* vername);
+
 /*
  * These are the categories of options that we are going to be grouping
  * together.

=== modified file 'lsbdev-cc/lsbcpp.c'
--- a/lsbdev-cc/lsbcpp.c	2014-07-25 17:33:26 +0000
+++ b/lsbdev-cc/lsbcpp.c	2016-04-16 20:38:36 +0000
@@ -38,6 +38,9 @@
 #include "lsbcc_libs.h"
 #include "lsbcc_argv.h"
 
+/* C99 rules: have to declare extern here to get inline from another file */
+extern inline int get_version_index(char* vername);
+
 /*
  * These are the categories of options that we are going to be grouping
  * together.  This list is a lot smaller for lsbcpp.



More information about the lsb-messages mailing list