Project

General

Profile

Bug #3369

Compilation fails since edit 1085 ("fbcd414")

Added by Volker Schmidt almost 9 years ago. Updated almost 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?

History

#1

Updated by Jaroslav Kysela almost 9 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset commit:tvheadend|b9f687fbfc488382ba90300ff918865805837fd7.

#2

Updated by Volker Schmidt almost 9 years ago

Thanks, for that fast fix!

Compilation works fine again on gcc 5.20.

Also available in: Atom PDF