From: ppisa Date: Sat, 29 Oct 2005 22:40:14 +0000 (+0000) Subject: Elimination of some easily fix-able warnings for GCC-4.0.2. X-Git-Tag: ul_drv-0.8.0-release~50 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/ulut.git/commitdiff_plain/cf324a881ec9e5533fc05b9db8e8bd9a7b16a18c Elimination of some easily fix-able warnings for GCC-4.0.2. There is still bunch of more problematic things related to the C99 strict aliasing rules. --- diff --git a/ulut/ul_dbufmore.c b/ulut/ul_dbufmore.c index 95d032f..f9b9b26 100644 --- a/ulut/ul_dbufmore.c +++ b/ulut/ul_dbufmore.c @@ -114,8 +114,8 @@ int ul_dbuff_set_len(ul_dbuff_t *buf, int new_len) ul_dbuff_set_capacity(buf, new_cap); } if(new_len > buf->capacity) { - buf->data = buf->sbuff; - strncpy(buf->data, "set_len ERROR", buf->capacity); + /*buf->data = buf->sbuff;*/ + /*strncpy(buf->data, "set_len ERROR", buf->capacity);*/ new_len = buf->capacity; } buf->len = new_len;