From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 27BA31F66E for ; Sat, 5 Sep 2020 21:53:21 +0000 (UTC) Received: from localhost ([::1]:57964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEg7b-0006jB-QA for normalperson@yhbt.net; Sat, 05 Sep 2020 17:53:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEg7Y-0006it-Pp for bug-gnulib@gnu.org; Sat, 05 Sep 2020 17:53:16 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.25]:28953) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEg7V-0002Vh-GM for bug-gnulib@gnu.org; Sat, 05 Sep 2020 17:53:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1599342790; s=strato-dkim-0002; d=clisp.org; h=Message-ID:Date:Subject:To:From:X-RZG-CLASS-ID:X-RZG-AUTH:From: Subject:Sender; bh=BtwlC2/e89K30yVFG7jYRhhrwi5K1GAZG9DVHlk4gZk=; b=MSlp/KuuSYBCeCMhhQB+ZXPYl9RiMVbRhOH5mofjqq1/hAjefh5mR+CSlqaUOJXxkz PsGqJqQjaT6KATA78n0jsmCKG3yzX67Uu1EyEC7cK5vHoXufZykixPWi1pbjuvuhhiod jZPFooTtj5Tguwp0WRzU6h8U3DESRqjldzbKVJXatMP+xrE/PKOSJE0q6KdBA52yh0yS NnameRM0H7IQwnCF47IdDJ2U1gplrb3Sldwf41UNPgkgSszBD1HYl28U0C2+bbdzl49G FKsb14miqsQmOPOGkEXg2gjpkZsGl7eTSzIJkQbtJfFN/Bg0UqBQDqGVO+WG1fgI4IVH vVbQ== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOHqfyyPs=" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 46.10.7 DYNA|AUTH) with ESMTPSA id z05f0fw85Lr9C5i (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Sat, 5 Sep 2020 23:53:09 +0200 (CEST) From: Bruno Haible To: bug-gnulib@gnu.org Subject: Fix several "warning: no previous prototype for function" Date: Sat, 05 Sep 2020 23:53:08 +0200 Message-ID: <1724839.u6ACWxexJE@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-186-generic; KDE/5.18.0; x86_64; ; ) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart4548680.MdOe7SfORJ" Content-Transfer-Encoding: 7Bit Received-SPF: none client-ip=85.215.255.25; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/05 17:53:10 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" This is a multi-part message in MIME format. --nextPart4548680.MdOe7SfORJ Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Building libunistring with clang, I see these warnings: lib/unicase/locale-languages.h(99,1): warning: no previous prototype for function 'uc_locale_languages_lookup' [-Wmissing-prototypes] lib/uninorm/composition-table.h(57,1): warning: no previous prototype for function 'gl_uninorm_compose_lookup' [-Wmissing-prototypes] tests/select.c(264,1): warning: no previous prototype for function 'rpl_select' [-Wmissing-prototypes] unictype/bidi_byname.gperf(83,1): warning: no previous prototype for function 'uc_bidi_class_lookup' [-Wmissing-prototypes] unictype/categ_byname.gperf(74,1): warning: no previous prototype for function 'uc_general_category_lookup' [-Wmissing-prototypes] unictype/combiningclass_byname.gperf(65,1): warning: no previous prototype for function 'uc_combining_class_lookup' [-Wmissing-prototypes] unictype/joininggroup_byname.gperf(19,1): warning: no previous prototype for function 'uc_joining_group_lookup' [-Wmissing-prototypes] unictype/joiningtype_byname.gperf(24,1): warning: no previous prototype for function 'uc_joining_type_lookup' [-Wmissing-prototypes] unictype/pr_byname.gperf(100,1): warning: no previous prototype for function 'uc_property_lookup' [-Wmissing-prototypes] unictype/scripts_byname.gperf(148,1): warning: no previous prototype for function 'uc_script_lookup' [-Wmissing-prototypes] These two patches fix these warnings. 2020-09-05 Bruno Haible Fix several "warning: no previous prototype for function". * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword in front of the declaration of the lookup function in unicase/locale-languages.h. * modules/unictype/bidiclass-byname (Makefile.am): Likewise in unictype/bidi_byname.h. * modules/unictype/category-byname (Makefile.am): Likewise in unictype/categ_byname.h. * modules/unictype/combining-class-byname (Makefile.am): Likewise in unictype/combiningclass_byname.h. * modules/unictype/joininggroup-byname (Makefile.am): Likewise in unictype/joininggroup_byname.h. * modules/unictype/joiningtype-byname (Makefile.am): Likewise in unictype/joiningtype_byname.h. * modules/unictype/property-byname (Makefile.am): Likewise in unictype/pr_byname.h. * modules/unictype/scripts (Makefile.am): Likewise in unictype/scripts_byname.h. * modules/uninorm/composition (Makefile.am): Likewise in uninorm/composition-table.h. 2020-09-05 Bruno Haible select: Fix "warning: no previous prototype for function". * lib/select.c: Include . --nextPart4548680.MdOe7SfORJ Content-Disposition: attachment; filename="0001-select-Fix-warning-no-previous-prototype-for-functio.patch" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="UTF-8"; name="0001-select-Fix-warning-no-previous-prototype-for-functio.patch" >From 373419b6c173c53b33d653ef6ea2d84bb3c0d268 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 5 Sep 2020 23:45:47 +0200 Subject: [PATCH 1/2] select: Fix "warning: no previous prototype for function". * lib/select.c: Include . --- ChangeLog | 5 +++++ lib/select.c | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2edba65..3698ba0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2020-09-05 Bruno Haible + select: Fix "warning: no previous prototype for function". + * lib/select.c: Include . + +2020-09-05 Bruno Haible + Use module 'c99' when needed for variadic macros with '...' syntax. * modules/crypto/sm3 (Depends-on): Add c99. diff --git a/lib/select.c b/lib/select.c index b2234ea..1122fde 100644 --- a/lib/select.c +++ b/lib/select.c @@ -19,12 +19,15 @@ with this program; if not, see . */ #include -#include -#include + +/* Specification. */ +#include #if defined _WIN32 && ! defined __CYGWIN__ /* Native Windows. */ +#include +#include #include #include #include @@ -553,7 +556,6 @@ restart: #else /* ! Native Windows. */ -#include #include /* NULL */ #include #include -- 2.7.4 --nextPart4548680.MdOe7SfORJ Content-Disposition: attachment; filename="0002-Fix-several-warning-no-previous-prototype-for-functi.patch" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="UTF-8"; name="0002-Fix-several-warning-no-previous-prototype-for-functi.patch" >From 1cc98c12499b2ef7b6f67591bafbfb230f8f8330 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 5 Sep 2020 23:50:09 +0200 Subject: [PATCH 2/2] Fix several "warning: no previous prototype for function". * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword in front of the declaration of the lookup function in unicase/locale-languages.h. * modules/unictype/bidiclass-byname (Makefile.am): Likewise in unictype/bidi_byname.h. * modules/unictype/category-byname (Makefile.am): Likewise in unictype/categ_byname.h. * modules/unictype/combining-class-byname (Makefile.am): Likewise in unictype/combiningclass_byname.h. * modules/unictype/joininggroup-byname (Makefile.am): Likewise in unictype/joininggroup_byname.h. * modules/unictype/joiningtype-byname (Makefile.am): Likewise in unictype/joiningtype_byname.h. * modules/unictype/property-byname (Makefile.am): Likewise in unictype/pr_byname.h. * modules/unictype/scripts (Makefile.am): Likewise in unictype/scripts_byname.h. * modules/uninorm/composition (Makefile.am): Likewise in uninorm/composition-table.h. --- ChangeLog | 23 +++++++++++++++++++++++ modules/unicase/locale-language | 7 ++++--- modules/unictype/bidiclass-byname | 7 ++++--- modules/unictype/category-byname | 7 ++++--- modules/unictype/combining-class-byname | 7 ++++--- modules/unictype/joininggroup-byname | 7 ++++--- modules/unictype/joiningtype-byname | 7 ++++--- modules/unictype/property-byname | 7 ++++--- modules/unictype/scripts | 7 ++++--- modules/uninorm/composition | 7 ++++--- 10 files changed, 59 insertions(+), 27 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3698ba0..454bd76 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,28 @@ 2020-09-05 Bruno Haible + Fix several "warning: no previous prototype for function". + * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword + in front of the declaration of the lookup function in + unicase/locale-languages.h. + * modules/unictype/bidiclass-byname (Makefile.am): Likewise in + unictype/bidi_byname.h. + * modules/unictype/category-byname (Makefile.am): Likewise in + unictype/categ_byname.h. + * modules/unictype/combining-class-byname (Makefile.am): Likewise in + unictype/combiningclass_byname.h. + * modules/unictype/joininggroup-byname (Makefile.am): Likewise in + unictype/joininggroup_byname.h. + * modules/unictype/joiningtype-byname (Makefile.am): Likewise in + unictype/joiningtype_byname.h. + * modules/unictype/property-byname (Makefile.am): Likewise in + unictype/pr_byname.h. + * modules/unictype/scripts (Makefile.am): Likewise in + unictype/scripts_byname.h. + * modules/uninorm/composition (Makefile.am): Likewise in + uninorm/composition-table.h. + +2020-09-05 Bruno Haible + select: Fix "warning: no previous prototype for function". * lib/select.c: Include . diff --git a/modules/unicase/locale-language b/modules/unicase/locale-language index 0ca9c29..1e6c26a 100644 --- a/modules/unicase/locale-language +++ b/modules/unicase/locale-language @@ -19,10 +19,11 @@ lib_SOURCES += unicase/locale-language.c endif $(srcdir)/unicase/locale-languages.h: $(srcdir)/unicase/locale-languages.gperf - $(V_GPERF)$(GPERF) -m 10 $(srcdir)/unicase/locale-languages.gperf > $(srcdir)/unicase/locale-languages.h-t && \ - mv $(srcdir)/unicase/locale-languages.h-t $(srcdir)/unicase/locale-languages.h + $(V_GPERF)$(GPERF) -m 10 $(srcdir)/unicase/locale-languages.gperf > $(srcdir)/unicase/locale-languages.h-t1 \ + && sed -e 's/^const/static const/' < $(srcdir)/unicase/locale-languages.h-t1 > $(srcdir)/unicase/locale-languages.h-t2 \ + && mv $(srcdir)/unicase/locale-languages.h-t2 $(srcdir)/unicase/locale-languages.h BUILT_SOURCES += unicase/locale-languages.h -MOSTLYCLEANFILES += unicase/locale-languages.h-t +MOSTLYCLEANFILES += unicase/locale-languages.h-t1 unicase/locale-languages.h-t2 MAINTAINERCLEANFILES += unicase/locale-languages.h EXTRA_DIST += unicase/locale-languages.h diff --git a/modules/unictype/bidiclass-byname b/modules/unictype/bidiclass-byname index e41b4f0..ceade91 100644 --- a/modules/unictype/bidiclass-byname +++ b/modules/unictype/bidiclass-byname @@ -18,10 +18,11 @@ lib_SOURCES += unictype/bidi_byname.c endif $(srcdir)/unictype/bidi_byname.h: $(srcdir)/unictype/bidi_byname.gperf - $(V_GPERF)$(GPERF) -m 10 $(srcdir)/unictype/bidi_byname.gperf > $(srcdir)/unictype/bidi_byname.h-t && \ - mv $(srcdir)/unictype/bidi_byname.h-t $(srcdir)/unictype/bidi_byname.h + $(V_GPERF)$(GPERF) -m 10 $(srcdir)/unictype/bidi_byname.gperf > $(srcdir)/unictype/bidi_byname.h-t1 \ + && sed -e 's/^const/static const/' < $(srcdir)/unictype/bidi_byname.h-t1 > $(srcdir)/unictype/bidi_byname.h-t2 \ + && mv $(srcdir)/unictype/bidi_byname.h-t2 $(srcdir)/unictype/bidi_byname.h BUILT_SOURCES += unictype/bidi_byname.h -MOSTLYCLEANFILES += unictype/bidi_byname.h-t +MOSTLYCLEANFILES += unictype/bidi_byname.h-t1 unictype/bidi_byname.h-t2 MAINTAINERCLEANFILES += unictype/bidi_byname.h EXTRA_DIST += unictype/bidi_byname.h diff --git a/modules/unictype/category-byname b/modules/unictype/category-byname index a011733..df08bcd 100644 --- a/modules/unictype/category-byname +++ b/modules/unictype/category-byname @@ -57,10 +57,11 @@ lib_SOURCES += unictype/categ_byname.c endif $(srcdir)/unictype/categ_byname.h: $(srcdir)/unictype/categ_byname.gperf - $(V_GPERF)$(GPERF) -m 10 $(srcdir)/unictype/categ_byname.gperf > $(srcdir)/unictype/categ_byname.h-t && \ - mv $(srcdir)/unictype/categ_byname.h-t $(srcdir)/unictype/categ_byname.h + $(V_GPERF)$(GPERF) -m 10 $(srcdir)/unictype/categ_byname.gperf > $(srcdir)/unictype/categ_byname.h-t1 \ + && sed -e 's/^const/static const/' < $(srcdir)/unictype/categ_byname.h-t1 > $(srcdir)/unictype/categ_byname.h-t2 \ + && mv $(srcdir)/unictype/categ_byname.h-t2 $(srcdir)/unictype/categ_byname.h BUILT_SOURCES += unictype/categ_byname.h -MOSTLYCLEANFILES += unictype/categ_byname.h-t +MOSTLYCLEANFILES += unictype/categ_byname.h-t1 unictype/categ_byname.h-t2 MAINTAINERCLEANFILES += unictype/categ_byname.h EXTRA_DIST += unictype/categ_byname.h diff --git a/modules/unictype/combining-class-byname b/modules/unictype/combining-class-byname index e4a70a3..f4d0194 100644 --- a/modules/unictype/combining-class-byname +++ b/modules/unictype/combining-class-byname @@ -18,10 +18,11 @@ lib_SOURCES += unictype/combiningclass_byname.c endif $(srcdir)/unictype/combiningclass_byname.h: $(srcdir)/unictype/combiningclass_byname.gperf - $(V_GPERF)$(GPERF) -m 10 $(srcdir)/unictype/combiningclass_byname.gperf > $(srcdir)/unictype/combiningclass_byname.h-t && \ - mv $(srcdir)/unictype/combiningclass_byname.h-t $(srcdir)/unictype/combiningclass_byname.h + $(V_GPERF)$(GPERF) -m 10 $(srcdir)/unictype/combiningclass_byname.gperf > $(srcdir)/unictype/combiningclass_byname.h-t1 \ + && sed -e 's/^const/static const/' < $(srcdir)/unictype/combiningclass_byname.h-t1 > $(srcdir)/unictype/combiningclass_byname.h-t2 \ + && mv $(srcdir)/unictype/combiningclass_byname.h-t2 $(srcdir)/unictype/combiningclass_byname.h BUILT_SOURCES += unictype/combiningclass_byname.h -MOSTLYCLEANFILES += unictype/combiningclass_byname.h-t +MOSTLYCLEANFILES += unictype/combiningclass_byname.h-t1 unictype/combiningclass_byname.h-t2 MAINTAINERCLEANFILES += unictype/combiningclass_byname.h EXTRA_DIST += unictype/combiningclass_byname.h diff --git a/modules/unictype/joininggroup-byname b/modules/unictype/joininggroup-byname index cb5765f..a86df45 100644 --- a/modules/unictype/joininggroup-byname +++ b/modules/unictype/joininggroup-byname @@ -18,10 +18,11 @@ lib_SOURCES += unictype/joininggroup_byname.c endif $(srcdir)/unictype/joininggroup_byname.h: $(srcdir)/unictype/joininggroup_byname.gperf - $(V_GPERF)$(GPERF) -m 10 $(srcdir)/unictype/joininggroup_byname.gperf > $(srcdir)/unictype/joininggroup_byname.h-t && \ - mv $(srcdir)/unictype/joininggroup_byname.h-t $(srcdir)/unictype/joininggroup_byname.h + $(V_GPERF)$(GPERF) -m 10 $(srcdir)/unictype/joininggroup_byname.gperf > $(srcdir)/unictype/joininggroup_byname.h-t1 \ + && sed -e 's/^const/static const/' < $(srcdir)/unictype/joininggroup_byname.h-t1 > $(srcdir)/unictype/joininggroup_byname.h-t2 \ + && mv $(srcdir)/unictype/joininggroup_byname.h-t2 $(srcdir)/unictype/joininggroup_byname.h BUILT_SOURCES += unictype/joininggroup_byname.h -MOSTLYCLEANFILES += unictype/joininggroup_byname.h-t +MOSTLYCLEANFILES += unictype/joininggroup_byname.h-t1 unictype/joininggroup_byname.h-t2 MAINTAINERCLEANFILES += unictype/joininggroup_byname.h EXTRA_DIST += unictype/joininggroup_byname.h diff --git a/modules/unictype/joiningtype-byname b/modules/unictype/joiningtype-byname index 8c8c669..e89794f 100644 --- a/modules/unictype/joiningtype-byname +++ b/modules/unictype/joiningtype-byname @@ -18,10 +18,11 @@ lib_SOURCES += unictype/joiningtype_byname.c endif $(srcdir)/unictype/joiningtype_byname.h: $(srcdir)/unictype/joiningtype_byname.gperf - $(V_GPERF)$(GPERF) -m 10 $(srcdir)/unictype/joiningtype_byname.gperf > $(srcdir)/unictype/joiningtype_byname.h-t && \ - mv $(srcdir)/unictype/joiningtype_byname.h-t $(srcdir)/unictype/joiningtype_byname.h + $(V_GPERF)$(GPERF) -m 10 $(srcdir)/unictype/joiningtype_byname.gperf > $(srcdir)/unictype/joiningtype_byname.h-t1 \ + && sed -e 's/^const/static const/' < $(srcdir)/unictype/joiningtype_byname.h-t1 > $(srcdir)/unictype/joiningtype_byname.h-t2 \ + && mv $(srcdir)/unictype/joiningtype_byname.h-t2 $(srcdir)/unictype/joiningtype_byname.h BUILT_SOURCES += unictype/joiningtype_byname.h -MOSTLYCLEANFILES += unictype/joiningtype_byname.h-t +MOSTLYCLEANFILES += unictype/joiningtype_byname.h-t1 unictype/joiningtype_byname.h-t2 MAINTAINERCLEANFILES += unictype/joiningtype_byname.h EXTRA_DIST += unictype/joiningtype_byname.h diff --git a/modules/unictype/property-byname b/modules/unictype/property-byname index 0a10709..9ffe6ef 100644 --- a/modules/unictype/property-byname +++ b/modules/unictype/property-byname @@ -104,10 +104,11 @@ lib_SOURCES += unictype/pr_byname.c endif $(srcdir)/unictype/pr_byname.h: $(srcdir)/unictype/pr_byname.gperf - $(V_GPERF)$(GPERF) -m 10 $(srcdir)/unictype/pr_byname.gperf > $(srcdir)/unictype/pr_byname.h-t && \ - mv $(srcdir)/unictype/pr_byname.h-t $(srcdir)/unictype/pr_byname.h + $(V_GPERF)$(GPERF) -m 10 $(srcdir)/unictype/pr_byname.gperf > $(srcdir)/unictype/pr_byname.h-t1 \ + && sed -e 's/^const/static const/' < $(srcdir)/unictype/pr_byname.h-t1 > $(srcdir)/unictype/pr_byname.h-t2 \ + && mv $(srcdir)/unictype/pr_byname.h-t2 $(srcdir)/unictype/pr_byname.h BUILT_SOURCES += unictype/pr_byname.h -MOSTLYCLEANFILES += unictype/pr_byname.h-t +MOSTLYCLEANFILES += unictype/pr_byname.h-t1 unictype/pr_byname.h-t2 MAINTAINERCLEANFILES += unictype/pr_byname.h EXTRA_DIST += unictype/pr_byname.h diff --git a/modules/unictype/scripts b/modules/unictype/scripts index 8f8b057..12185e0 100644 --- a/modules/unictype/scripts +++ b/modules/unictype/scripts @@ -19,10 +19,11 @@ lib_SOURCES += unictype/scripts.c endif $(srcdir)/unictype/scripts_byname.h: $(srcdir)/unictype/scripts_byname.gperf - $(V_GPERF)$(GPERF) -m 10 $(srcdir)/unictype/scripts_byname.gperf > $(srcdir)/unictype/scripts_byname.h-t && \ - mv $(srcdir)/unictype/scripts_byname.h-t $(srcdir)/unictype/scripts_byname.h + $(V_GPERF)$(GPERF) -m 10 $(srcdir)/unictype/scripts_byname.gperf > $(srcdir)/unictype/scripts_byname.h-t1 \ + && sed -e 's/^const/static const/' < $(srcdir)/unictype/scripts_byname.h-t1 > $(srcdir)/unictype/scripts_byname.h-t2 \ + && mv $(srcdir)/unictype/scripts_byname.h-t2 $(srcdir)/unictype/scripts_byname.h BUILT_SOURCES += unictype/scripts_byname.h -MOSTLYCLEANFILES += unictype/scripts_byname.h-t +MOSTLYCLEANFILES += unictype/scripts_byname.h-t1 unictype/scripts_byname.h-t2 MAINTAINERCLEANFILES += unictype/scripts_byname.h EXTRA_DIST += unictype/scripts_byname.h diff --git a/modules/uninorm/composition b/modules/uninorm/composition index 6ab319d..3299644 100644 --- a/modules/uninorm/composition +++ b/modules/uninorm/composition @@ -18,10 +18,11 @@ lib_SOURCES += uninorm/composition.c endif $(srcdir)/uninorm/composition-table.h: $(srcdir)/uninorm/composition-table.gperf - $(V_GPERF)$(GPERF) -m 1 $(srcdir)/uninorm/composition-table.gperf > $(srcdir)/uninorm/composition-table.h-t && \ - mv $(srcdir)/uninorm/composition-table.h-t $(srcdir)/uninorm/composition-table.h + $(V_GPERF)$(GPERF) -m 1 $(srcdir)/uninorm/composition-table.gperf > $(srcdir)/uninorm/composition-table.h-t1 \ + && sed -e 's/^const/static const/' < $(srcdir)/uninorm/composition-table.h-t1 > $(srcdir)/uninorm/composition-table.h-t2 \ + && mv $(srcdir)/uninorm/composition-table.h-t2 $(srcdir)/uninorm/composition-table.h BUILT_SOURCES += uninorm/composition-table.h -MOSTLYCLEANFILES += uninorm/composition-table.h-t +MOSTLYCLEANFILES += uninorm/composition-table.h-t1 uninorm/composition-table.h-t2 MAINTAINERCLEANFILES += uninorm/composition-table.h EXTRA_DIST += uninorm/composition-table.h -- 2.7.4 --nextPart4548680.MdOe7SfORJ--