Ad Widget

Collapse

[1.6.3] Windows Agent: compiler warning

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NOB
    Senior Member
    Zabbix Certified Specialist
    • Mar 2007
    • 469

    #1

    [1.6.3] Windows Agent: compiler warning

    Hi

    during the compilation of the 1.6.3 Windows Agent, the compiler
    issues a warning, which might introduce a bug.

    Code:
    proc.c
    ..\..\..\src\libs\zbxsysinfo\win32\proc.c(365) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
    The code in question (on line 365) is:

    Code:
    if (SYSINFO_RET_OK != (ret = GetProcessAttribute(hProcess, attr_id, type_id, ++counter, &value)))
    From the tooltip info I see that the parameters are OK, but the return
    value is a double.
    My wild guess is, that the value returned is the same as the one returned
    in &value. But I'm not sure because I am not a Windows developer
    and Google is of no help for this.

    I doubt, that the return code is OK in this case, though.
    Please look into it.

    Regards

    Norbert.
Working...