<commit_before>target_compile_options(${PROJECT} PUBLIC
        -Wall
        -Wextra
        -Werror
        -Wfatal-errors
        -Wdouble-promotion
        #-Wstrict-prototypes
        -Wstrict-overflow
        #-Werror-implicit-function-declaration
        -Wfloat-equal
        #-Wundef
        -Wshadow
        -Wwrite-strings
        -Wsign-compare
        -Wmissing-format-attribute
        -Wunreachable-code
        -Wcast-align
        -Wcast-function-type
        -Wcast-qual
        -Wnull-dereference
        -Wuninitialized
        -Wunused
        -Wredundant-decls
        )

# GCC version 9 or prior has a bug with incorrect Wconversion warnings
if (CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 10.0)
  target_compile_options(${PROJECT} PUBLIC
        -Wconversion
        )
endif()<commit_msg>only enable warnings with approriate gcc version for rp2040<commit_after>target_compile_options(${PROJECT} PUBLIC
        -Wall
        -Wextra
        -Werror
        -Wfatal-errors
        -Wdouble-promotion
        -Wfloat-equal
        -Wshadow
        -Wwrite-strings
        -Wsign-compare
        -Wmissing-format-attribute
        -Wunreachable-code
        -Wcast-align
        -Wcast-qual
        -Wnull-dereference
        -Wuninitialized
        -Wunused
        -Wredundant-decls
        #-Wstrict-prototypes
        #-Werror-implicit-function-declaration
        #-Wundef
        )

# GCC 10
if (CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 10.0)
  target_compile_options(${PROJECT} PUBLIC -Wconversion)
endif()

# GCC 8
if (CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 8.0)
  target_compile_options(${PROJECT} PUBLIC -Wcast-function-type -Wstrict-overflow)
endif()
{'fraction_non_alphanumeric': 0.08186101295641932, 'fraction_numerical': 0.009422850412249705, 'mean_word_length': 2.0124113475177303, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2448808', 'n_tokens_mistral': 578, 'n_tokens_neox': 543, 'n_words': 94}