Cast error on mac.

Yet again fixing the tests...
This commit is contained in:
Y_Less 2018-06-30 17:23:12 +02:00
parent 2f33bbae76
commit 000b4d52b9
2 changed files with 3 additions and 3 deletions

View File

@ -520,7 +520,7 @@ static void stripcomment(unsigned char *line)
if (icomment==2)
*line++=' ';
} else if (*line=='/' && *(line+1)=='/'){ /* comment to end of line */
continuation=line;
continuation=(char*)line;
while ((continuation=strchr(continuation,'\a'))!=NULL){
/* don't give the error if the next line is also commented out.
it is quite annoying to get an error for commenting out a define using:

View File

@ -20,8 +20,8 @@ set_tests_properties(gh_217 PROPERTIES PASS_REGULAR_EXPRESSION ".*\\.pwn\\(11\\)
.*\\.pwn\\(13\\) : warning 237: user warning: this is warning 2
.*\\.pwn\\(15\\) : warning 237: user warning: this is warning 3
.*\\.pwn\\(17\\) : warning 237: user warning: this is warning 4
.*\\.pwn\\(27\\) : warning 234: function is deprecated \\(symbol \"f\"\\) don't use this function please
.*\\.pwn\\(32\\) : warning 234: function is deprecated \\(symbol \"f\"\\) don't use this function please
.*\\.pwn\\(28\\) : warning 234: function is deprecated \\(symbol \"f\"\\) don't use this function please
.*\\.pwn\\(33\\) : warning 234: function is deprecated \\(symbol \"f\"\\) don't use this function please
")
add_compiler_test(reset_errline_gh_230 ${CMAKE_CURRENT_SOURCE_DIR}/reset_errline_gh_230.pwn)