Can't compile product version.

This commit is contained in:
vraatikka 2013-06-27 16:54:54 +03:00
parent 5c271e1925
commit b26315cf24
3 changed files with 7 additions and 7 deletions

View File

@ -1221,7 +1221,7 @@ static void* thr_filewriter_fun(
mlist_node_t* node;
mlist_node_t* prev_node;
int i;
bool succp;
ss_debug(bool succp;)
thr = (skygw_thread_t *)data;
fwr = (filewriter_t *)skygw_thread_get_data(thr);
@ -1263,7 +1263,7 @@ static void* thr_filewriter_fun(
wb = (logfile_writebuf_t*)node->mlnode_data;
writep = wb->wb_buf;
nbytes = strlen(writep);
succp = skygw_file_write(file, (void *)writep, nbytes);
ss_debug(succp = )skygw_file_write(file, (void *)writep, nbytes);
ss_dassert(succp);
prev_node = node;
node = node->mlnode_next;

View File

@ -76,9 +76,9 @@
# define ss_debug(exp)
# define ss_dfprintf(a, b, ...)
# define ss_dfflush
# define ss_dfwrite
# define ss_dassert
# define ss_dfflush(s)
# define ss_dfwrite(a, b, c, d)
# define ss_dassert(exp)
# define ss_info_dassert(exp, info)
#endif /* SS_DEBUG */

View File

@ -64,7 +64,7 @@ struct skygw_thread_st {
pthread_t sth_parent;
pthread_t sth_thr;
int sth_errno;
#if defined(SS_DEBUG)
#if defined(DEBUG)
skygw_thr_state_t sth_state;
#endif
char* sth_name;
@ -916,7 +916,7 @@ void skygw_thread_done(
CHK_THREAD(th);
ss_dassert(th->sth_state == THR_STOPPED);
ss_debug(th->sth_state = THR_DONE;)
simple_mutex_done(th->sth_mutex);
simple_mutex_done(th->sth_mutex);
thread_free_memory(th, th->sth_name);
}
}