Get repository to build with GCC 11

See #594
This commit is contained in:
Justine Tunney 2022-09-13 04:14:20 -07:00
parent 446a1f7c5a
commit 06f9a5b627
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
34 changed files with 115 additions and 51 deletions

View file

@ -891,7 +891,7 @@ static Bool CompareColors( const int rgbBG[3], const int rgbFG[3] )
* blue = 5.
*********************************************************************/
static Bool GetRgb( ctmbstr color, int rgb[] )
static Bool GetRgb( ctmbstr color, int rgb[3] )
{
uint x;

View file

@ -14,6 +14,10 @@
#include "libc/fmt/fmt.h"
#include "third_party/tidy/utf8.h"
#if __GNUC__ >= 11 /* [jart] this one looks legit */
#pragma GCC diagnostic ignored "-Wmisleading-indentation"
#endif
/*
Bind attribute types to procedures to check values.
You can add new procedures for better validation