Another way to say "a horn is for warnings" is "One purpose of a horn is for warning."