View Issue Details

IDProjectCategoryView StatusLast Update
0001722XdebugUncategorizedpublic2020-03-12 16:46
Reporterdevnexen Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version2.8.1 
Target Version2.9.0Fixed in Version2.9.0 
Summary0001722: Build warning issues on FreeBSD
Description

Few little build warning occurs with clang on FreeBSD mainly in debugger/handler_dbgp.c

TagsNo tags attached.
Operating SystemFreeBSD
PHP Version7.4.0-7.4.4

Activities

derick

2019-12-07 16:36

administrator   ~0005196

Could you share the build warnings in this report please?

devnexen

2019-12-07 17:04

reporter   ~0005197

Last edited: 2019-12-07 17:23


/home/dcarlier/Contribs/xdebug/src/debugger/handler_dbgp.c:791:37: warning: implicit conversion from 'long' to 'int' changes value from 4294967295 to -1 [-Wconstant-conversion]
brk_info->resolved_span.end = XDEBUG_RESOLVED_SPAN_MAX;
~ ^~~~~~~~
/home/dcarlier/Contribs/xdebug/src/debugger/handlers.h:96:35: note: expanded from macro 'XDEBUG_RESOLVED_SPAN_MAX'
#define XDEBUG_RESOLVED_SPAN_MAX 4294967295
...
/home/dcarlier/Contribs/xdebug/src/debugger/handler_dbgp.c:1031:21: warning: incompatible pointer types initializing 'jmp_buf ' (aka 'struct _jmp_buf ()[1]') with an expression of type 'sigjmp_buf ' (aka 'struct _sigjmp_buf ()[1]') [-Wincompatible-pointer-types]
jmp_buf original_bailout = EG(bailout);
^ ~~~
/home/dcarlier/Contribs/xdebug/src/debugger/handler_dbgp.c:1064:14: warning: incompatible pointer types assigning to 'sigjmp_buf
' (aka 'struct _sigjmp_buf ()[1]') from 'jmp_buf ' (aka 'struct _jmp_buf (*)[1]') [-Wincompatible-pointer-types]
EG(bailout) = original_bailout;
^ ~~~~
/home/dcarlier/Contribs/xdebug/src/debugger/handler_dbgp.c:1779:22: warning: address of array 'hash_key->key->val' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (!hash_key->key->val || hash_key->key->len == 0) { return 0; }