summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fluid/CodeEditor.cxx4
-rw-r--r--src/Fl_Tree.cxx2
-rw-r--r--test/editor.cxx4
3 files changed, 8 insertions, 2 deletions
diff --git a/fluid/CodeEditor.cxx b/fluid/CodeEditor.cxx
index 78ece08de..c5fe85381 100644
--- a/fluid/CodeEditor.cxx
+++ b/fluid/CodeEditor.cxx
@@ -179,7 +179,9 @@ void CodeEditor::style_parse(const char *text, char *style, int length) {
// Might be a keyword...
for (temp = text, bufptr = buf;
(islower(*temp) || *temp == '_') && bufptr < (buf + sizeof(buf) - 1);
- *bufptr++ = *temp++);
+ *bufptr++ = *temp++) {
+ // nothing
+ }
if (!islower(*temp) && *temp != '_') {
*bufptr = '\0';
diff --git a/src/Fl_Tree.cxx b/src/Fl_Tree.cxx
index 75befe164..218c38544 100644
--- a/src/Fl_Tree.cxx
+++ b/src/Fl_Tree.cxx
@@ -62,6 +62,7 @@ static void free_path(char **arr) {
}
}
+#if 0 /* unused code -- STR #3169 */
// INTERNAL: Recursively descend 'item's tree hierarchy
// accumulating total child 'count'
//
@@ -72,6 +73,7 @@ static int find_total_children(Fl_Tree_Item *item, int count=0) {
}
return(count);
}
+#endif
/// Constructor.
Fl_Tree::Fl_Tree(int X, int Y, int W, int H, const char *L) : Fl_Group(X,Y,W,H,L) {
diff --git a/test/editor.cxx b/test/editor.cxx
index 26cd1802a..e9a397e99 100644
--- a/test/editor.cxx
+++ b/test/editor.cxx
@@ -206,7 +206,9 @@ style_parse(const char *text,
// Might be a keyword...
for (temp = text, bufptr = buf;
(islower((*temp)&255) || *temp == '_') && bufptr < (buf + sizeof(buf) - 1);
- *bufptr++ = *temp++);
+ *bufptr++ = *temp++) {
+ // nothing
+ }
if (!islower((*temp)&255) && *temp != '_') {
*bufptr = '\0';