]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
supported_exts.h: make sure that the generated function is static
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 15 Jul 2017 15:54:01 +0000 (17:54 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 17 Jul 2017 13:45:03 +0000 (15:45 +0200)
That avoids compiler warnings due to missing prototype.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
lib/x509/Makefile.am

index 946ed4afaae09d0a7a8bb40d908b7e42067c80ac..8bf2e04b8baa949e894e21f2019900a1fa575537 100644 (file)
@@ -82,4 +82,4 @@ libgnutls_x509_la_SOURCES += ocsp.c ocsp_output.c
 endif
 
 supported_exts.h: $(srcdir)/supported_exts.gperf
-       -gperf --global-table -t $^ > $@-tmp && mv $@-tmp $@
+       -gperf --global-table -t $^ > $@-tmp && sed -i 's/^const struct supported_exts_st \*/static const struct supported_exts_st \*/' $@-tmp && mv $@-tmp $@