# HG changeset patch # User Pascal Bellard # Date 1345187622 -7200 # Node ID 82b8882289240722c46a71bb293a6e5857e41e23 # Parent f82b9cdc36cd0cfbfe70bd6ab59e82d247634345 qemacs-tiny: -Werror=unused-but-set-variable fix diff -r f82b9cdc36cd -r 82b888228924 qemacs-tiny/receipt --- a/qemacs-tiny/receipt Thu Aug 16 21:48:35 2012 +0200 +++ b/qemacs-tiny/receipt Fri Aug 17 09:13:42 2012 +0200 @@ -1,12 +1,13 @@ # SliTaz package receipt. PACKAGE="qemacs-tiny" +SOURCE="qemacs" VERSION="0.3.2" CATEGORY="development" SHORT_DESC="Tiny emacs clone." MAINTAINER="pascal.bellard@slitaz.org" -TARBALL="$PACKAGE-$VERSION.tar.gz" -WEB_SITE="http://bellard.org/$PACKAGE/" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://bellard.org/$SOURCE/" WGET_URL="${WEB_SITE}$TARBALL" TAGS="editor" @@ -17,6 +18,18 @@ compile_rules() { cd $src + + # quick fix for variable 'XXX' set but not used [-Werror=unused-but-set-variable] + sed -i -e 's/int count,/int count=count,/' \ + -e 's/ line_count,/ line_count=line_count,/' \ + -e 's/int len;/int len=len;/' \ + -e 's/EditState \*e;/EditState *e=e;/' \ + -e 's/int err,/int err=err,/' qe.c + sed -i 's/size_start,/size_start=size_start,/' buffer.c + sed -i 's/stack_ptr = 0;/&; stack[0] = stack[0];/' clang.c + sed -i 's/len, offset1/len=len, offset1/' latex-mode.c + sed -i 's/len1, len2/len1=len1, len2=len2/' dired.c + sed -i 's/\(define SAVED_DATA_SIZE \).*/\1 __builtin_offsetof(EditState,end_of_saved_data)/' qe.h ./configure --prefix=/usr --enable-tiny && make qe }