qemacs-commit
[Top][All Lists]
Advanced

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

[Qemacs-commit] qemacs display.c qescript.c


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs display.c qescript.c
Date: Tue, 20 Oct 2020 05:59:32 -0400 (EDT)

CVSROOT:        /sources/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        20/10/20 05:59:32

Modified files:
        .              : display.c qescript.c 

Log message:
        prevent compilation warnings

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/display.c?cvsroot=qemacs&r1=1.24&r2=1.25
http://cvs.savannah.gnu.org/viewcvs/qemacs/qescript.c?cvsroot=qemacs&r1=1.1&r2=1.2

Patches:
Index: display.c
===================================================================
RCS file: /sources/qemacs/qemacs/display.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- display.c   15 May 2017 09:44:21 -0000      1.24
+++ display.c   20 Oct 2020 09:59:32 -0000      1.25
@@ -586,7 +586,7 @@
     if (from->format != QEBITMAP_FORMAT_RGBA32
     &&  from->format != QEBITMAP_FORMAT_BGRA32)
         return 1;
-    
+    {  // prevent -Wdeclaration-after-statement warning
 #if 0
     /* Bilinear interpolation */
     uint32_t w = src_w, h = src_h, w2 = dst_w, h2 = dst_h;
@@ -650,6 +650,7 @@
         }
     }
 #endif
+    }
     return 0;
 }
 

Index: qescript.c
===================================================================
RCS file: /sources/qemacs/qemacs/qescript.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- qescript.c  20 Oct 2020 08:48:20 -0000      1.1
+++ qescript.c  20 Oct 2020 09:59:32 -0000      1.2
@@ -1164,12 +1164,12 @@
 }
 #endif
 
-void script_complete(CompleteState *cp) {
+static void script_complete(CompleteState *cp) {
     command_complete(cp);
     variable_complete(cp);
 }
 
-int script_print_entry(CompleteState *cp, EditState *s, const char *name) {
+static int script_print_entry(CompleteState *cp, EditState *s, const char 
*name) {
     CmdDef *d = qe_find_cmd(name);
     if (d) {
         return command_print_entry(cp, s, name);



reply via email to

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