Source: tcm Version: 2.20+TSQD-4.4 Severity: minor Tags: patch User: pkg-llvm-t...@lists.alioth.debian.org Usertags: clang-ftbfs
Dear Maintainer, Your package fails to build with clang instead of gcc. [-Wreturn-type] The attached diff fixes it. Buildlogs and patch are here: https://github.com/nonas/debian-clang/tree/master/buildlogs/tcm Regards, Nicolas -- System Information: Debian Release: jessie/sid APT prefers testing-updates APT policy: (500, 'testing-updates'), (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
--- tcm-2.20+TSQD.orig/src/gl/text2ps.c +++ tcm-2.20+TSQD/src/gl/text2ps.c @@ -357,7 +357,7 @@ exit(errors); } -print_file(f) +int print_file(f) FILE *f; { int i; @@ -461,7 +461,7 @@ linectr++; if ((c = getc(f)) == EOF) { finish_column(); - return; + return 0; } ungetc(c, f); if (lines == 0 ? ypos <= bottom_edge : linectr == lines) { @@ -545,7 +545,7 @@ finish_page(); } -draw_border() +int draw_border() { int tx1, ty1, tx2, ty2; register int i; @@ -553,7 +553,7 @@ static char move[] = "moveto"; if (!border) - return; + return 0; printf("gsave\n"); if (rotate) { @@ -604,7 +604,7 @@ printf("stroke\ngrestore\n"); } -draw_title() +int draw_title() { register int set_font = 0; register struct fonts **fnt; @@ -612,7 +612,7 @@ register int tx; if ((t = title) == 0 && (!print_file_name || (t = current_file) == 0)) - return; + return 0; tx = (rotate ? right_edge : top_edge) + top_margin/2 + 50; printf("gsave\n"); if (title_ps != point_size || strcmp(title_font, font_name) != 0) {