Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37559923
en ru br
Репозитории ALT
S:2.2.11-alt3
5.1: 2.2.9-alt5
4.1: 2.2.9-alt5
4.0: 2.2.9-alt5
3.0: 2.2.9-alt3
www.altlinux.org/Changes

Группа :: Разработка/C
Пакет: indent

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: indent-2.2.11-rh-Fix-compiler-warnings.patch
Скачать


From 1394dd08b2284a0f83fac63025d19b66653d6585 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Tue, 19 Feb 2013 11:34:25 +0100
Subject: [PATCH 1/2] Fix compiler warnings
---
 src/args.c |  6 ++++++
 src/lexi.c | 10 ----------
 2 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/src/args.c b/src/args.c
index f392cce..abd2a6a 100644
--- a/src/args.c
+++ b/src/args.c
@@ -174,7 +174,9 @@ static int exp_o    = 0;
 static int exp_orig = 0;
 static int exp_pcs  = 0;
 static int exp_pi   = 0;
+#ifdef PRESERVE_MTIME
 static int exp_pmt  = 0;
+#endif
 static int exp_pro  = 0;
 static int exp_prs  = 0;
 static int exp_psl  = 0;
diff --git a/src/lexi.c b/src/lexi.c
index abc2bfa..ef80e38 100644
--- a/src/lexi.c
+++ b/src/lexi.c
@@ -198,11 +198,6 @@ int main (void)
 #endif
 
 /* Include code generated by gperf */
-#ifdef __GNUC__
-__inline
-#endif
-templ_ty *is_reserved (const char *str, unsigned int len);
-
 #include "gperf.c"
 
 /* Include code generated by gperf for C++ keyword set */
@@ -212,11 +207,6 @@ templ_ty *is_reserved (const char *str, unsigned int len);
 #undef MIN_WORD_LENGTH
 #undef MAX_WORD_LENGTH
 
-#ifdef __GNUC__
-__inline
-#endif
-templ_ty *is_reserved_cc (register const char *str, register unsigned int len);
-
 #include "gperf-cc.c"
 
 /**
-- 
1.8.1.2
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin