Hello there, I just ran the static analysis tool "cppcheck" over the source code of ragel-6.8
It said [parsedata.cpp:471]: (warning) Ineffective call of function 'empty()'. Did you intend to call 'clear()' instead? [fsmbase.cpp:139]: (warning) Ineffective call of function 'empty()'. Did you intend to call 'clear()' instead? [fsmbase.cpp:334]: (warning) Ineffective call of function 'empty()'. Did you intend to call 'clear()' instead? [fsmbase.cpp:428]: (warning) Ineffective call of function 'empty()'. Did you intend to call 'clear()' instead? [fsmgraph.cpp:301]: (warning) Ineffective call of function 'empty()'. Did you intend to call 'clear()' instead? [fsmgraph.cpp:1227]: (warning) Ineffective call of function 'empty()'. Did you intend to call 'clear()' instead? [fsmgraph.cpp:1228]: (warning) Ineffective call of function 'empty()'. Did you intend to call 'clear()' instead? [fsmgraph.cpp:1406]: (warning) Ineffective call of function 'empty()'. Did you intend to call 'clear()' instead? [rlparse.cpp:1413]: (warning) Ineffective call of function 'empty()'. Did you intend to call 'clear()' instead? [rlparse.cpp:1429]: (warning) Ineffective call of function 'empty()'. Did you intend to call 'clear()' instead? I looked at the first two and it did look like clear was intended. Suggest code rework. Regards David Binderman _______________________________________________ ragel-users mailing list ragel-users@complang.org http://www.complang.org/mailman/listinfo/ragel-users