Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Useless Assignment  at perl-common.c:201

Categories: LANG.STRUCT.UA
Warning ID: 2288.2296
Procedure: irssi_add_object
Trace: View
Modified: Wed Sep 2 11:57:15 2009   show details
 
Priority: None
State: None
Finding: None
Owner: None
  edit properties

Legend [ X ]
Warning Location
Contributes
Parse Error
Other Warning
Two or More Loop Iterations
On Execution Path
Comment
Macro
Preprocessor
Include
Keyword
Preprocessed Away

Source  |  Language: C Hide Legend     
LineSource
  /u1/paul/SATE/2010/c/irssi/irssi-0.8.14/src/perl/perl-common.c
  Enter irssi_add_object
188 void irssi_add_object(int type, int chat_type, const char *stash,
189                       PERL_OBJECT_FUNC func) 
190 {
191         PERL_OBJECT_REC *rec;
192         void *hash;
193  
194         g_return_if_fail((type & ~0xffff) == 0);
195         g_return_if_fail((chat_type & ~0xffff) == 0);
196  
197         hash = GINT_TO_POINTER(type | (chat_type << 16));
198         rec = g_hash_table_lookup(iobject_stashes, hash);
199         if (rec == NULL) {
200                 rec = g_new(PERL_OBJECT_REC, 1);
201                 rec->stash = g_strdup(stash);     /* Useless Assignment */
202                 g_hash_table_insert(iobject_stashes, hash, rec);
203         }
204         rec->fill_func = func;
205 




Change Warning 2288.2296 : Useless Assignment

Priority:
State:
Finding:
Owner:
Note: