Prechádzať zdrojové kódy

remove warning stuff

Ralf S. Engelschall 17 rokov pred
rodič
commit
ab4d73b80f
2 zmenil súbory, kde vykonal 31 pridanie a 3 odobranie
  1. 28 0
      lzma/lzma.patch
  2. 3 3
      lzma/lzma.spec

+ 28 - 0
lzma/lzma.patch

@@ -0,0 +1,28 @@
+Index: configure
+--- configure.orig	2008-04-25 14:50:51 +0200
++++ configure	2008-04-26 17:49:17 +0200
+@@ -27683,24 +27683,6 @@
+ 	# The flags are in reverse order below so they end up in "beautiful"
+ 	# order on the actual command line.
+ 	for NEW_FLAG in \
+-			-Wredundant-decls \
+-			-Wmissing-noreturn \
+-			-Wmissing-declarations \
+-			-Wmissing-prototypes \
+-			-Wold-style-definition \
+-			-Wstrict-prototypes \
+-			-Waggregate-return \
+-			-Wwrite-strings \
+-			-Wbad-function-cast \
+-			-Wpointer-arith \
+-			-Wshadow \
+-			-Wfloat-equal \
+-			-Wstrict-aliasing=2 \
+-			-Winit-self \
+-			-Wformat=2 \
+-			-Wextra \
+-			-Wall \
+-			-pedantic \
+ 			-std=c99
+ 	do
+ 		{ $as_echo "$as_me:$LINENO: checking if $CC accepts $NEW_FLAG" >&5

+ 3 - 3
lzma/lzma.spec

@@ -37,11 +37,12 @@ Class:        EVAL
 Group:        Compression
 License:      LGPL
 Version:      %{V_opkg}
-Release:      20080425
+Release:      20080426
 
 #   list of sources
 Source0:      http://tukaani.org/lzma/lzma-%{V_lzmautils}.tar.gz
 Source1:      http://switch.dl.sourceforge.net/sevenzip/7z%{V_sdk}.tar.bz2
+Patch0:       lzma.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -77,14 +78,13 @@ AutoReqProv:  no
 %prep
     %setup -q -c
     %setup -q -c -T -D -a 1
+    %patch -p0 -d lzma-%{V_lzmautils}
 
 %build
     #   build LZMA from LZMA Utils
     ( cd lzma-%{V_lzmautils}
       CC="%{l_cc}" \
-      CXX="%{l_cxx}" \
       CFLAGS="%{l_cflags -O}" \
-      CXXFLAGS="%{l_cxxflags -O}" \
       ./configure \
           --prefix=%{l_prefix} \
           --mandir=%{l_prefix}/man \