Package: konwert
Severity: normal
Tags: patch

Dear Maintainer,

konwert currently FTBFS with clang 3.1. The attached patch fixes the issue.

WBR,
Cyril Roelandt.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- konwert-1.8.orig/bin/trs.cc	2012-09-04 02:40:18.123744856 +0200
+++ konwert-1.8/bin/trs.cc	2012-09-04 02:40:52.067745726 +0200
@@ -591,6 +591,7 @@
 
 /******** PROGRAM G£ÓWNY *****************************************************/
 
+int
 main (int argc, char **argv)
 {
 /*
@@ -636,4 +637,6 @@
 			regulyzpliku (argv[optind]);
 
 	trs ();
+
+	return 0;
 }
--- konwert-1.8.orig/bin/filterm.cc	2012-09-04 02:40:18.123744856 +0200
+++ konwert-1.8/bin/filterm.cc	2012-09-04 02:41:29.899746695 +0200
@@ -148,6 +148,7 @@
     exit (0);
 }
 
+int
 main (int argc, char *argv[])
 {
     nazwaprogramu = argv[0];
@@ -244,4 +245,6 @@
     terminalsurowy();
     cat (0, input[1]);
     koniec (0);
+
+    return 0;
 }
--- konwert-1.8.orig/bin/512bold.cc	2012-09-04 02:40:18.123744856 +0200
+++ konwert-1.8/bin/512bold.cc	2012-09-04 02:42:03.515747557 +0200
@@ -379,7 +379,8 @@
 	                      abs (normalny[i][2] - normalny[j][2]);
 }
 
-main()
+int
+main(void)
 {
     licz_odleglosci();
     reset_terminal();
@@ -388,4 +389,5 @@
     int c;
     while ((c = std::cin.get()) != -1) con_write (c);
     std::cout << "\30\33]R\33[0m";
+    return 0;
 }
--- konwert-1.8.orig/bin/512bold1.cc	2012-09-04 02:40:18.123744856 +0200
+++ konwert-1.8/bin/512bold1.cc	2012-09-04 02:42:32.623748300 +0200
@@ -200,7 +200,8 @@
     std::cout << c;
 }
 
-main()
+int
+main(void)
 {
     reset_terminal();
     std::cout << "\33]P0000000\33]P1AA0000\33]P200AA00\33]P3FFFFFF"
@@ -212,4 +213,5 @@
     int c;
     while ((c = std::cin.get()) != -1) con_write (c);
     std::cout << "\33]R\33[0m";
+    return 0;
 }

Reply via email to