Newly introduced findings

List of Findings

Error: COMPILER_WARNING: [#def1]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/api.c: scope_hint: In function 'enchant_get_version'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/api.c:73:1: warning[-Wsuggest-attribute=const]: function might be candidate for attribute 'const'
#   73 | enchant_get_version (void)
#      | ^~~~~~~~~~~~~~~~~~~
#   71|   
#   72|   const gchar*
#   73|-> enchant_get_version (void)
#   74|   {
#   75|   	const gchar* result;

Error: COMPILER_WARNING: [#def2]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/api.c: scope_hint: In function 'enchant_get_user_language'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/api.c:84:1: warning[-Wsuggest-attribute=malloc]: function might be candidate for attribute 'malloc'
#   84 | enchant_get_user_language (void)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~
#   82|   
#   83|   gchar*
#   84|-> enchant_get_user_language (void)
#   85|   {
#   86|   	gchar** languages = NULL;

Error: COMPILER_WARNING (CWE-563): [#def3]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/api.c:90:14: warning[-Wunused-but-set-variable]: variable '_languages_size_' set but not used
#   90 |         gint _languages_size_;
#      |              ^~~~~~~~~~~~~~~~
#   88|   	gchar** _tmp1_;
#   89|   	gint languages_length1;
#   90|-> 	gint _languages_size_;
#   91|   	const gchar* _tmp2_ = NULL;
#   92|   	gchar** _tmp3_;

Error: COMPILER_WARNING (CWE-563): [#def4]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/api.c:93:14: warning[-Wunused-but-set-variable]: variable '_tmp3__length1' set but not used
#   93 |         gint _tmp3__length1;
#      |              ^~~~~~~~~~~~~~
#   91|   	const gchar* _tmp2_ = NULL;
#   92|   	gchar** _tmp3_;
#   93|-> 	gint _tmp3__length1;
#   94|   	const gchar* _tmp4_;
#   95|   	gchar* _tmp7_;

Error: COMPILER_WARNING (CWE-563): [#def5]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/api.c:118:22: warning[-Wunused-but-set-variable]: variable '_tmp5__length1' set but not used
#  118 |                 gint _tmp5__length1;
#      |                      ^~~~~~~~~~~~~~
#  116|   	} else {
#  117|   		gchar** _tmp5_;
#  118|-> 		gint _tmp5__length1;
#  119|   		const gchar* _tmp6_;
#  120|   #line 44 "api.vala"

Error: COMPILER_WARNING: [#def6]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c: scope_hint: In function 'normalize_dictionary_tag'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c:571:1: warning[-Wsuggest-attribute=malloc]: function might be candidate for attribute 'malloc'
#  571 | normalize_dictionary_tag (const gchar* dict_tag)
#      | ^~~~~~~~~~~~~~~~~~~~~~~~
#  569|   
#  570|   gchar*
#  571|-> normalize_dictionary_tag (const gchar* dict_tag)
#  572|   {
#  573|   	gchar* new_tag = NULL;

Error: COMPILER_WARNING (CWE-563): [#def7]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c: scope_hint: In function 'normalize_dictionary_tag'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c:639:38: warning[-Wunused-but-set-variable]: variable '_tmp9_' set but not used
#  639 |                                 gint _tmp9_;
#      |                                      ^~~~~~
#  637|   			if (!_tmp8_) {
#  638|   #line 639 "broker.c"
#  639|-> 				gint _tmp9_;
#  640|   #line 45 "broker.vala"
#  641|   				i = i + 1;

Error: COMPILER_WARNING (CWE-563): [#def8]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c:724:30: warning[-Wunused-but-set-variable]: variable '_tmp22_' set but not used
#  724 |                         gint _tmp22_;
#      |                              ^~~~~~~
#  722|   #line 723 "broker.c"
#  723|   		{
#  724|-> 			gint _tmp22_;
#  725|   			gboolean _tmp23_ = FALSE;
#  726|   #line 55 "broker.vala"

Error: COMPILER_WARNING (CWE-563): [#def9]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c:741:46: warning[-Wunused-but-set-variable]: variable '_tmp24_' set but not used
#  741 |                                         gint _tmp24_;
#      |                                              ^~~~~~~
#  739|   				if (!_tmp23_) {
#  740|   #line 741 "broker.c"
#  741|-> 					gint _tmp24_;
#  742|   #line 55 "broker.vala"
#  743|   					i = i + 1;

Error: COMPILER_WARNING: [#def10]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c: scope_hint: In function 'iso_639_from_tag'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c:813:1: warning[-Wsuggest-attribute=malloc]: function might be candidate for attribute 'malloc'
#  813 | iso_639_from_tag (const gchar* dict_tag)
#      | ^~~~~~~~~~~~~~~~
#  811|   
#  812|   gchar*
#  813|-> iso_639_from_tag (const gchar* dict_tag)
#  814|   {
#  815|   	gchar* _tmp0_;

Error: COMPILER_WARNING (CWE-563): [#def11]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c:1894:22: warning[-Wunused-but-set-variable]: variable '_tokens_size_' set but not used
# 1894 |                 gchar** _tmp10_;
#      |                      ^~~~~~~~~~~  
# 1892|   		const gchar* _tmp8_;
# 1893|   		gchar** _tmp9_;
# 1894|-> 		gchar** _tmp10_;
# 1895|   		gint tokens_length1;
# 1896|   		gint _tokens_size_;

Error: COMPILER_WARNING (CWE-563): [#def12]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c: scope_hint: In function 'enchant_broker_get_ordered_providers'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c:1915:30: warning[-Wunused-variable]: unused variable '_token_collection_size_'
# 1915 |                         gchar** token_collection = NULL;
#      |                              ^~~~~~~~~~~~~~~~~~~~~~~
# 1913|   #line 1912 "broker.c"
# 1914|   		{
# 1915|-> 			gchar** token_collection = NULL;
# 1916|   			gint token_collection_length1 = 0;
# 1917|   			gint _token_collection_size_ = 0;

Error: COMPILER_WARNING (CWE-843): [#def13]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c: scope_hint: In function '_composite_dict_suggest_dict_suggest'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c:2266:50: warning[-Wincompatible-pointer-types]: passing argument 4 of 'composite_dict_suggest' from incompatible pointer type
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c:352:39: note: expected 'gint *' {aka 'int *'} but argument is of type 'size_t *' {aka 'long unsigned int *'}
# 2264|                                         size_t len,
# 2265|                                         size_t* result_length1)
# 2266|-> {
# 2267|   	gchar** result;
# 2268|   	result = composite_dict_suggest (me, word, len, result_length1);

Error: COMPILER_WARNING (CWE-563): [#def14]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c:2303:14: warning[-Wunused-but-set-variable]: variable '_tags_size_' set but not used
# 2303 |         gchar** _tmp3_;
#      |              ^~~~~~~~~~ 
# 2301|   	gchar** tags = NULL;
# 2302|   	gchar** _tmp2_;
# 2303|-> 	gchar** _tmp3_;
# 2304|   	gint tags_length1;
# 2305|   	gint _tags_size_;

Error: COMPILER_WARNING (CWE-563): [#def15]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c:2324:14: warning[-Wunused-but-set-variable]: variable '_tmp34__length1' set but not used
# 2324 |         EnchantDict* _tmp33_;
#      |              ^~~~~~~~~~~~~~~
# 2322|   	EnchantDict* _tmp31_;
# 2323|   	EnchantDict* _tmp32_;
# 2324|-> 	EnchantDict* _tmp33_;
# 2325|   	gchar** _tmp34_;
# 2326|   	gint _tmp34__length1;

Error: COMPILER_WARNING (CWE-563): [#def16]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c: scope_hint: In function 'enchant_broker_request_dict_with_pwl'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c:2355:22: warning[-Wunused-variable]: unused variable '_tag_collection_size_'
# 2355 |                 gchar** tag_collection = NULL;
#      |                      ^~~~~~~~~~~~~~~~~~~~~
# 2353|   #line 2352 "broker.c"
# 2354|   	{
# 2355|-> 		gchar** tag_collection = NULL;
# 2356|   		gint tag_collection_length1 = 0;
# 2357|   		gint _tag_collection_size_ = 0;

Error: COMPILER_WARNING (CWE-563): [#def17]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c:2403:22: warning[-Wunused-variable]: unused variable '_tag_collection_size_'
# 2403 |                 gchar** tag_collection = NULL;
#      |                      ^~~~~~~~~~~~~~~~~~~~~
# 2401|   #line 2400 "broker.c"
# 2402|   	{
# 2403|-> 		gchar** tag_collection = NULL;
# 2404|   		gint tag_collection_length1 = 0;
# 2405|   		gint _tag_collection_size_ = 0;

Error: COMPILER_WARNING (CWE-694): [#def18]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c:2420:46: warning[-Wshadow]: declaration of 'dict' shadows a previous local
# 2420 |                                 const gchar* _tmp9_;
#      |                                              ^~~~
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c:2314:22: note: shadowed declaration is here
# 2314 |         EnchantCompositeDict* _tmp24_;
#      |                      ^~~~
# 2418|   			{
# 2419|   				gchar* normalized_tag = NULL;
# 2420|-> 				const gchar* _tmp9_;
# 2421|   				gchar* _tmp10_;
# 2422|   				EnchantDict* dict = NULL;

Error: COMPILER_WARNING (CWE-563): [#def19]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c: scope_hint: In function 'enchant_broker_list_dicts'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c:2786:46: warning[-Wunused-variable]: unused variable '_tag_collection_size_'
# 2786 |                                         gchar** tag_collection = NULL;
#      |                                              ^~~~~~~~~~~~~~~~~~~~~
# 2784|   #line 2783 "broker.c"
# 2785|   				{
# 2786|-> 					gchar** tag_collection = NULL;
# 2787|   					gint tag_collection_length1 = 0;
# 2788|   					gint _tag_collection_size_ = 0;

Error: COMPILER_WARNING (CWE-563): [#def20]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c: scope_hint: In function 'enchant_broker_instance_init'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/broker.c:3289:47: warning[-Wunused-parameter]: unused parameter 'self'
# 3289 | 
#      |                                               ^   
# 3287|   #line 3286 "broker.c"
# 3288|   }
# 3289|-> 
# 3290|   static void
# 3291|   enchant_broker_instance_init (EnchantBroker * self)

Error: COMPILER_WARNING (CWE-563): [#def21]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/composite.c: scope_hint: In function 'value_enchant_composite_dict_collect_value'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/composite.c:290:51: warning[-Wunused-parameter]: unused parameter 'n_collect_values'
#  290 |                                             guint n_collect_values,
#      |                                             ~~~~~~^~~~~~~~~~~~~~~~
#  288|   static gchar*
#  289|   value_enchant_composite_dict_collect_value (GValue* value,
#  290|->                                             guint n_collect_values,
#  291|                                               GTypeCValue* collect_values,
#  292|                                               guint collect_flags)

Error: COMPILER_WARNING (CWE-563): [#def22]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/composite.c:292:51: warning[-Wunused-parameter]: unused parameter 'collect_flags'
#  292 |                                             guint collect_flags)
#      |                                             ~~~~~~^~~~~~~~~~~~~
#  290|                                               guint n_collect_values,
#  291|                                               GTypeCValue* collect_values,
#  292|->                                             guint collect_flags)
#  293|   {
#  294|   #line 29 "composite.vala"

Error: COMPILER_WARNING (CWE-563): [#def23]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/composite.c: scope_hint: In function 'value_enchant_composite_dict_lcopy_value'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/composite.c:324:49: warning[-Wunused-parameter]: unused parameter 'n_collect_values'
#  324 |                                           guint n_collect_values,
#      |                                           ~~~~~~^~~~~~~~~~~~~~~~
#  322|   static gchar*
#  323|   value_enchant_composite_dict_lcopy_value (const GValue* value,
#  324|->                                           guint n_collect_values,
#  325|                                             GTypeCValue* collect_values,
#  326|                                             guint collect_flags)

Error: COMPILER_WARNING (CWE-563): [#def24]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/composite.c: scope_hint: In function 'enchant_composite_dict_class_init'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/composite.c:450:45: warning[-Wunused-parameter]: unused parameter 'klass_data'
#  450 |                                    gpointer klass_data)
#      |                                    ~~~~~~~~~^~~~~~~~~~
#  448|   static void
#  449|   enchant_composite_dict_class_init (EnchantCompositeDictClass * klass,
#  450|->                                    gpointer klass_data)
#  451|   {
#  452|   #line 29 "composite.vala"

Error: COMPILER_WARNING (CWE-563): [#def25]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/composite.c: scope_hint: In function 'enchant_composite_dict_instance_init'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/composite.c:461:48: warning[-Wunused-parameter]: unused parameter 'klass'
#  461 |                                       gpointer klass)
#      |                                       ~~~~~~~~~^~~~~
#  459|   static void
#  460|   enchant_composite_dict_instance_init (EnchantCompositeDict * self,
#  461|->                                       gpointer klass)
#  462|   {
#  463|   #line 29 "composite.vala"

Error: COMPILER_WARNING (CWE-563): [#def26]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/composite.c:789:38: warning[-Wunused-but-set-variable]: variable '_suggs_size_' set but not used
#  789 |                                 gint _suggs_size_;
#      |                                      ^~~~~~~~~~~~
#  787|   				gchar** _tmp8_;
#  788|   				gint suggs_length1;
#  789|-> 				gint _suggs_size_;
#  790|   				gchar** _tmp9_;
#  791|   				gint _tmp9__length1;

Error: COMPILER_WARNING (CWE-563): [#def27]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/composite.c:791:38: warning[-Wunused-but-set-variable]: variable '_tmp9__length1' set but not used
#  791 |                                 gint _tmp9__length1;
#      |                                      ^~~~~~~~~~~~~~
#  789|   				gint _suggs_size_;
#  790|   				gchar** _tmp9_;
#  791|-> 				gint _tmp9__length1;
#  792|   #line 59 "composite.vala"
#  793|   				_tmp6_ = dict;

Error: COMPILER_WARNING (CWE-563): [#def28]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/composite.c:809:49: warning[-Wunused-but-set-variable]: variable '_tmp10_' set but not used
#  809 |                                         gchar** _tmp10_;
#      |                                                 ^~~~~~~
#  807|   				if (_tmp9_ != NULL) {
#  808|   #line 809 "composite.c"
#  809|-> 					gchar** _tmp10_;
#  810|   					gint _tmp10__length1;
#  811|   #line 61 "composite.vala"

Error: COMPILER_WARNING (CWE-563): [#def29]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/composite.c:832:81: warning[-Wunused-but-set-variable]: variable '_tmp13_' set but not used
#  832 |                                                                         gchar** _tmp13_;
#      |                                                                                 ^~~~~~~
#  830|   								while (TRUE) {
#  831|   #line 832 "composite.c"
#  832|-> 									gchar** _tmp13_;
#  833|   									gint _tmp13__length1;
#  834|   									GArray* _tmp14_;

Error: COMPILER_WARNING (CWE-563): [#def30]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/composite.c: scope_hint: In function 'composite_dict_suggest'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/composite.c:836:78: warning[-Wunused-but-set-variable]: variable '_tmp15__length1' set but not used
#  836 |                                                                         gint _tmp15__length1;
#      |                                                                              ^~~~~~~~~~~~~~~
#  834|   									GArray* _tmp14_;
#  835|   									gchar** _tmp15_;
#  836|-> 									gint _tmp15__length1;
#  837|   									const gchar* _tmp16_;
#  838|   									gchar* _tmp17_;

Error: COMPILER_WARNING (CWE-563): [#def31]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/dict.c: scope_hint: In function 'enchant_dict_filter_suggestions'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/dict.c:723:22: warning[-Wunused-variable]: unused variable '_sugg_collection_size_'
#  723 |                 gint _sugg_collection_size_ = 0;
#      |                      ^~~~~~~~~~~~~~~~~~~~~~
#  721|   		gchar** sugg_collection = NULL;
#  722|   		gint sugg_collection_length1 = 0;
#  723|-> 		gint _sugg_collection_size_ = 0;
#  724|   		gint sugg_it = 0;
#  725|   #line 148 "dict.vala"

Error: COMPILER_WARNING (CWE-563): [#def32]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/dict.c:815:14: warning[-Wunused-but-set-variable]: variable '_dict_suggs_size_' set but not used
#  815 |         gint _dict_suggs_size_;
#      |              ^~~~~~~~~~~~~~~~~
#  813|   	gchar** dict_suggs = NULL;
#  814|   	gint dict_suggs_length1;
#  815|-> 	gint _dict_suggs_size_;
#  816|   	DictSuggest _tmp4_;
#  817|   	gchar** _tmp16_;

Error: COMPILER_WARNING (CWE-563): [#def33]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/dict.c: scope_hint: In function 'enchant_dict_suggest'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/dict.c:876:22: warning[-Wunused-but-set-variable]: variable '_tmp12__length1' set but not used
#  876 |                 gint _tmp12__length1;
#      |                      ^~~~~~~~~~~~~~~
#  874|   		gchar** _tmp11_;
#  875|   		gchar** _tmp12_;
#  876|-> 		gint _tmp12__length1;
#  877|   #line 166 "dict.vala"
#  878|   		_tmp5_ = self->suggest_method;

Error: COMPILER_WARNING (CWE-563): [#def34]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/dict.c: scope_hint: In function 'enchant_dict_store_replacement'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/dict.c:1265:41: warning[-Wunused-parameter]: unused parameter 'mis_len'
# 1265 |                                 ssize_t mis_len,
#      |                                 ~~~~~~~~^~~~~~~
# 1263|   enchant_dict_store_replacement (EnchantDict* self,
# 1264|                                   const gchar* mis,
# 1265|->                                 ssize_t mis_len,
# 1266|                                   const gchar* cor,
# 1267|                                   ssize_t cor_len)

Error: COMPILER_WARNING (CWE-563): [#def35]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/dict.c:1267:41: warning[-Wunused-parameter]: unused parameter 'cor_len'
# 1267 |                                 ssize_t cor_len)
#      |                                 ~~~~~~~~^~~~~~~
# 1265|                                   ssize_t mis_len,
# 1266|                                   const gchar* cor,
# 1267|->                                 ssize_t cor_len)
# 1268|   {
# 1269|   #line 223 "dict.vala"

Error: COMPILER_WARNING (CWE-563): [#def36]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/dict.c: scope_hint: In function 'value_enchant_dict_collect_value'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/dict.c:1514:41: warning[-Wunused-parameter]: unused parameter 'n_collect_values'
# 1514 |                                   guint n_collect_values,
#      |                                   ~~~~~~^~~~~~~~~~~~~~~~
# 1512|   static gchar*
# 1513|   value_enchant_dict_collect_value (GValue* value,
# 1514|->                                   guint n_collect_values,
# 1515|                                     GTypeCValue* collect_values,
# 1516|                                     guint collect_flags)

Error: COMPILER_WARNING (CWE-563): [#def37]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/dict.c:1516:41: warning[-Wunused-parameter]: unused parameter 'collect_flags'
# 1516 |                                   guint collect_flags)
#      |                                   ~~~~~~^~~~~~~~~~~~~
# 1514|                                     guint n_collect_values,
# 1515|                                     GTypeCValue* collect_values,
# 1516|->                                   guint collect_flags)
# 1517|   {
# 1518|   #line 44 "dict.vala"

Error: COMPILER_WARNING (CWE-563): [#def38]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/dict.c: scope_hint: In function 'value_enchant_dict_lcopy_value'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/dict.c:1548:39: warning[-Wunused-parameter]: unused parameter 'n_collect_values'
# 1548 |                                 guint n_collect_values,
#      |                                 ~~~~~~^~~~~~~~~~~~~~~~
# 1546|   static gchar*
# 1547|   value_enchant_dict_lcopy_value (const GValue* value,
# 1548|->                                 guint n_collect_values,
# 1549|                                   GTypeCValue* collect_values,
# 1550|                                   guint collect_flags)

Error: COMPILER_WARNING (CWE-563): [#def39]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/dict.c: scope_hint: In function 'enchant_dict_class_init'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/dict.c:1674:35: warning[-Wunused-parameter]: unused parameter 'klass_data'
# 1674 |                          gpointer klass_data)
#      |                          ~~~~~~~~~^~~~~~~~~~
# 1672|   static void
# 1673|   enchant_dict_class_init (EnchantDictClass * klass,
# 1674|->                          gpointer klass_data)
# 1675|   {
# 1676|   #line 44 "dict.vala"

Error: COMPILER_WARNING (CWE-563): [#def40]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/dict.c: scope_hint: In function 'enchant_dict_instance_init'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/dict.c:1685:38: warning[-Wunused-parameter]: unused parameter 'klass'
# 1685 |                             gpointer klass)
#      |                             ~~~~~~~~~^~~~~
# 1683|   static void
# 1684|   enchant_dict_instance_init (EnchantDict * self,
# 1685|->                             gpointer klass)
# 1686|   {
# 1687|   #line 44 "dict.vala"

Error: COMPILER_WARNING (CWE-563): [#def41]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/provider.c: scope_hint: In function '_enchant_provider_dictionary_exists'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/provider.c:613:8: warning[-Wunused-variable]: unused variable '_dict_collection_size_'
#  613 | #line 610 "provider.c"
#      |        ^~~~~~~~~~~~~~~       
#  611|   #line 141 "provider.vala"
#  612|   	_tmp4_ = _tmp2_ (self, &_tmp3_);
#  613|-> #line 610 "provider.c"
#  614|   	{
#  615|   		gchar** dict_collection = NULL;

Error: COMPILER_WARNING: [#def42]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/provider.c: scope_hint: In function 'enchant_provider_get_user_dict_dir'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/provider.c:662:1: warning[-Wsuggest-attribute=malloc]: function might be candidate for attribute 'malloc'
#  662 | #line 659 "provider.c"
#      | ^~~~~~~~~~~~~~~~~~~~~~            
#  660|   #line 144 "provider.vala"
#  661|   	return result;
#  662|-> #line 659 "provider.c"
#  663|   }
#  664|   

Error: COMPILER_WARNING (CWE-563): [#def43]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/provider.c: scope_hint: In function 'value_enchant_provider_collect_value'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/provider.c:755:45: warning[-Wunused-parameter]: unused parameter 'n_collect_values'
#  755 | }
#      |                                             ^               
#  753|   	return value->data[0].v_pointer;
#  754|   #line 751 "provider.c"
#  755|-> }
#  756|   
#  757|   static gchar*

Error: COMPILER_WARNING (CWE-563): [#def44]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/provider.c:757:45: warning[-Wunused-parameter]: unused parameter 'collect_flags'
#  757 | static gchar*
#      |                                             ^            
#  755|   }
#  756|   
#  757|-> static gchar*
#  758|   value_enchant_provider_collect_value (GValue* value,
#  759|                                         guint n_collect_values,

Error: COMPILER_WARNING (CWE-563): [#def45]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/provider.c: scope_hint: In function 'value_enchant_provider_lcopy_value'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/provider.c:789:43: warning[-Wunused-parameter]: unused parameter 'n_collect_values'
#  789 | }
#      |                                           ^               
#  787|   	return NULL;
#  788|   #line 785 "provider.c"
#  789|-> }
#  790|   
#  791|   static gchar*

Error: COMPILER_WARNING (CWE-563): [#def46]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/provider.c: scope_hint: In function 'enchant_provider_class_init'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/provider.c:915:39: warning[-Wunused-parameter]: unused parameter 'klass_data'
#  915 | }
#      |                                       ^         
#  913|   #line 910 "provider.c"
#  914|   	}
#  915|-> }
#  916|   
#  917|   static void

Error: COMPILER_WARNING (CWE-563): [#def47]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/provider.c: scope_hint: In function 'enchant_provider_instance_init'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/provider.c:926:42: warning[-Wunused-parameter]: unused parameter 'klass'
#  926 | }
#      |                                          ^    
#  924|   	((EnchantProviderClass *) klass)->finalize = enchant_provider_finalize;
#  925|   #line 922 "provider.c"
#  926|-> }
#  927|   
#  928|   static void

Error: COMPILER_WARNING (CWE-563): [#def48]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/session.c: scope_hint: In function 'value_enchant_session_collect_value'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/session.c:744:44: warning[-Wunused-parameter]: unused parameter 'n_collect_values'
#  744 |                                      guint n_collect_values,
#      |                                      ~~~~~~^~~~~~~~~~~~~~~~
#  742|   static gchar*
#  743|   value_enchant_session_collect_value (GValue* value,
#  744|->                                      guint n_collect_values,
#  745|                                        GTypeCValue* collect_values,
#  746|                                        guint collect_flags)

Error: COMPILER_WARNING (CWE-563): [#def49]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/session.c:746:44: warning[-Wunused-parameter]: unused parameter 'collect_flags'
#  746 |                                      guint collect_flags)
#      |                                      ~~~~~~^~~~~~~~~~~~~
#  744|                                        guint n_collect_values,
#  745|                                        GTypeCValue* collect_values,
#  746|->                                      guint collect_flags)
#  747|   {
#  748|   #line 30 "session.vala"

Error: COMPILER_WARNING (CWE-563): [#def50]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/session.c: scope_hint: In function 'value_enchant_session_lcopy_value'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/session.c:778:42: warning[-Wunused-parameter]: unused parameter 'n_collect_values'
#  778 |                                    guint n_collect_values,
#      |                                    ~~~~~~^~~~~~~~~~~~~~~~
#  776|   static gchar*
#  777|   value_enchant_session_lcopy_value (const GValue* value,
#  778|->                                    guint n_collect_values,
#  779|                                      GTypeCValue* collect_values,
#  780|                                      guint collect_flags)

Error: COMPILER_WARNING (CWE-563): [#def51]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/session.c: scope_hint: In function 'enchant_session_class_init'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/session.c:904:38: warning[-Wunused-parameter]: unused parameter 'klass_data'
#  904 |                             gpointer klass_data)
#      |                             ~~~~~~~~~^~~~~~~~~~
#  902|   static void
#  903|   enchant_session_class_init (EnchantSessionClass * klass,
#  904|->                             gpointer klass_data)
#  905|   {
#  906|   #line 30 "session.vala"

Error: COMPILER_WARNING (CWE-563): [#def52]
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/session.c: scope_hint: In function 'enchant_session_instance_init'
enchant2-2.8.2-build/enchant-2.8.2/build_native/lib/session.c:915:41: warning[-Wunused-parameter]: unused parameter 'klass'
#  915 |                                gpointer klass)
#      |                                ~~~~~~~~~^~~~~
#  913|   static void
#  914|   enchant_session_instance_init (EnchantSession * self,
#  915|->                                gpointer klass)
#  916|   {
#  917|   #line 30 "session.vala"

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.82.0
diffbase-analyzer-version-cppcheck2.16.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer15.0.0
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-160.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-nameenchant2-2.8.1-2.fc41
diffbase-store-results-to/tmp/tmpp8i2mu36/enchant2-2.8.1-2.fc41.tar.xz
diffbase-time-created2024-11-12 23:43:28
diffbase-time-finished2024-11-12 23:46:29
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpp8i2mu36/enchant2-2.8.1-2.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpp8i2mu36/enchant2-2.8.1-2.fc41.src.rpm'
diffbase-tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-160.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameenchant2-2.8.2-1.fc42
store-results-to/tmp/tmpevhd2e4b/enchant2-2.8.2-1.fc42.tar.xz
time-created2024-11-12 23:46:53
time-finished2024-11-12 23:49:31
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpevhd2e4b/enchant2-2.8.2-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpevhd2e4b/enchant2-2.8.2-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9