diff options
Diffstat (limited to 'usr.bin/mklocale/yacc.y')
-rw-r--r-- | usr.bin/mklocale/yacc.y | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/mklocale/yacc.y b/usr.bin/mklocale/yacc.y index 546f343..9709400 100644 --- a/usr.bin/mklocale/yacc.y +++ b/usr.bin/mklocale/yacc.y @@ -47,6 +47,7 @@ __FBSDID("$FreeBSD$"); #include <arpa/inet.h> #include <ctype.h> +#include <err.h> #include <rune.h> #include <stddef.h> #include <stdio.h> @@ -122,7 +123,9 @@ entry : ENCODING STRING strcpy((char *)new_locale.variable, $1); } | INVALID RUNE - { new_locale.invalid_rune = $2; } + { warnx("the INVALID keyword is deprecated"); + new_locale.invalid_rune = $2; + } | LIST list { set_map(&types, $2, $1); } | MAPLOWER map |