]> Savannah Git Hosting - gnulib.git/commitdiff
Fix several "warning: no previous prototype for function".
authorBruno Haible <bruno@clisp.org>
Sat, 5 Sep 2020 21:50:09 +0000 (23:50 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 5 Sep 2020 21:50:09 +0000 (23:50 +0200)
* 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
modules/unicase/locale-language
modules/unictype/bidiclass-byname
modules/unictype/category-byname
modules/unictype/combining-class-byname
modules/unictype/joininggroup-byname
modules/unictype/joiningtype-byname
modules/unictype/property-byname
modules/unictype/scripts
modules/uninorm/composition

index 3698ba011d80c82242e5b152211ca7fe9e76da44..454bd762bb4702fee3c846068b10fd9d8e595232 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,26 @@
+2020-09-05  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        select: Fix "warning: no previous prototype for function".
index 0ca9c29f98154a64be09ab8fd445429ffb478399..1e6c26a0607a36ea502b13ae5b56f869b17bb14b 100644 (file)
@@ -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
 
index e41b4f0b1cd189d8e2305190e2dfaac9077ff535..ceade91b7f30fcf052df7e344ad21fcafd85f50a 100644 (file)
@@ -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
 
index a0117333f16a620f25b6c257be1b47a059d71254..df08bcdb175f79d431d8e6d4a1af31452d5ffd2d 100644 (file)
@@ -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
 
index e4a70a3bf02c08886015aab6c26287b4a6503e04..f4d0194aac34fe2bf06883c26d801556c254abb7 100644 (file)
@@ -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
 
index cb5765fd52ef56264fb3f37407d06d0acd5754ac..a86df455bf9908cd5edc298c1dfcef4c3c7a2972 100644 (file)
@@ -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
 
index 8c8c669356dc05f8ea6bd99c79e1760f80a39017..e89794f856d2d3898f3eaa0b1b6284f8416957cd 100644 (file)
@@ -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
 
index 0a10709bcfd658cc285815a1020ea244869c3af1..9ffe6efab10e817d37734be50289bfbcfab79371 100644 (file)
@@ -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
 
index 8f8b057ffccde4dc7c8503e8ca986788bbe52b1b..12185e09a7933ae761e971463d3eddadb573a59e 100644 (file)
@@ -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
 
index 6ab319d263318eeb31180cd99cf880ca3f4aa759..32996445953ef83b4822c9c948beb1d1c126daf4 100644 (file)
@@ -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