mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 03:15:21 +08:00
Fix compiler warnings (STR #2988) - final commit.
This commit includes all fixes from branch-1.3 (svn r 11243) and additional
fixes for warnings that crept in during the porting efforts, particularly
C++ ("//") comments in C and included header files, and some more.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11246 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -359,7 +359,7 @@ int CodeEditor::auto_indent(int, CodeEditor* e) {
|
||||
char *text = e->buffer()->text_range(start, pos);
|
||||
char *ptr;
|
||||
|
||||
for (ptr = text; isspace(*ptr); ptr ++);
|
||||
for (ptr = text; isspace(*ptr); ptr ++) {/*empty*/}
|
||||
*ptr = '\0';
|
||||
if (*text) {
|
||||
// use only a single 'insert' call to avoid redraw issues
|
||||
|
||||
Reference in New Issue
Block a user