maint: add three casts-in-initialization to avoid warnings

* sed/compile.c (special_files): When initializing, cast string
literals to (char *) to avoid warnings.
This commit is contained in:
Jim Meyering committed 2014-11-30 21:08:33 -08:00
1 parent 2fae6cb1e3
commit 263c26e4d1
1 file changed
+4 -4
+4 -4
View File
@@ -80,10 +80,10 @@ struct special_files {
};
static FILE *my_stdin, *my_stdout, *my_stderr;
static const struct special_files special_files[] = {
{ { "/dev/stdin", false, NULL, NULL }, &my_stdin },
{ { "/dev/stdout", false, NULL, NULL }, &my_stdout },
{ { "/dev/stderr", false, NULL, NULL }, &my_stderr },
static struct special_files special_files[] = {
{ { (char *) "/dev/stdin", false, NULL, NULL }, &my_stdin },
{ { (char *) "/dev/stdout", false, NULL, NULL }, &my_stdout },
{ { (char *) "/dev/stderr", false, NULL, NULL }, &my_stderr },
{ { NULL, false, NULL, NULL }, NULL }
};