enchant2-2.8.12-4.fc44

List of Findings

Error: COMPILER_WARNING: [#def1] [important]
enchant-2.8.12/build_native/lib/api.vala:35:2: error[error]: 'INSTALLPREFIX' undeclared (first use in this function)

Error: COMPILER_WARNING (CWE-563): [#def2]
enchant-2.8.12/build_native/lib/broker.c: scope_hint: In function 'normalize_dictionary_tag'
enchant-2.8.12/build_native/lib/broker.c:556:38: warning[-Wunused-but-set-variable]: variable '_tmp9_' set but not used
#  556 |                                 gint _tmp9_;
#      |                                      ^~~~~~
#  554|   			if (!_tmp8_) {
#  555|   #line 556 "broker.c"
#  556|-> 				gint _tmp9_;
#  557|   #line 46 "broker.vala"
#  558|   				i = i + 1;

Error: COMPILER_WARNING (CWE-563): [#def3]
enchant-2.8.12/build_native/lib/broker.c:641:30: warning[-Wunused-but-set-variable]: variable '_tmp22_' set but not used
#  641 |                         gint _tmp22_;
#      |                              ^~~~~~~
#  639|   #line 640 "broker.c"
#  640|   		{
#  641|-> 			gint _tmp22_;
#  642|   			gboolean _tmp23_ = FALSE;
#  643|   #line 56 "broker.vala"

Error: COMPILER_WARNING (CWE-563): [#def4]
enchant-2.8.12/build_native/lib/broker.c:658:46: warning[-Wunused-but-set-variable]: variable '_tmp24_' set but not used
#  658 |                                         gint _tmp24_;
#      |                                              ^~~~~~~
#  656|   				if (!_tmp23_) {
#  657|   #line 658 "broker.c"
#  658|-> 					gint _tmp24_;
#  659|   #line 56 "broker.vala"
#  660|   					i = i + 1;

Error: COMPILER_WARNING (CWE-563): [#def5]
enchant-2.8.12/build_native/lib/broker.c:1813:22: warning[-Wunused-but-set-variable]: variable '_tokens_size_' set but not used
# 1813 |                 gchar** _tmp10_;
#      |                      ^~~~~~~~~~~  
# 1811|   		const gchar* _tmp8_;
# 1812|   		gchar** _tmp9_;
# 1813|-> 		gchar** _tmp10_;
# 1814|   		gint tokens_length1;
# 1815|   		gint _tokens_size_;

Error: COMPILER_WARNING (CWE-563): [#def6]
enchant-2.8.12/build_native/lib/broker.c: scope_hint: In function 'enchant_broker_get_ordered_providers'
enchant-2.8.12/build_native/lib/broker.c:1834:30: warning[-Wunused-variable]: unused variable '_token_collection_size_'
# 1834 |                         gchar** token_collection = NULL;
#      |                              ^~~~~~~~~~~~~~~~~~~~~~~
# 1832|   #line 1831 "broker.c"
# 1833|   		{
# 1834|-> 			gchar** token_collection = NULL;
# 1835|   			gint token_collection_length1 = 0;
# 1836|   			gint _token_collection_size_ = 0;

Error: COMPILER_WARNING (CWE-563): [#def7]
enchant-2.8.12/build_native/lib/broker.c:2166:14: warning[-Wunused-but-set-variable]: variable '_tags_size_' set but not used
# 2166 |         gchar** _tmp3_;
#      |              ^~~~~~~~~~ 
# 2164|   	gchar** tags = NULL;
# 2165|   	gchar** _tmp2_;
# 2166|-> 	gchar** _tmp3_;
# 2167|   	gint tags_length1;
# 2168|   	gint _tags_size_;

Error: COMPILER_WARNING (CWE-563): [#def8]
enchant-2.8.12/build_native/lib/broker.c:2181:14: warning[-Wunused-but-set-variable]: variable '_tmp28__length1' set but not used
# 2181 |         EnchantDict* _tmp27_;
#      |              ^~~~~~~~~~~~~~~
# 2179|   	EnchantCompositeDict* _tmp25_;
# 2180|   	EnchantDict* _tmp26_;
# 2181|-> 	EnchantDict* _tmp27_;
# 2182|   	gchar** _tmp28_;
# 2183|   	gint _tmp28__length1;

Error: COMPILER_WARNING (CWE-563): [#def9]
enchant-2.8.12/build_native/lib/broker.c: scope_hint: In function 'enchant_broker_request_dict_with_pwl'
enchant-2.8.12/build_native/lib/broker.c:2212:22: warning[-Wunused-variable]: unused variable '_tag_collection_size_'
# 2212 |                 gchar** tag_collection = NULL;
#      |                      ^~~~~~~~~~~~~~~~~~~~~
# 2210|   #line 2209 "broker.c"
# 2211|   	{
# 2212|-> 		gchar** tag_collection = NULL;
# 2213|   		gint tag_collection_length1 = 0;
# 2214|   		gint _tag_collection_size_ = 0;

Error: COMPILER_WARNING (CWE-563): [#def10]
enchant-2.8.12/build_native/lib/broker.c:2260:22: warning[-Wunused-variable]: unused variable '_tag_collection_size_'
# 2260 |                 gchar** tag_collection = NULL;
#      |                      ^~~~~~~~~~~~~~~~~~~~~
# 2258|   #line 2257 "broker.c"
# 2259|   	{
# 2260|-> 		gchar** tag_collection = NULL;
# 2261|   		gint tag_collection_length1 = 0;
# 2262|   		gint _tag_collection_size_ = 0;

Error: COMPILER_WARNING (CWE-563): [#def11]
enchant-2.8.12/build_native/lib/broker.c: scope_hint: In function 'enchant_broker_list_dicts'
enchant-2.8.12/build_native/lib/broker.c:2615:46: warning[-Wunused-variable]: unused variable '_tag_collection_size_'
# 2615 |                                         gchar** tag_collection = NULL;
#      |                                              ^~~~~~~~~~~~~~~~~~~~~
# 2613|   #line 2612 "broker.c"
# 2614|   				{
# 2615|-> 					gchar** tag_collection = NULL;
# 2616|   					gint tag_collection_length1 = 0;
# 2617|   					gint _tag_collection_size_ = 0;

Error: COMPILER_WARNING (CWE-563): [#def12]
enchant-2.8.12/build_native/lib/broker.c: scope_hint: In function 'enchant_broker_instance_init'
enchant-2.8.12/build_native/lib/broker.c:3150:47: warning[-Wunused-parameter]: unused parameter 'self'
# 3150 | 
#      |                                               ^   
# 3148|   #line 3147 "broker.c"
# 3149|   }
# 3150|-> 
# 3151|   static void
# 3152|   enchant_broker_instance_init (EnchantBroker * self)

Error: COMPILER_WARNING (CWE-563): [#def13]
enchant-2.8.12/build_native/lib/composite.c: scope_hint: In function 'enchant_composite_dict_class_init'
enchant-2.8.12/build_native/lib/composite.c:360:45: warning[-Wunused-parameter]: unused parameter 'klass_data'
#  360 |                                    gpointer klass_data)
#      |                                    ~~~~~~~~~^~~~~~~~~~
#  358|   static void
#  359|   enchant_composite_dict_class_init (EnchantCompositeDictClass * klass,
#  360|->                                    gpointer klass_data)
#  361|   {
#  362|   #line 30 "composite.vala"

Error: COMPILER_WARNING (CWE-563): [#def14]
enchant-2.8.12/build_native/lib/composite.c: scope_hint: In function 'enchant_composite_dict_instance_init'
enchant-2.8.12/build_native/lib/composite.c:373:48: warning[-Wunused-parameter]: unused parameter 'klass'
#  373 |                                       gpointer klass)
#      |                                       ~~~~~~~~~^~~~~
#  371|   static void
#  372|   enchant_composite_dict_instance_init (EnchantCompositeDict * self,
#  373|->                                       gpointer klass)
#  374|   {
#  375|   #line 30 "composite.vala"

Error: COMPILER_WARNING (CWE-704): [#def15]
enchant-2.8.12/build_native/lib/composite.c:407:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
#  405|   {
#  406|   	static volatile gsize enchant_composite_dict_type_id__once = 0;
#  407|-> 	if (g_once_init_enter (&enchant_composite_dict_type_id__once)) {
#  408|   		GType enchant_composite_dict_type_id;
#  409|   		enchant_composite_dict_type_id = enchant_composite_dict_get_type_once ();

Error: COMPILER_WARNING (CWE-563): [#def16]
enchant-2.8.12/build_native/lib/composite.c:627:38: warning[-Wunused-but-set-variable]: variable '_suggs_size_' set but not used
#  627 |                                 gint _suggs_size_;
#      |                                      ^~~~~~~~~~~~
#  625|   				gchar** _tmp7_;
#  626|   				gint suggs_length1;
#  627|-> 				gint _suggs_size_;
#  628|   				gchar** _tmp8_;
#  629|   				gint _tmp8__length1;

Error: COMPILER_WARNING (CWE-563): [#def17]
enchant-2.8.12/build_native/lib/composite.c:629:38: warning[-Wunused-but-set-variable]: variable '_tmp8__length1' set but not used
#  629 |                                 gint _tmp8__length1;
#      |                                      ^~~~~~~~~~~~~~
#  627|   				gint _suggs_size_;
#  628|   				gchar** _tmp8_;
#  629|-> 				gint _tmp8__length1;
#  630|   #line 72 "composite.vala"
#  631|   				_tmp5_ = dict;

Error: COMPILER_WARNING (CWE-563): [#def18]
enchant-2.8.12/build_native/lib/composite.c:647:49: warning[-Wunused-but-set-variable]: variable '_tmp9_' set but not used
#  647 |                                         gchar** _tmp9_;
#      |                                                 ^~~~~~
#  645|   				if (_tmp8_ != NULL) {
#  646|   #line 647 "composite.c"
#  647|-> 					gchar** _tmp9_;
#  648|   					gint _tmp9__length1;
#  649|   #line 74 "composite.vala"

Error: COMPILER_WARNING (CWE-563): [#def19]
enchant-2.8.12/build_native/lib/composite.c:670:81: warning[-Wunused-but-set-variable]: variable '_tmp12_' set but not used
#  670 |                                                                         gchar** _tmp12_;
#      |                                                                                 ^~~~~~~
#  668|   								while (TRUE) {
#  669|   #line 670 "composite.c"
#  670|-> 									gchar** _tmp12_;
#  671|   									gint _tmp12__length1;
#  672|   									GArray* _tmp13_;

Error: COMPILER_WARNING (CWE-563): [#def20]
enchant-2.8.12/build_native/lib/composite.c: scope_hint: In function 'composite_dict_suggest'
enchant-2.8.12/build_native/lib/composite.c:674:78: warning[-Wunused-but-set-variable]: variable '_tmp14__length1' set but not used
#  674 |                                                                         gint _tmp14__length1;
#      |                                                                              ^~~~~~~~~~~~~~~
#  672|   									GArray* _tmp13_;
#  673|   									gchar** _tmp14_;
#  674|-> 									gint _tmp14__length1;
#  675|   									const gchar* _tmp15_;
#  676|   									gchar* _tmp16_;

Error: COMPILER_WARNING (CWE-843): [#def21]
enchant-2.8.12/build_native/lib/composite.vala:82:10: warning[-Wincompatible-pointer-types]: assignment to 'gchar **' {{aka 'char **'}} from incompatible pointer type 'void **'

Error: COMPILER_WARNING (CWE-563): [#def22]
enchant-2.8.12/build_native/lib/dict.c: scope_hint: In function 'enchant_dict_filter_suggestions'
enchant-2.8.12/build_native/lib/dict.c:740:22: warning[-Wunused-variable]: unused variable '_sugg_collection_size_'
#  740 |                 gint _sugg_collection_size_ = 0;
#      |                      ^~~~~~~~~~~~~~~~~~~~~~
#  738|   		gchar** sugg_collection = NULL;
#  739|   		gint sugg_collection_length1 = 0;
#  740|-> 		gint _sugg_collection_size_ = 0;
#  741|   		gint sugg_it = 0;
#  742|   #line 150 "dict.vala"

Error: COMPILER_WARNING (CWE-563): [#def23]
enchant-2.8.12/build_native/lib/dict.c:853:14: warning[-Wunused-but-set-variable]: variable '_dict_suggs_size_' set but not used
#  853 |         gint _dict_suggs_size_;
#      |              ^~~~~~~~~~~~~~~~~
#  851|   	gchar** _tmp9_;
#  852|   	gint dict_suggs_length1;
#  853|-> 	gint _dict_suggs_size_;
#  854|   	gchar** _tmp10_;
#  855|   	gint _tmp10__length1;

Error: COMPILER_WARNING (CWE-563): [#def24]
enchant-2.8.12/build_native/lib/dict.c: scope_hint: In function 'enchant_dict_suggest'
enchant-2.8.12/build_native/lib/dict.c:855:14: warning[-Wunused-but-set-variable]: variable '_tmp10__length1' set but not used
#  855 |         gint _tmp10__length1;
#      |              ^~~~~~~~~~~~~~~
#  853|   	gint _dict_suggs_size_;
#  854|   	gchar** _tmp10_;
#  855|-> 	gint _tmp10__length1;
#  856|   	gchar** _tmp14_;
#  857|   	gint _tmp14__length1;

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

Error: COMPILER_WARNING (CWE-563): [#def26]
enchant-2.8.12/build_native/lib/dict.c:1269:41: warning[-Wunused-parameter]: unused parameter 'cor_len'
# 1269 |                                 ssize_t cor_len)
#      |                                 ~~~~~~~~^~~~~~~
# 1267|                                   ssize_t mis_len,
# 1268|                                   const gchar* cor,
# 1269|->                                 ssize_t cor_len)
# 1270|   {
# 1271|   #line 221 "dict.vala"

Error: COMPILER_WARNING (CWE-563): [#def27]
enchant-2.8.12/build_native/lib/dict.c: scope_hint: In function 'value_enchant_dict_collect_value'
enchant-2.8.12/build_native/lib/dict.c:1483:41: warning[-Wunused-parameter]: unused parameter 'n_collect_values'
# 1483 |                                   guint n_collect_values,
#      |                                   ~~~~~~^~~~~~~~~~~~~~~~
# 1481|   static gchar*
# 1482|   value_enchant_dict_collect_value (GValue* value,
# 1483|->                                   guint n_collect_values,
# 1484|                                     GTypeCValue* collect_values,
# 1485|                                     guint collect_flags)

Error: COMPILER_WARNING (CWE-563): [#def28]
enchant-2.8.12/build_native/lib/dict.c:1485:41: warning[-Wunused-parameter]: unused parameter 'collect_flags'
# 1485 |                                   guint collect_flags)
#      |                                   ~~~~~~^~~~~~~~~~~~~
# 1483|                                     guint n_collect_values,
# 1484|                                     GTypeCValue* collect_values,
# 1485|->                                   guint collect_flags)
# 1486|   {
# 1487|   #line 45 "dict.vala"

Error: COMPILER_WARNING (CWE-563): [#def29]
enchant-2.8.12/build_native/lib/dict.c: scope_hint: In function 'value_enchant_dict_lcopy_value'
enchant-2.8.12/build_native/lib/dict.c:1517:39: warning[-Wunused-parameter]: unused parameter 'n_collect_values'
# 1517 |                                 guint n_collect_values,
#      |                                 ~~~~~~^~~~~~~~~~~~~~~~
# 1515|   static gchar*
# 1516|   value_enchant_dict_lcopy_value (const GValue* value,
# 1517|->                                 guint n_collect_values,
# 1518|                                   GTypeCValue* collect_values,
# 1519|                                   guint collect_flags)

Error: COMPILER_WARNING (CWE-563): [#def30]
enchant-2.8.12/build_native/lib/dict.c: scope_hint: In function 'enchant_dict_class_init'
enchant-2.8.12/build_native/lib/dict.c:1643:35: warning[-Wunused-parameter]: unused parameter 'klass_data'
# 1643 |                          gpointer klass_data)
#      |                          ~~~~~~~~~^~~~~~~~~~
# 1641|   static void
# 1642|   enchant_dict_class_init (EnchantDictClass * klass,
# 1643|->                          gpointer klass_data)
# 1644|   {
# 1645|   #line 45 "dict.vala"

Error: COMPILER_WARNING (CWE-563): [#def31]
enchant-2.8.12/build_native/lib/dict.c: scope_hint: In function 'enchant_dict_instance_init'
enchant-2.8.12/build_native/lib/dict.c:1656:38: warning[-Wunused-parameter]: unused parameter 'klass'
# 1656 |                             gpointer klass)
#      |                             ~~~~~~~~~^~~~~
# 1654|   static void
# 1655|   enchant_dict_instance_init (EnchantDict * self,
# 1656|->                             gpointer klass)
# 1657|   {
# 1658|   #line 45 "dict.vala"

Error: COMPILER_WARNING (CWE-704): [#def32]
enchant-2.8.12/build_native/lib/dict.c:1719:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
# 1717|   {
# 1718|   	static volatile gsize enchant_dict_type_id__once = 0;
# 1719|-> 	if (g_once_init_enter (&enchant_dict_type_id__once)) {
# 1720|   		GType enchant_dict_type_id;
# 1721|   		enchant_dict_type_id = enchant_dict_get_type_once ();

Error: COMPILER_WARNING (CWE-563): [#def33]
enchant-2.8.12/build_native/lib/provider.c: scope_hint: In function '_enchant_provider_dictionary_exists'
enchant-2.8.12/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 (CWE-563): [#def34]
enchant-2.8.12/build_native/lib/provider.c: scope_hint: In function 'value_enchant_provider_collect_value'
enchant-2.8.12/build_native/lib/provider.c:735:45: warning[-Wunused-parameter]: unused parameter 'n_collect_values'
#  735 | }
#      |                                             ^               
#  733|   	return value->data[0].v_pointer;
#  734|   #line 731 "provider.c"
#  735|-> }
#  736|   
#  737|   static gchar*

Error: COMPILER_WARNING (CWE-563): [#def35]
enchant-2.8.12/build_native/lib/provider.c:737:45: warning[-Wunused-parameter]: unused parameter 'collect_flags'
#  737 | static gchar*
#      |                                             ^            
#  735|   }
#  736|   
#  737|-> static gchar*
#  738|   value_enchant_provider_collect_value (GValue* value,
#  739|                                         guint n_collect_values,

Error: COMPILER_WARNING (CWE-563): [#def36]
enchant-2.8.12/build_native/lib/provider.c: scope_hint: In function 'value_enchant_provider_lcopy_value'
enchant-2.8.12/build_native/lib/provider.c:769:43: warning[-Wunused-parameter]: unused parameter 'n_collect_values'
#  769 | }
#      |                                           ^               
#  767|   	return NULL;
#  768|   #line 765 "provider.c"
#  769|-> }
#  770|   
#  771|   static gchar*

Error: COMPILER_WARNING (CWE-563): [#def37]
enchant-2.8.12/build_native/lib/provider.c: scope_hint: In function 'enchant_provider_class_init'
enchant-2.8.12/build_native/lib/provider.c:895:39: warning[-Wunused-parameter]: unused parameter 'klass_data'
#  895 | }
#      |                                       ^         
#  893|   #line 890 "provider.c"
#  894|   	}
#  895|-> }
#  896|   
#  897|   static void

Error: COMPILER_WARNING (CWE-563): [#def38]
enchant-2.8.12/build_native/lib/provider.c: scope_hint: In function 'enchant_provider_instance_init'
enchant-2.8.12/build_native/lib/provider.c:906:42: warning[-Wunused-parameter]: unused parameter 'klass'
#  906 | }
#      |                                          ^    
#  904|   	((EnchantProviderClass *) klass)->finalize = enchant_provider_finalize;
#  905|   #line 902 "provider.c"
#  906|-> }
#  907|   
#  908|   static void

Error: COMPILER_WARNING (CWE-704): [#def39]
enchant-2.8.12/build_native/lib/provider.c:971:6: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
#  969|   }
#  970|   
#  971|-> GType
#  972|   enchant_provider_get_type (void)
#  973|   {

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

Error: COMPILER_WARNING (CWE-563): [#def41]
enchant-2.8.12/build_native/lib/pwl.c:1078:23: warning[-Wunused-but-set-variable]: variable 'length' set but not used
# 1078 |                 gsize length = 0UL;
#      |                       ^~~~~~
# 1076|   #line 1077 "pwl.c"
# 1077|   		gchar* contents = NULL;
# 1078|-> 		gsize length = 0UL;
# 1079|   		FILE* f = NULL;
# 1080|   		const gchar* _tmp9_;

Error: COMPILER_WARNING (CWE-563): [#def42]
enchant-2.8.12/build_native/lib/pwl.c: scope_hint: In function 'enchant_pwl_remove'
enchant-2.8.12/build_native/lib/pwl.c:1383:78: warning[-Wunused-but-set-variable]: variable '_tmp55_' set but not used
# 1383 |                                                                         gint _tmp55_;
#      |                                                                              ^~~~~~~
# 1381|   									gboolean _tmp52_ = FALSE;
# 1382|   									const gchar* _tmp53_;
# 1383|-> 									gint _tmp55_;
# 1384|   #line 211 "pwl.vala"
# 1385|   									_tmp53_ = contents;

Error: COMPILER_WARNING (CWE-563): [#def43]
enchant-2.8.12/build_native/lib/pwl.c: scope_hint: In function 'enchant_pwl_refresh_from_file'
enchant-2.8.12/build_native/lib/pwl.c:1844:39: warning[-Wunused-but-set-variable]: variable '_tmp14_' set but not used
# 1844 |                                 gsize _tmp14_;
#      |                                       ^~~~~~~
# 1842|   			if (!_tmp13_) {
# 1843|   #line 1844 "pwl.c"
# 1844|-> 				gsize _tmp14_;
# 1845|   #line 273 "pwl.vala"
# 1846|   				line_number = line_number + 1;

Error: COMPILER_WARNING (CWE-563): [#def44]
enchant-2.8.12/build_native/lib/pwl.c: scope_hint: In function 'value_enchant_pwl_collect_value'
enchant-2.8.12/build_native/lib/pwl.c:2007:40: warning[-Wunused-parameter]: unused parameter 'n_collect_values'
# 2007 |                                  guint n_collect_values,
#      |                                  ~~~~~~^~~~~~~~~~~~~~~~
# 2005|   static gchar*
# 2006|   value_enchant_pwl_collect_value (GValue* value,
# 2007|->                                  guint n_collect_values,
# 2008|                                    GTypeCValue* collect_values,
# 2009|                                    guint collect_flags)

Error: COMPILER_WARNING (CWE-563): [#def45]
enchant-2.8.12/build_native/lib/pwl.c:2009:40: warning[-Wunused-parameter]: unused parameter 'collect_flags'
# 2009 |                                  guint collect_flags)
#      |                                  ~~~~~~^~~~~~~~~~~~~
# 2007|                                    guint n_collect_values,
# 2008|                                    GTypeCValue* collect_values,
# 2009|->                                  guint collect_flags)
# 2010|   {
# 2011|   #line 124 "pwl.vala"

Error: COMPILER_WARNING (CWE-563): [#def46]
enchant-2.8.12/build_native/lib/pwl.c: scope_hint: In function 'value_enchant_pwl_lcopy_value'
enchant-2.8.12/build_native/lib/pwl.c:2041:38: warning[-Wunused-parameter]: unused parameter 'n_collect_values'
# 2041 |                                guint n_collect_values,
#      |                                ~~~~~~^~~~~~~~~~~~~~~~
# 2039|   static gchar*
# 2040|   value_enchant_pwl_lcopy_value (const GValue* value,
# 2041|->                                guint n_collect_values,
# 2042|                                  GTypeCValue* collect_values,
# 2043|                                  guint collect_flags)

Error: COMPILER_WARNING (CWE-563): [#def47]
enchant-2.8.12/build_native/lib/pwl.c: scope_hint: In function 'enchant_pwl_class_init'
enchant-2.8.12/build_native/lib/pwl.c:2167:34: warning[-Wunused-parameter]: unused parameter 'klass_data'
# 2167 |                         gpointer klass_data)
#      |                         ~~~~~~~~~^~~~~~~~~~
# 2165|   static void
# 2166|   enchant_pwl_class_init (EnchantPWLClass * klass,
# 2167|->                         gpointer klass_data)
# 2168|   {
# 2169|   #line 124 "pwl.vala"

Error: COMPILER_WARNING (CWE-563): [#def48]
enchant-2.8.12/build_native/lib/pwl.c: scope_hint: In function 'enchant_pwl_instance_init'
enchant-2.8.12/build_native/lib/pwl.c:2178:37: warning[-Wunused-parameter]: unused parameter 'klass'
# 2178 |                            gpointer klass)
#      |                            ~~~~~~~~~^~~~~
# 2176|   static void
# 2177|   enchant_pwl_instance_init (EnchantPWL * self,
# 2178|->                            gpointer klass)
# 2179|   {
# 2180|   	GHashFunc _tmp0_;

Error: COMPILER_WARNING (CWE-704): [#def49]
enchant-2.8.12/build_native/lib/pwl.c:2228:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
# 2226|   {
# 2227|   	static volatile gsize enchant_pwl_type_id__once = 0;
# 2228|-> 	if (g_once_init_enter (&enchant_pwl_type_id__once)) {
# 2229|   		GType enchant_pwl_type_id;
# 2230|   		enchant_pwl_type_id = enchant_pwl_get_type_once ();

Error: COMPILER_WARNING (CWE-563): [#def50]
enchant-2.8.12/build_native/lib/pwl.c: scope_hint: In function 'check_impl'
enchant-2.8.12/build_native/lib/pwl.c:2266:20: warning[-Wunused-parameter]: unused parameter 'len'
# 2266 |             size_t len)
#      |             ~~~~~~~^~~
# 2264|   check_impl (EnchantDict* me,
# 2265|               const gchar* word,
# 2266|->             size_t len)
# 2267|   {
# 2268|   	gint result;

Error: COMPILER_WARNING (CWE-563): [#def51]
enchant-2.8.12/build_native/lib/pwl.c: scope_hint: In function 'suggest_impl'
enchant-2.8.12/build_native/lib/pwl.c:2283:22: warning[-Wunused-parameter]: unused parameter 'len'
# 2283 |               size_t len,
#      |               ~~~~~~~^~~
# 2281|   suggest_impl (EnchantDict* me,
# 2282|                 const gchar* word,
# 2283|->               size_t len,
# 2284|                 size_t* result_length1)
# 2285|   {

Error: COMPILER_WARNING (CWE-563): [#def52]
enchant-2.8.12/build_native/lib/pwl.c: scope_hint: In function 'enchant_pwl_dict_class_init'
enchant-2.8.12/build_native/lib/pwl.c:2378:39: warning[-Wunused-parameter]: unused parameter 'klass_data'
# 2378 |                              gpointer klass_data)
#      |                              ~~~~~~~~~^~~~~~~~~~
# 2376|   static void
# 2377|   enchant_pwl_dict_class_init (EnchantPwlDictClass * klass,
# 2378|->                              gpointer klass_data)
# 2379|   {
# 2380|   #line 299 "pwl.vala"

Error: COMPILER_WARNING (CWE-563): [#def53]
enchant-2.8.12/build_native/lib/pwl.c: scope_hint: In function 'enchant_pwl_dict_instance_init'
enchant-2.8.12/build_native/lib/pwl.c:2386:50: warning[-Wunused-parameter]: unused parameter 'self'
# 2386 | enchant_pwl_dict_instance_init (EnchantPwlDict * self,
#      |                                 ~~~~~~~~~~~~~~~~~^~~~
# 2384|   
# 2385|   static void
# 2386|-> enchant_pwl_dict_instance_init (EnchantPwlDict * self,
# 2387|                                   gpointer klass)
# 2388|   {

Error: COMPILER_WARNING (CWE-563): [#def54]
enchant-2.8.12/build_native/lib/pwl.c:2387:42: warning[-Wunused-parameter]: unused parameter 'klass'
# 2387 |                                 gpointer klass)
#      |                                 ~~~~~~~~~^~~~~
# 2385|   static void
# 2386|   enchant_pwl_dict_instance_init (EnchantPwlDict * self,
# 2387|->                                 gpointer klass)
# 2388|   {
# 2389|   }

Error: COMPILER_WARNING (CWE-704): [#def55]
enchant-2.8.12/build_native/lib/pwl.c:2404:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
# 2402|   {
# 2403|   	static volatile gsize enchant_pwl_dict_type_id__once = 0;
# 2404|-> 	if (g_once_init_enter (&enchant_pwl_dict_type_id__once)) {
# 2405|   		GType enchant_pwl_dict_type_id;
# 2406|   		enchant_pwl_dict_type_id = enchant_pwl_dict_get_type_once ();

Error: COMPILER_WARNING (CWE-563): [#def56]
enchant-2.8.12/build_native/lib/session.c: scope_hint: In function 'value_enchant_session_collect_value'
enchant-2.8.12/build_native/lib/session.c:571:44: warning[-Wunused-parameter]: unused parameter 'n_collect_values'
#  571 |                                      guint n_collect_values,
#      |                                      ~~~~~~^~~~~~~~~~~~~~~~
#  569|   static gchar*
#  570|   value_enchant_session_collect_value (GValue* value,
#  571|->                                      guint n_collect_values,
#  572|                                        GTypeCValue* collect_values,
#  573|                                        guint collect_flags)

Error: COMPILER_WARNING (CWE-563): [#def57]
enchant-2.8.12/build_native/lib/session.c:573:44: warning[-Wunused-parameter]: unused parameter 'collect_flags'
#  573 |                                      guint collect_flags)
#      |                                      ~~~~~~^~~~~~~~~~~~~
#  571|                                        guint n_collect_values,
#  572|                                        GTypeCValue* collect_values,
#  573|->                                      guint collect_flags)
#  574|   {
#  575|   #line 31 "session.vala"

Error: COMPILER_WARNING (CWE-563): [#def58]
enchant-2.8.12/build_native/lib/session.c: scope_hint: In function 'value_enchant_session_lcopy_value'
enchant-2.8.12/build_native/lib/session.c:605:42: warning[-Wunused-parameter]: unused parameter 'n_collect_values'
#  605 |                                    guint n_collect_values,
#      |                                    ~~~~~~^~~~~~~~~~~~~~~~
#  603|   static gchar*
#  604|   value_enchant_session_lcopy_value (const GValue* value,
#  605|->                                    guint n_collect_values,
#  606|                                      GTypeCValue* collect_values,
#  607|                                      guint collect_flags)

Error: COMPILER_WARNING (CWE-563): [#def59]
enchant-2.8.12/build_native/lib/session.c: scope_hint: In function 'enchant_session_class_init'
enchant-2.8.12/build_native/lib/session.c:731:38: warning[-Wunused-parameter]: unused parameter 'klass_data'
#  731 |                             gpointer klass_data)
#      |                             ~~~~~~~~~^~~~~~~~~~
#  729|   static void
#  730|   enchant_session_class_init (EnchantSessionClass * klass,
#  731|->                             gpointer klass_data)
#  732|   {
#  733|   #line 31 "session.vala"

Error: COMPILER_WARNING (CWE-563): [#def60]
enchant-2.8.12/build_native/lib/session.c: scope_hint: In function 'enchant_session_instance_init'
enchant-2.8.12/build_native/lib/session.c:742:41: warning[-Wunused-parameter]: unused parameter 'klass'
#  742 |                                gpointer klass)
#      |                                ~~~~~~~~~^~~~~
#  740|   static void
#  741|   enchant_session_instance_init (EnchantSession * self,
#  742|->                                gpointer klass)
#  743|   {
#  744|   #line 31 "session.vala"

Error: COMPILER_WARNING (CWE-704): [#def61]
enchant-2.8.12/build_native/lib/session.c:787:13: warning[-Wdiscarded-qualifiers]: argument 2 of '__atomic_load' discards 'volatile' qualifier
#  785|   {
#  786|   	static volatile gsize enchant_session_type_id__once = 0;
#  787|-> 	if (g_once_init_enter (&enchant_session_type_id__once)) {
#  788|   		GType enchant_session_type_id;
#  789|   		enchant_session_type_id = enchant_session_get_type_once ();

Error: COMPILER_WARNING: [#def62] [important]
enchant-2.8.12/build_native/libgnu/fcntl.h:89:3: error[error]: #error "Please include config.h first."
#   87|   /* This file uses GNULIB_POSIXCHECK, HAVE_RAW_DECL_*.  */
#   88|   #if !_GL_CONFIG_H_INCLUDED
#   89|->  #error "Please include config.h first."
#   90|   #endif
#   91|   

Error: COMPILER_WARNING: [#def63] [important]
enchant-2.8.12/build_native/libgnu/sys/file.h:38:3: error[error]: #error "Please include config.h first."
#   36|   /* This file uses GNULIB_POSIXCHECK, HAVE_RAW_DECL_*.  */
#   37|   #if !_GL_CONFIG_H_INCLUDED
#   38|->  #error "Please include config.h first."
#   39|   #endif
#   40|   

Error: COMPILER_WARNING: [#def64] [important]
enchant-2.8.12/build_native/libgnu/sys/types.h:28:3: error[error]: #error "Please include config.h first."
#   26|      included before.  */
#   27|   #if !_GL_CONFIG_H_INCLUDED
#   28|->  #error "Please include config.h first."
#   29|   #endif
#   30|   

Error: COMPILER_WARNING (CWE-704): [#def65]
enchant-2.8.12/build_native/src/enchant.c:1088:6: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier

Error: COMPILER_WARNING (CWE-704): [#def66]
enchant-2.8.12/build_native/src/enchant.c:1433:6: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier

Error: COMPILER_WARNING (CWE-704): [#def67]
enchant-2.8.12/build_native/src/enchant.c:2824:6: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier

Error: COMPILER_WARNING (CWE-843): [#def68]
enchant-2.8.12/build_native/src/util.vala:33:18: warning[-Wincompatible-pointer-types]: assignment to 'gchar **' {{aka 'char **'}} from incompatible pointer type 'const gchar * const*' {{aka 'const char * const*'}}

Error: COMPILER_WARNING: [#def69] [important]
enchant-2.8.12/libgnu/relocatable.h:23:3: error[error]: #error "Please include config.h first."
#   21|   /* This file uses _GL_ATTRIBUTE_MALLOC, HAVE_VISIBILITY.  */
#   22|   #if !_GL_CONFIG_H_INCLUDED
#   23|->  #error "Please include config.h first."
#   24|   #endif
#   25|   

Error: COMPILER_WARNING (CWE-563): [#def70]
enchant-2.8.12/src/enchant.c: scope_hint: At top level
enchant-2.8.12/src/enchant.c:104:20: warning[-Wunused-variable]: ‘main_properties’ defined but not used
#  104 | static GParamSpec* main_properties[MAIN_NUM_PROPERTIES];
#      |                    ^~~~~~~~~~~~~~~
#  102|   	MAIN_NUM_PROPERTIES
#  103|   };
#  104|-> static GParamSpec* main_properties[MAIN_NUM_PROPERTIES];
#  105|   #define _enchant_broker_free0(var) ((var == NULL) ? NULL : (var = (enchant_broker_free (var), NULL)))
#  106|   #define _token_unref0(var) ((var == NULL) ? NULL : (var = (token_unref (var), NULL)))

Error: COMPILER_WARNING (CWE-704): [#def71]
enchant-2.8.12/src/enchant.c:239:13: warning[-Wdiscarded-qualifiers]: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier
#  237|   {
#  238|   	static volatile gsize mode_type_id__once = 0;
#  239|-> 	if (g_once_init_enter (&mode_type_id__once)) {
#  240|   		GType mode_type_id;
#  241|   		mode_type_id = mode_get_type_once ();

Error: COMPILER_WARNING (CWE-563): [#def72]
enchant-2.8.12/src/util.c:61:14: warning[-Wunused-but-set-variable]: variable '_languages_size_' set but not used
#   61 |         gint _languages_size_;
#      |              ^~~~~~~~~~~~~~~~
#   59|   	gchar** _tmp1_;
#   60|   	gint languages_length1;
#   61|-> 	gint _languages_size_;
#   62|   	const gchar* _tmp2_;
#   63|   	gchar* _tmp3_;

Scan Properties

analyzer-version-clippy1.90.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-85.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameenchant2-2.8.12-4.fc44
store-results-to/tmp/tmpp9q4pu2_/enchant2-2.8.12-4.fc44.tar.xz
time-created2025-10-28 17:47:54
time-finished2025-10-28 17:50:51
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpp9q4pu2_/enchant2-2.8.12-4.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpp9q4pu2_/enchant2-2.8.12-4.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9