tags 778109 +patch
thanks
GCC5 defaults to the C99 standard, which changes inline function semantics.
This patch fixes the FTBFS by declaring the print_error function explicitly
extern, since it's called from multiple source files.
--- s51dude-0.3.1.orig/s51dude.c
+++ s51dude-0.3.1/s51dude.c
@@ -72,7 +72,7 @@ void print_if_verbose (char *msg)
if (verbose_flag) fprintf(stderr,"%s\n",msg);
}
-inline void print_error(char *msg)
+extern inline void print_error(char *msg)
{
fprintf(stderr,"%s\n",msg);
}
--- s51dude-0.3.1.orig/s51dude.h
+++ s51dude-0.3.1/s51dude.h
@@ -153,7 +153,7 @@ void print_params(void);
void check_open_file(void);
-inline void print_error(char *msg);
+extern inline void print_error(char *msg);
int usbtiny_open (void);
--
Brett Johnson <[email protected]>
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]