Package: sms-pl
Severity: normal
Tags: patch

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

socket.h: At global scope:
socket.h:52: warning: 'class AnyIPSocket' has virtual functions but non-virtual 
destructor
main.cc:108: error: non-local variable '<anonymous struct> GSM_Oper []' uses 
anonymous type
main.cc: In function 'int sprawdz_argumenty(char**, int, Targs&)':
main.cc:308: warning: comparison between signed and unsigned integer expressions
main.cc: In function 'void odczytaj_konfig(const char*)':
main.cc:459: warning: suggest parentheses around assignment used as truth value
main.cc:503: warning: suggest parentheses around assignment used as truth value
main.cc:507: warning: suggest parentheses around assignment used as truth value
main.cc:509: warning: suggest parentheses around assignment used as truth value
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/sms-pl-1.9.2m'
make: *** [build-stamp] Error 2

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/sms-pl-1.9.2m/main.cc ./main.cc
--- ../tmp-orig/sms-pl-1.9.2m/main.cc   2004-08-21 00:22:46.000000000 +0200
+++ ./main.cc   2005-03-03 18:44:07.319408378 +0100
@@ -105,7 +105,7 @@
 // struktura zawiera wskaznik do funkcji wysylajacej sms'a, maksymalna
 // dlugosc SMS przekazywana przez bramke oraz tekst, ktory jest zwracany
 // przez serwer operatora w przypadku pomyslnego wyslania SMSa
-struct { sms_func gsm; int max_len; char *ok_msg; } GSM_Oper[] = 
+static struct { sms_func gsm; int max_len; char *ok_msg; } GSM_Oper[] = 
        { {WyslijSMS_Era, 125, "X-ERA-counter"},
          {WyslijSMS_Plus, 1200, "Twoja wiadomo�� zosta�a wys�ana na numer 
<B><I>48%s"},
          {(sms_func)(NULL), 140, "Your message is sent !"/*"Kr�tka wiadomo�� 
tekstowa zosta�a wys�ana do odbiorcy"*/},


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

Reply via email to