aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2013-05-23 18:07:01 +0000
committerEd Schouten <ed@FreeBSD.org>2013-05-23 18:07:01 +0000
commitb94c7c3e21f3543fa6735c2d659401a3d991b6fa (patch)
tree5c31f57b6144f27fdaa91377b9d91aa0835b97f0 /lib
parentf4913884d72cf26a63daf0eac29bae12f1e0623f (diff)
downloadsrc-b94c7c3e21f3543fa6735c2d659401a3d991b6fa.tar.gz
src-b94c7c3e21f3543fa6735c2d659401a3d991b6fa.zip
Let iconv build on -HEAD properly.
- Add NO_WMISSING_VARIABLE_DECLARATIONS where we use Yacc/Lex. - Add variable declarations where possible. - Add missing static keyword.
Notes
Notes: svn path=/head/; revision=250938
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/iconv/citrus_iconv_local.h1
-rw-r--r--lib/libc/iconv/citrus_mapper_local.h1
-rw-r--r--lib/libc/iconv/citrus_stdenc_local.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/iconv/citrus_iconv_local.h b/lib/libc/iconv/citrus_iconv_local.h
index db2036384e5b..081a70834b81 100644
--- a/lib/libc/iconv/citrus_iconv_local.h
+++ b/lib/libc/iconv/citrus_iconv_local.h
@@ -57,6 +57,7 @@ static void _citrus_##_m_##_iconv_uninit_context \
#define _CITRUS_ICONV_DEF_OPS(_m_) \
+extern struct _citrus_iconv_ops _citrus_##_m_##_iconv_ops; \
struct _citrus_iconv_ops _citrus_##_m_##_iconv_ops = { \
/* io_init_shared */ &_citrus_##_m_##_iconv_init_shared, \
/* io_uninit_shared */ &_citrus_##_m_##_iconv_uninit_shared, \
diff --git a/lib/libc/iconv/citrus_mapper_local.h b/lib/libc/iconv/citrus_mapper_local.h
index 887a35d376a4..8d29e63a4a96 100644
--- a/lib/libc/iconv/citrus_mapper_local.h
+++ b/lib/libc/iconv/citrus_mapper_local.h
@@ -52,6 +52,7 @@ static void _citrus_##_m_##_mapper_init_state \
(void);
#define _CITRUS_MAPPER_DEF_OPS(_m_) \
+extern struct _citrus_mapper_ops _citrus_##_m_##_mapper_ops; \
struct _citrus_mapper_ops _citrus_##_m_##_mapper_ops = { \
/* mo_init */ &_citrus_##_m_##_mapper_init, \
/* mo_uninit */ &_citrus_##_m_##_mapper_uninit, \
diff --git a/lib/libc/iconv/citrus_stdenc_local.h b/lib/libc/iconv/citrus_stdenc_local.h
index c55387a10bf2..141abffea9b9 100644
--- a/lib/libc/iconv/citrus_stdenc_local.h
+++ b/lib/libc/iconv/citrus_stdenc_local.h
@@ -84,6 +84,7 @@ static int _citrus_##_e_##_stdenc_get_state_desc \
struct _citrus_stdenc_state_desc * __restrict)
#define _CITRUS_STDENC_DEF_OPS(_e_) \
+extern struct _citrus_stdenc_ops _citrus_##_e_##_stdenc_ops; \
struct _citrus_stdenc_ops _citrus_##_e_##_stdenc_ops = { \
/* eo_init */ &_citrus_##_e_##_stdenc_init, \
/* eo_uninit */ &_citrus_##_e_##_stdenc_uninit, \