Package: eterm Severity: normal Tags: patch When building 'eterm' on amd64 with gcc-4.0, I get the following error:
command.c: In function 'init_command': command.c:2998: error: invalid lvalue in assignment command.c:3000: error: invalid lvalue in assignment command.c: In function 'tt_winsize': command.c:3021: warning: dereferencing type-punned pointer will break strict-aliasing rules command.c: In function 'main_loop': command.c:3464: warning: pointer targets in passing argument 1 of 'safe_print_string' differ in signedness make[3]: *** [command.lo] Error 1 make[3]: Leaving directory `/eterm-0.9.2/src' With the attached patch 'eterm' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/eterm-0.9.2/debian/compat ./debian/compat --- ../tmp-orig/eterm-0.9.2/debian/compat 1970-01-01 01:00:00.000000000 +0100 +++ ./debian/compat 2005-03-03 16:23:26.139711800 +0100 @@ -0,0 +1 @@ +4 diff -urN ../tmp-orig/eterm-0.9.2/src/command.c ./src/command.c --- ../tmp-orig/eterm-0.9.2/src/command.c 2005-03-03 16:33:39.368347359 +0100 +++ ./src/command.c 2005-03-03 16:33:02.459471453 +0100 @@ -2995,9 +2995,9 @@ Xfd = XConnectionNumber(Xdisplay); D_CMD(("Xfd = %d\n", Xfd)); cmdbuf_ptr = cmdbuf_endp = cmdbuf_base; - AT_LEAST((int) num_fds, Xfd + 1); + AT_LEAST(num_fds, Xfd + 1); if (pipe_fd >= 0) { - AT_LEAST((int) num_fds, pipe_fd + 1); + AT_LEAST(num_fds, pipe_fd + 1); } if ((cmd_fd = command_func(argv)) < 0) { print_error("Unable to run sub-command.\n"); -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]