X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=lexer.c;h=7fc606c22d56962882702f7303568c5713c250ba;hb=c7a62970a6d6f69166730a4d1fa6c227e6b1c818;hp=6f8853d453acf132de13f7de4894a578040cda19;hpb=fe344cb5b29516f26105f0fe2aeaf66d4dbb6d34;p=xonotic%2Fgmqcc.git diff --git a/lexer.c b/lexer.c index 6f8853d..7fc606c 100644 --- a/lexer.c +++ b/lexer.c @@ -50,6 +50,8 @@ static const char *keywords_fg[] = { "typedef", "goto", + "noreturn", + "__builtin_debug_printtype" }; static size_t num_keywords_fg = sizeof(keywords_fg) / sizeof(keywords_fg[0]); @@ -1061,7 +1063,6 @@ int lex_do(lex_file *lex) if (rc < 0) return (lex->tok.ttype = TOKEN_FATAL); - v = lex->tok.value; if (lex->modelname) { frame_macro m; m.value = lex->framevalue; @@ -1352,7 +1353,7 @@ int lex_do(lex_file *lex) lex->tok.ttype = TOKEN_CHARCONST; /* It's a vector if we can successfully scan 3 floats */ -#ifdef WIN32 +#ifdef _MSC_VER if (sscanf_s(lex->tok.value, " %f %f %f ", &lex->tok.constval.v.x, &lex->tok.constval.v.y, &lex->tok.constval.v.z) == 3) #else