summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-11-08 22:23:21 +0000
committerbapt <bapt@FreeBSD.org>2015-11-08 22:23:21 +0000
commitb43fe740b5f0640f4d64d1d92c1f20b051a654b6 (patch)
tree4beea9c54c85b7577c422fefece9e3a2443bd140
parent2ce1ab4ad6fd9e377bfe4d6ab1f92be560a00ffb (diff)
downloadFreeBSD-src-b43fe740b5f0640f4d64d1d92c1f20b051a654b6.zip
FreeBSD-src-b43fe740b5f0640f4d64d1d92c1f20b051a654b6.tar.gz
lower again the warnings and remove the pragmas unsupported by gcc 4.2.1
-rw-r--r--usr.bin/localedef/Makefile2
-rw-r--r--usr.bin/localedef/monetary.c5
-rw-r--r--usr.bin/localedef/numeric.c5
-rw-r--r--usr.bin/localedef/time.c5
4 files changed, 1 insertions, 16 deletions
diff --git a/usr.bin/localedef/Makefile b/usr.bin/localedef/Makefile
index 8225cac..8ce5c4a 100644
--- a/usr.bin/localedef/Makefile
+++ b/usr.bin/localedef/Makefile
@@ -13,7 +13,7 @@ SRCS= charmap.c \
time.c \
wide.c
-WARNS= 5
+WARNS= 3
${SRCS:M*.c}: parser.h
parser.h: parser.y
diff --git a/usr.bin/localedef/monetary.c b/usr.bin/localedef/monetary.c
index 4700a40..d416e93 100644
--- a/usr.bin/localedef/monetary.c
+++ b/usr.bin/localedef/monetary.c
@@ -151,9 +151,6 @@ add_monetary_num(int n)
}
}
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wcast-qual"
-
void
reset_monetary_group(void)
{
@@ -178,8 +175,6 @@ add_monetary_group(int n)
mon.mon_grouping = s;
}
-#pragma GCC diagnostic pop
-
void
dump_monetary(void)
{
diff --git a/usr.bin/localedef/numeric.c b/usr.bin/localedef/numeric.c
index 0a293ff..3ab95d5 100644
--- a/usr.bin/localedef/numeric.c
+++ b/usr.bin/localedef/numeric.c
@@ -77,9 +77,6 @@ add_numeric_str(wchar_t *wcs)
}
}
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wcast-qual"
-
void
reset_numeric_group(void)
{
@@ -104,8 +101,6 @@ add_numeric_group(int n)
numeric.grouping = s;
}
-#pragma GCC diagnostic pop
-
void
dump_numeric(void)
{
diff --git a/usr.bin/localedef/time.c b/usr.bin/localedef/time.c
index 8a8c710..a3ace79 100644
--- a/usr.bin/localedef/time.c
+++ b/usr.bin/localedef/time.c
@@ -187,9 +187,6 @@ check_time_list(void)
fprintf(stderr,"too few items in list (%d)", last_kw);
}
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wcast-qual"
-
void
reset_time_list(void)
{
@@ -228,8 +225,6 @@ reset_time_list(void)
}
}
-#pragma GCC diagnostic pop
-
void
dump_time(void)
{
OpenPOWER on IntegriCloud