updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / flactag / fix-warnings.patch
blob0979c78aac3c02192d552ec0e2125c67c3345ceb
1 diff -u flactag-1.1/CommandLine.cc flactag-1.1.new/CommandLine.cc
2 --- flactag-1.1/CommandLine.cc 2008-12-16 06:20:56.000000000 -0500
3 +++ flactag-1.1.new/CommandLine.cc 2011-05-01 13:29:17.541043280 -0400
4 @@ -29,6 +29,7 @@
5 #include <sstream>
7 #include <getopt.h>
8 +#include <cstdio>
10 #include "ErrorLog.h"
12 diff -u flactag-1.1/ConfigFile.cc flactag-1.1.new/ConfigFile.cc
13 --- flactag-1.1/ConfigFile.cc 2008-12-16 06:20:56.000000000 -0500
14 +++ flactag-1.1.new/ConfigFile.cc 2011-05-01 13:29:17.540043292 -0400
15 @@ -25,6 +25,7 @@
16 ----------------------------------------------------------------------------*/
18 #include "ConfigFile.h"
19 +#include <cstdio>
21 CConfigFile::CConfigFile()
23 diff -u flactag-1.1/ErrorLog.cc flactag-1.1.new/ErrorLog.cc
24 --- flactag-1.1/ErrorLog.cc 2008-12-16 06:20:56.000000000 -0500
25 +++ flactag-1.1.new/ErrorLog.cc 2011-05-01 13:29:17.539043303 -0400
26 @@ -25,6 +25,7 @@
27 ----------------------------------------------------------------------------*/
29 #include "ErrorLog.h"
30 +#include <cstdio>
32 const std::vector<std::string>::size_type CErrorLog::m_cMaxSize=100;
34 diff -u flactag-1.1/FileNameBuilder.cc flactag-1.1.new/FileNameBuilder.cc
35 --- flactag-1.1/FileNameBuilder.cc 2008-12-16 06:20:56.000000000 -0500
36 +++ flactag-1.1.new/FileNameBuilder.cc 2011-05-01 13:29:17.540043291 -0400
37 @@ -27,6 +27,7 @@
38 #include "FileNameBuilder.h"
40 #include <stdlib.h>
41 +#include <stdio.h>
43 #include <unac.h>
45 diff -u flactag-1.1/flactag.cc flactag-1.1.new/flactag.cc
46 --- flactag-1.1/flactag.cc 2008-12-16 06:20:56.000000000 -0500
47 +++ flactag-1.1.new/flactag.cc 2011-05-01 13:29:17.539043303 -0400
48 @@ -156,7 +156,7 @@
49 AlbumNum=count;
50 MatchFound=true;
52 - printf("%s: Album ID in album %d is a match\n",m_FlacFile.c_str(),count);
53 + printf("%s: Album ID in album %d is a match\n",m_FlacFile.c_str(),(int)count);
57 flactag.1.xml: flactag.1.txt Makefile
58 asciidoc -d manpage -b docbook flactag.1.txt
59 diff -u flactag-1.1/UTF8Tag.cc flactag-1.1.new/UTF8Tag.cc
60 --- flactag-1.1/UTF8Tag.cc 2008-12-16 06:20:56.000000000 -0500
61 +++ flactag-1.1.new/UTF8Tag.cc 2011-05-01 13:29:17.540043292 -0400
62 @@ -32,6 +32,7 @@
63 #include <errno.h>
64 #include <string.h>
65 #include <stdlib.h>
66 +#include <stdio.h>
68 #include <iconv.h>