Project

General

Profile

Actions

Bug #3369

closed

Compilation fails since edit 1085 ("fbcd414")

Added by Volker Schmidt over 9 years ago. Updated over 9 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2015-12-02
Due date:
% Done:

100%

Estimated time:
Found in version:
4.1 git-latest
Affected Versions:

Description

Since edit 1085 ("fbcd414") compilation with gcc 5.2.0 fails on tcp.c with these messages:

src/tcp.c: In function 'tcp_server_create':
src/tcp.c:888:43: error: passing argument 2 of 'tcp_server_create_new' makes pointer from integer without a cast [-Werror=int-conversion]
     ts =  tcp_server_create_new(bindaddr, port, ops, opaque);
                                           ^
src/tcp.c:741:14: note: expected 'const char *' but argument is of type 'int'
 static void *tcp_server_create_new
              ^
src/tcp.c:888:49: error: passing argument 3 of 'tcp_server_create_new' from incompatible pointer type [-Werror=incompatible-pointer-types]
     ts =  tcp_server_create_new(bindaddr, port, ops, opaque);
                                                 ^
src/tcp.c:741:14: note: expected 'const char *' but argument is of type 'tcp_server_ops_t * {aka struct tcp_server_ops *}'
 static void *tcp_server_create_new
              ^
src/tcp.c:888:54: error: passing argument 4 of 'tcp_server_create_new' makes integer from pointer without a cast [-Werror=int-conversion]
     ts =  tcp_server_create_new(bindaddr, port, ops, opaque);
                                                      ^
src/tcp.c:741:14: note: expected 'int' but argument is of type 'void *'
 static void *tcp_server_create_new
              ^
src/tcp.c:888:11: error: too few arguments to function 'tcp_server_create_new'
     ts =  tcp_server_create_new(bindaddr, port, ops, opaque);
           ^
src/tcp.c:741:14: note: declared here
 static void *tcp_server_create_new
              ^
cc1: all warnings being treated as errors
Makefile:568: recipe for target '/home/volker/builds/tvheadend-git/src/tvheadend/build.linux/src/tcp.o' failed

Could please somebody look after this?

Actions

Also available in: Atom PDF