[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#778116: shell-fm: ftbfs with GCC-5



tags 778116 +patch
thanks

gcc5 implements C99 standard by default, which defaults "inline" functions
to be external, unless otherwise specified. Fixed by specifying "static inline" for
"scale" function, which is not externally linkable.

--- shell-fm-0.7+git20100414.orig/source/play.c
+++ shell-fm-0.7+git20100414/source/play.c
@@ -79,7 +79,7 @@ struct stream {
 #ifndef EXTERN_ONLY
 static enum mad_flow input(void *, struct mad_stream *);
 static enum mad_flow output(void *, const struct mad_header *, struct mad_pcm *);
-inline signed scale(mad_fixed_t);
+static inline signed scale(mad_fixed_t);
 static int timed_read(int, unsigned char *, int, int);
 #endif
 
@@ -535,7 +535,7 @@ static enum mad_flow output(
 }
 #endif
 
-inline signed scale(register mad_fixed_t sample) {
+static inline signed scale(register mad_fixed_t sample) {
     sample += (1L << (MAD_F_FRACBITS - 16));
    
     if(sample >= MAD_F_ONE)

-- 
Brett Johnson <brett@hp.com>
"Rudeness is the weak man's imitation of strength."
  ~~ Eric Hoffer


Reply to: