Snippets for liquidwar 5.6.5 from Fedora i686
Sourced from https://kojipkgs.fedoraproject.org/packages/liquidwar/5.6.5/23.fc45/data/logs/i686/build.log.
-
liquidwarmap.c:395:7: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 395 | fread (READABLE_NAME, sizeof (READABLE_NAME), 1, f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
liquidwartex.c:289:3: warning: ‘strncpy’ specified bound 16 equals destination size [-Wstringop-truncation] 289 | strncpy (SYSTEM_NAME, str, sizeof (SYSTEM_NAME)); | ^ -
liquidwartex.c:289:3: warning: ‘strncpy’ specified bound 16 equals destination size [-Wstringop-truncation]
-
liquidwarmap.c:371:3: warning: ‘strncpy’ specified bound 16 equals destination size [-Wstringop-truncation] 371 | strncpy (SYSTEM_NAME, str, sizeof (SYSTEM_NAME)); | ^ -
liquidwarmap.c:416:7: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation] 416 | strncpy (READABLE_NAME, str, sizeof (READABLE_NAME)); | ^ -
game.c:257:7: warning: variable ‘i’ set but not used [-Wunused-but-set-variable=] 257 | int i; | ^ -
internet.c:137:13: warning: storing the address of local variable ‘size’ in ‘list_size’ [-Wdangling-pointer=] 137 | list_size = &size; | ~~~~~~~~~~^~~~~~~ -
internet.c:136:13: warning: storing the address of local variable ‘data’ in ‘list_data’ [-Wdangling-pointer=] 136 | list_data = data; | ~~~~~~~~~~^~~~~~ -
macro.h:70:66: warning: ‘strncpy’ specified bound 17 equals destination size [-Wstringop-truncation] 70 | #define LW_MACRO_STRNCPY(DST,SRC,SIZE) { memset((DST),0,(SIZE)); strncpy((DST),(SRC),(SIZE)); (DST)[(SIZE)-1]='\0'; } | ^~~~~~~ -
netplay.c:182:3: warning: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 50 [-Wstringop-truncation] 182 | strncpy (connect_data->address, address, sizeof (connect_data->address)); | ^ -
protocol.c:287:32: warning: this statement may fall through [-Wimplicit-fallthrough=] 287 | who->network = 1; | ~~~~~~~~~~~~~^~~ -
thrdunix.c:84:38: warning: cast between incompatible function types from ‘void (*)(void *)’ to ‘void * (*)(void *)’ [-Wcast-function-type] 84 | if (pthread_create (&thread, NULL, (void *(*)(void *)) func, args) == 0) | ^ -
../utils/lwmapgen/map_generator.c:45:3: warning: ‘__builtin___strcpy_chk’ writing one too many bytes into a region of a size that depends on ‘strlen’ [-Wstringop-overflow=] 45 | strcpy (map.filename, fname); | ^