gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-35


From: Daniele Forsi
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-356-g4706c65
Date: Wed, 15 Feb 2012 14:03:24 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".

The branch, master has been updated
       via  4706c656ec05af5b44dbe98c075616817566329c (commit)
      from  f66a2592fc8be30644498ff87937f53330955aa0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=4706c656ec05af5b44dbe98c075616817566329c


commit 4706c656ec05af5b44dbe98c075616817566329c
Author: Daniele Forsi <address@hidden>
Date:   Wed Feb 15 12:34:30 2012 +0100

    Remove unneeded assignments
    
    Those values are never used because they overwritten later.
    Fixes warnings printed by clang version 2.8 (branches/release_28):
    common/phones/nk6510.c:674:4: warning: Value stored to 'string_length' is 
never read
    common/phones/atgen.c:2809:2: warning: Value stored to 'mem' is never read
    common/phones/atnok.c:60:2: warning: Value stored to 'mem' is never read
    common/gsm-filetypes.c:106:2: warning: Value stored to 'error' is never read

diff --git a/common/gsm-filetypes.c b/common/gsm-filetypes.c
index 6340a90..fa917f2 100644
--- a/common/gsm-filetypes.c
+++ b/common/gsm-filetypes.c
@@ -103,8 +103,6 @@ gn_error gn_file_ringtone_read(char *filename, gn_ringtone 
*ringtone)
        else if (strstr(filename, ".mid")) filetype = GN_FT_MIDI;
        else if (strstr(filename, ".raw")) filetype = GN_FT_NOKRAW_TONE;
 
-       error = GN_ERR_NONE;
-
        rewind(file);  /* Not necessary for now but safer */
 
        switch (filetype) {
diff --git a/common/phones/atgen.c b/common/phones/atgen.c
index 3cf0b39..cf1cf8b 100644
--- a/common/phones/atgen.c
+++ b/common/phones/atgen.c
@@ -2806,8 +2806,6 @@ static gn_error ReplyIncomingSMS(int messagetype, 
unsigned char *buffer, int len
        buf.length= length;
        splitlines(&buf);
 
-       mem = GN_MT_XX;
-
        if (strncmp(buf.line1, "+CMTI: ", 7))
                return GN_ERR_UNSOLICITED;
 
diff --git a/common/phones/atnok.c b/common/phones/atnok.c
index 75e466d..ec4b97d 100644
--- a/common/phones/atnok.c
+++ b/common/phones/atnok.c
@@ -57,8 +57,6 @@ static gn_error ReplyIncomingSMS(int messagetype, unsigned 
char *buffer, int len
        buf.length= length;
        splitlines(&buf);
 
-       mem = GN_MT_XX;
-
        if (strncmp(buf.line1, "+CMTI: ", 7))
                return GN_ERR_UNSOLICITED;
 
diff --git a/common/phones/nk6510.c b/common/phones/nk6510.c
index 06c5f80..2d52e5a 100644
--- a/common/phones/nk6510.c
+++ b/common/phones/nk6510.c
@@ -671,7 +671,6 @@ static gn_error NK6510_IncomingIdentify(int messagetype, 
unsigned char *message,
                }
                if (data->model) {
                        pos = 10;
-                       string_length = 0;
                        while (message[pos++] != 0x0a) ;  /* skip revision */
                        pos++;
                        while (message[pos++] != 0x0a) ;  /* skip date */

-----------------------------------------------------------------------

Summary of changes:
 common/gsm-filetypes.c |    2 --
 common/phones/atgen.c  |    2 --
 common/phones/atnok.c  |    2 --
 common/phones/nk6510.c |    1 -
 4 files changed, 0 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]