Fixed findings

List of Findings

Error: COMPILER_WARNING: [#def1]
enchant-2.8.15/build_native/lib/broker.c:1787:22: warning[-Wunused-but-set-variable=]: variable '_tokens_size_' set but not used
# 1787 |                 gchar** _tmp10_;
#      |                      ^~~~~~~~~~~  
# 1785|   		const gchar* _tmp8_;
# 1786|   		gchar** _tmp9_;
# 1787|-> 		gchar** _tmp10_;
# 1788|   		gint tokens_length1;
# 1789|   		gint _tokens_size_;

Error: COMPILER_WARNING (CWE-563): [#def2]
enchant-2.8.15/build_native/lib/broker.c: scope_hint: In function 'enchant_broker_get_ordered_providers'
enchant-2.8.15/build_native/lib/broker.c:1808:30: warning[-Wunused-variable]: unused variable '_token_collection_size_'
# 1808 |                         gchar** token_collection = NULL;
#      |                              ^~~~~~~~~~~~~~~~~~~~~~~
# 1806|   #line 1805 "broker.c"
# 1807|   		{
# 1808|-> 			gchar** token_collection = NULL;
# 1809|   			gint token_collection_length1 = 0;
# 1810|   			gint _token_collection_size_ = 0;

Error: COMPILER_WARNING: [#def3]
enchant-2.8.15/build_native/lib/broker.c:2141:14: warning[-Wunused-but-set-variable=]: variable '_tags_size_' set but not used
# 2141 |         gchar** _tmp3_;
#      |              ^~~~~~~~~~ 
# 2139|   	gchar** tags = NULL;
# 2140|   	gchar** _tmp2_;
# 2141|-> 	gchar** _tmp3_;
# 2142|   	gint tags_length1;
# 2143|   	gint _tags_size_;

Error: COMPILER_WARNING: [#def4]
enchant-2.8.15/build_native/lib/broker.c:2153:14: warning[-Wunused-but-set-variable=]: variable '_tmp26__length1' set but not used
# 2153 |         EnchantCompositeDict* _tmp25_;
#      |              ^~~~~~~~~~~~~~~
# 2151|   	GSList* _tmp23_;
# 2152|   	EnchantCompositeDict* _tmp24_;
# 2153|-> 	EnchantCompositeDict* _tmp25_;
# 2154|   	gchar** _tmp26_;
# 2155|   	gint _tmp26__length1;

Error: COMPILER_WARNING (CWE-563): [#def5]
enchant-2.8.15/build_native/lib/broker.c: scope_hint: In function 'enchant_broker_request_dict_with_pwl'
enchant-2.8.15/build_native/lib/broker.c:2186:22: warning[-Wunused-variable]: unused variable '_tag_collection_size_'
# 2186 |                 gchar** tag_collection = NULL;
#      |                      ^~~~~~~~~~~~~~~~~~~~~
# 2184|   #line 2183 "broker.c"
# 2185|   	{
# 2186|-> 		gchar** tag_collection = NULL;
# 2187|   		gint tag_collection_length1 = 0;
# 2188|   		gint _tag_collection_size_ = 0;

Error: COMPILER_WARNING (CWE-563): [#def6]
enchant-2.8.15/build_native/lib/broker.c:2234:22: warning[-Wunused-variable]: unused variable '_tag_collection_size_'
# 2234 |                 gchar** tag_collection = NULL;
#      |                      ^~~~~~~~~~~~~~~~~~~~~
# 2232|   #line 2231 "broker.c"
# 2233|   	{
# 2234|-> 		gchar** tag_collection = NULL;
# 2235|   		gint tag_collection_length1 = 0;
# 2236|   		gint _tag_collection_size_ = 0;

Error: COMPILER_WARNING (CWE-563): [#def7]
enchant-2.8.15/build_native/lib/broker.c: scope_hint: In function 'enchant_broker_list_dicts'
enchant-2.8.15/build_native/lib/broker.c:2585:46: warning[-Wunused-variable]: unused variable '_tag_collection_size_'
# 2585 |                                         gchar** tag_collection = NULL;
#      |                                              ^~~~~~~~~~~~~~~~~~~~~
# 2583|   #line 2582 "broker.c"
# 2584|   				{
# 2585|-> 					gchar** tag_collection = NULL;
# 2586|   					gint tag_collection_length1 = 0;
# 2587|   					gint _tag_collection_size_ = 0;

Error: COMPILER_WARNING (CWE-563): [#def8]
enchant-2.8.15/build_native/lib/provider.c: scope_hint: In function '_enchant_provider_dictionary_exists'
enchant-2.8.15/build_native/lib/provider.c:593:8: warning[-Wunused-variable]: unused variable '_dict_collection_size_'
#  593 | #line 590 "provider.c"
#      |        ^~~~~~~~~~~~~~~       
#  591|   #line 138 "provider.vala"
#  592|   	_tmp4_ = _tmp2_ (self, &_tmp3_);
#  593|-> #line 590 "provider.c"
#  594|   	{
#  595|   		gchar** dict_collection = NULL;

Error: COMPILER_WARNING: [#def9] [important]
enchant-2.8.15/build_native/lib/provider.vala:62:34: error[error]: 'INSTALLPREFIX' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def10]
enchant-2.8.15/build_native/src/enchant.c: scope_hint: In function ‘print_utf’
enchant-2.8.15/build_native/src/enchant.c:477:22: warning[-Wunused-but-set-variable=]: variable ‘_buf_size_’ set but not used
#  477 |                 gint _buf_size_;
#      |                      ^~~~~~~~~~
#  475|   		guint8* buf = NULL;
#  476|   		gint buf_length1;
#  477|-> 		gint _buf_size_;
#  478|   		FILE* _tmp4_;
#  479|   		guint8* _tmp5_;

Error: COMPILER_WARNING: [#def11]
enchant-2.8.15/build_native/src/enchant.c:2628:14: warning[-Wunused-but-set-variable=]: variable ‘_tmp8__length1’ set but not used
# 2628 |         gint _tmp8__length1;
#      |              ^~~~~~~~~~~~~~
# 2626|   	FILE* fp = NULL;
# 2627|   	gchar** _tmp8_;
# 2628|-> 	gint _tmp8__length1;
# 2629|   	gchar** _tmp11_;
# 2630|   	gint _tmp11__length1;

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-244.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameenchant2-2.8.19-2.fc45
diffbase-store-results-to/tmp/tmp918wg_po/enchant2-2.8.19-2.fc45.tar.xz
diffbase-time-created2026-08-03 14:05:03
diffbase-time-finished2026-08-03 14:11:21
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp918wg_po/enchant2-2.8.19-2.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp918wg_po/enchant2-2.8.19-2.fc45.src.rpm'
diffbase-tool-versioncsmock-3.8.7.HEAD-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-244.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameenchant2-2.8.15-1.fc44
store-results-to/tmp/tmp84tn715a/enchant2-2.8.15-1.fc44.tar.xz
time-created2026-08-03 14:00:55
time-finished2026-08-03 14:04:46
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp84tn715a/enchant2-2.8.15-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp84tn715a/enchant2-2.8.15-1.fc44.src.rpm'
tool-versioncsmock-3.8.7.HEAD-1.el9