Package: hardinfo
Severity: normal
Tags: patch

When building 'hardinfo' on amd64 with gcc-4.0,
I get the following error:

intl.c:95: warning: initialization makes integer from pointer without a cast
intl.c:95: error: initializer element is not constant
intl.c:95: warning: data definition has no type or storage class
intl.c:97: warning: type defaults to 'int' in declaration of 'fclose'
intl.c:97: warning: parameter names (without types) in function declaration
intl.c:97: warning: data definition has no type or storage class
intl.c:99: error: syntax error before 'goto'
intl.c:102: warning: type defaults to 'int' in declaration of 'fclose'
intl.c:102: warning: parameter names (without types) in function declaration
intl.c:102: warning: data definition has no type or storage class
intl.c:104: error: syntax error before ':' token
intl.c:106: warning: type defaults to 'int' in declaration of 'g_free'
intl.c:106: warning: parameter names (without types) in function declaration
intl.c:106: error: conflicting types for 'g_free'
/usr/include/glib-2.0/glib/gmem.h:52: error: previous declaration of 'g_free' 
was here
intl.c:106: warning: data definition has no type or storage class
intl.c:108: error: syntax error before 'return'
make[1]: *** [intl.o] Error 1
make[1]: Leaving directory `/hardinfo-0.3.6'
make: *** [build-stamp] Error 2

With the attached patch 'hardinfo' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/hardinfo-0.3.6/intl.c ./intl.c
--- ../tmp-orig/hardinfo-0.3.6/intl.c   2003-06-25 00:45:23.000000000 +0200
+++ ./intl.c    2005-03-17 19:13:11.227380495 +0100
@@ -44,7 +44,7 @@
  * GNU's gettext is cool and all... but hey, this is smaller :)
  */
 const gchar *
-intl_translate(const gchar * string, const gchar * source) __THROW
+intl_translate(const gchar * string, const gchar * source)
 {
        FILE *file;
        gchar buffer[256], *keyname, *lang = NULL, *langenv = NULL;


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to