]> xenbits.xensource.com Git - people/liuw/freebsd.git/commitdiff
lower again the warnings and remove the pragmas unsupported by gcc 4.2.1
authorbapt <bapt@FreeBSD.org>
Sun, 8 Nov 2015 22:23:21 +0000 (22:23 +0000)
committerbapt <bapt@FreeBSD.org>
Sun, 8 Nov 2015 22:23:21 +0000 (22:23 +0000)
usr.bin/localedef/Makefile
usr.bin/localedef/monetary.c
usr.bin/localedef/numeric.c
usr.bin/localedef/time.c

index 8225cacab6096cc0a903427aaa4a2f9e362625e1..8ce5c4aa592da4bf14aa95dd6750df9586e4feca 100644 (file)
@@ -13,7 +13,7 @@ SRCS= charmap.c \
        time.c \
        wide.c
 
-WARNS= 5
+WARNS= 3
 ${SRCS:M*.c}: parser.h
 parser.h: parser.y
 
index 4700a40799b96d66ef1847ffec240f1ead10deb1..d416e93e1b9665c44f427274a572059024134c57 100644 (file)
@@ -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)
 {
index 0a293ff95b66349f58f7a3a7d32d5c9741d652a1..3ab95d553c6a1060597026021c79022727a88e6f 100644 (file)
@@ -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)
 {
index 8a8c7107918f3ee180172c3a26bd490e7d808d4c..a3ace79727c8389c5766a6ef483ecb1877243625 100644 (file)
@@ -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)
 {