]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
libtextstyle: Silence a "missing initializer for field" warning.
authorBruno Haible <bruno@clisp.org>
Fri, 2 Jun 2023 23:25:21 +0000 (01:25 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 2 Jun 2023 23:25:21 +0000 (01:25 +0200)
* libtextstyle/lib/color.c (print_color_test): Fill the r, g, b values of all
colors[] elements.

libtextstyle/lib/color.c

index 7689c1b1c7dd0dd6e5933dc8dcf22ef323dce473..41a73e08139bc0f60f9c0564d459d2158f98fa5e 100644 (file)
@@ -1,5 +1,5 @@
 /* Color and styling handling.
-   Copyright (C) 2006-2008, 2019-2020 Free Software Foundation, Inc.
+   Copyright (C) 2006-2008, 2019-2020, 2023 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2006.
 
    This program is free software: you can redistribute it and/or modify
@@ -94,7 +94,7 @@ print_color_test ()
       { "magenta", -2, 255,   0, 255 },
       { "yellow",  -2, 255, 255,   0 },
       { "white",   -2, 255, 255, 255 },
-      { "default", COLOR_DEFAULT }
+      { "default", COLOR_DEFAULT, /* unused: */ -1, -1, -1 }
     };
   term_ostream_t stream;
   int i, row, col;