File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -520,7 +520,7 @@ static void stripcomment(unsigned char *line)
520
520
if (icomment == 2 )
521
521
* line ++ = ' ' ;
522
522
} else if (* line == '/' && * (line + 1 )== '/' ){ /* comment to end of line */
523
- continuation = line ;
523
+ continuation = ( char * ) line ;
524
524
while ((continuation = strchr (continuation ,'\a' ))!= NULL ){
525
525
/* don't give the error if the next line is also commented out.
526
526
it is quite annoying to get an error for commenting out a define using:
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ set_tests_properties(gh_217 PROPERTIES PASS_REGULAR_EXPRESSION ".*\\.pwn\\(11\\)
20
20
.*\\ .pwn\\ (13\\ ) : warning 237: user warning: this is warning 2
21
21
.*\\ .pwn\\ (15\\ ) : warning 237: user warning: this is warning 3
22
22
.*\\ .pwn\\ (17\\ ) : warning 237: user warning: this is warning 4
23
- .*\\ .pwn\\ (27 \\ ) : warning 234: function is deprecated \\ (symbol \" f\"\\ ) don't use this function please
24
- .*\\ .pwn\\ (32 \\ ) : warning 234: function is deprecated \\ (symbol \" f\"\\ ) don't use this function please
23
+ .*\\ .pwn\\ (28 \\ ) : warning 234: function is deprecated \\ (symbol \" f\"\\ ) don't use this function please
24
+ .*\\ .pwn\\ (33 \\ ) : warning 234: function is deprecated \\ (symbol \" f\"\\ ) don't use this function please
25
25
" )
26
26
27
27
add_compiler_test(reset_errline_gh_230 ${CMAKE_CURRENT_SOURCE_DIR} /reset_errline_gh_230.pwn)
You can’t perform that action at this time.
0 commit comments