setSrtWarning is a function.
    setSrtWarning(warn_str, state)