qemacs-commit
[Top][All Lists]
Advanced

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

[Qemacs-commit] qemacs bufed.c buffer.c clang.c ebnf.c


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs bufed.c buffer.c clang.c ebnf.c
Date: Thu, 27 Aug 2015 18:52:31 +0000

CVSROOT:        /sources/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        15/08/27 18:52:31

Modified files:
        .              : bufed.c buffer.c clang.c ebnf.c 

Log message:
        fix linux compile warnings

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/bufed.c?cvsroot=qemacs&r1=1.40&r2=1.41
http://cvs.savannah.gnu.org/viewcvs/qemacs/buffer.c?cvsroot=qemacs&r1=1.93&r2=1.94
http://cvs.savannah.gnu.org/viewcvs/qemacs/clang.c?cvsroot=qemacs&r1=1.95&r2=1.96
http://cvs.savannah.gnu.org/viewcvs/qemacs/ebnf.c?cvsroot=qemacs&r1=1.2&r2=1.3

Patches:
Index: bufed.c
===================================================================
RCS file: /sources/qemacs/qemacs/bufed.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -b -r1.40 -r1.41
--- bufed.c     27 Aug 2015 15:32:12 -0000      1.40
+++ bufed.c     27 Aug 2015 18:52:30 -0000      1.41
@@ -178,7 +178,7 @@
     BufedState *bs;
     EditBuffer *b, *last_buffer;
     EditState *e;
-    int index;
+    int index = -1;
 
     if (!(bs = bufed_get_state(s, 1)))
         return;

Index: buffer.c
===================================================================
RCS file: /sources/qemacs/qemacs/buffer.c,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -b -r1.93 -r1.94
--- buffer.c    27 Aug 2015 15:32:27 -0000      1.93
+++ buffer.c    27 Aug 2015 18:52:30 -0000      1.94
@@ -893,7 +893,7 @@
             str = "  shell: ";
             break;
         case EB_TRACE_COMMAND:
-            eb_printf(b, "command: %s\n", buf);
+            eb_printf(b, "command: %s\n", cs8(buf));
             size = 0;
             break;
         }

Index: clang.c
===================================================================
RCS file: /sources/qemacs/qemacs/clang.c,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -b -r1.95 -r1.96
--- clang.c     16 Aug 2015 17:28:45 -0000      1.95
+++ clang.c     27 Aug 2015 18:52:30 -0000      1.96
@@ -612,13 +612,12 @@
 
     start = i;
     type_decl = 0;
+    c = 0;
+    style0 = style = C_STYLE_DEFAULT;
 
     if (i >= n)
         goto the_end;
 
-    c = 0;
-    style0 = style = C_STYLE_DEFAULT;
-
     if (state) {
         /* if already in a state, go directly in the code parsing it */
         if (state & IN_C_PREPROCESS)

Index: ebnf.c
===================================================================
RCS file: /sources/qemacs/qemacs/ebnf.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- ebnf.c      7 Aug 2015 17:26:13 -0000       1.2
+++ ebnf.c      27 Aug 2015 18:52:31 -0000      1.3
@@ -61,7 +61,7 @@
                                unsigned int *str, int n, ModeDef *syn)
 {
     char keyword[MAX_KEYWORD_SIZE];
-    int i = 0, start, c, style, len;
+    int i = 0, start = 0, c, style, len;
     int colstate = cp->colorize_state;
 
     if (colstate & IN_EBNF_COMMENT1)



reply via email to

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