def shall_exclude_diagnostic_message(message):
    """Exclude certain diagnostics messages"""
    exclusion_list = [
        "-fno-canonical-system-headers",
        "-Wunused-but-set-parameter",
        "-Wno-free-nonheap-object",
        "-Werror=init-list-lifetime",
        "-Werror=class-conversion",
    ]
    return any(word in message for word in exclusion_list)