Ethereal-dev: Re: [Ethereal-dev] new patch for packet-ipmi.c
Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.
From: Guy Harris <gharris@xxxxxxxxx>
Date: Mon, 22 Nov 2004 10:16:51 -0800
Some compiler warnings. For the "unused parameter" arguments, add _U_
after the parameter (the functions are called through pointers, so you
can't remove the argument). For
cmd_SetFRULedState_data_LEDFunction_vals, either remove that table, or
use it in a field.
packet-ipmi.c: In function `dissect_cmd_GetDeviceSDR': packet-ipmi.c:1740: warning: unused parameter `authtype' packet-ipmi.c: In function `dissect_cmd_Get_Device_SDR_Info': packet-ipmi.c:1792: warning: unused parameter `pinfo' packet-ipmi.c:1793: warning: unused parameter `len' packet-ipmi.c: In function `dissect_cmd_Reserve_Device_SDR_Repository': packet-ipmi.c:1846: warning: unused parameter `pinfo' packet-ipmi.c:1847: warning: unused parameter `len' packet-ipmi.c:1847: warning: unused parameter `authtype' packet-ipmi.c: In function `dissect_cmd_Set_Sensor_Hysteresis': packet-ipmi.c:1866: warning: unused parameter `pinfo' packet-ipmi.c:1867: warning: unused parameter `len' packet-ipmi.c:1867: warning: unused parameter `authtype' packet-ipmi.c: In function `dissect_cmd_Get_Sensor_Hysteresis': packet-ipmi.c:1899: warning: unused parameter `pinfo' packet-ipmi.c:1900: warning: unused parameter `len' packet-ipmi.c:1900: warning: unused parameter `authtype' packet-ipmi.c: In function `dissect_cmd_Set_Sensor_Thresholds': packet-ipmi.c:1931: warning: unused parameter `pinfo' packet-ipmi.c:1932: warning: unused parameter `len' packet-ipmi.c: In function `dissect_cmd_Get_Sensor_Thresholds': packet-ipmi.c:2013: warning: unused parameter `pinfo' packet-ipmi.c:2014: warning: unused parameter `len' packet-ipmi.c: In function `dissect_cmd_Get_Sensor_Reading': packet-ipmi.c:2094: warning: unused parameter `pinfo' packet-ipmi.c: In function `dissect_cmd_Get_Device_ID': packet-ipmi.c:2241: warning: unused parameter `pinfo' packet-ipmi.c: In function `dissect_cmd_Get_FRU_Inventory_Area_Info': packet-ipmi.c:2373: warning: unused parameter `pinfo' packet-ipmi.c:2374: warning: unused parameter `len' packet-ipmi.c: In function `dissect_cmd_Get_SEL_Info': packet-ipmi.c:2420: warning: unused parameter `pinfo' packet-ipmi.c:2421: warning: unused parameter `len' packet-ipmi.c: In function `dissect_cmd_Reserve_SEL': packet-ipmi.c:2504: warning: unused parameter `pinfo' packet-ipmi.c:2505: warning: unused parameter `len' packet-ipmi.c:2505: warning: unused parameter `authtype' packet-ipmi.c: In function `dissect_cmd_Get_SEL_Entry': packet-ipmi.c:2525: warning: unused parameter `authtype' packet-ipmi.c: In function `dissect_cmd_Clear_SEL': packet-ipmi.c:2577: warning: unused parameter `pinfo' packet-ipmi.c:2578: warning: unused parameter `len' packet-ipmi.c: In function `dissect_cmd_Get_PICMG_Properties': packet-ipmi.c:2641: warning: unused parameter `pinfo' packet-ipmi.c:2642: warning: unused parameter `len' packet-ipmi.c:2642: warning: unused parameter `authtype' packet-ipmi.c: In function `dissect_cmd_FRU_Control': packet-ipmi.c:2683: warning: unused parameter `pinfo' packet-ipmi.c:2684: warning: unused parameter `len' packet-ipmi.c:2684: warning: unused parameter `authtype' packet-ipmi.c: In function `dissect_cmd_Get_FRU_Led_Properties': packet-ipmi.c:2719: warning: unused parameter `pinfo' packet-ipmi.c:2720: warning: unused parameter `len' packet-ipmi.c: In function `dissect_cmd_Get_Led_Color_Capabilities': packet-ipmi.c:2781: warning: unused parameter `pinfo' packet-ipmi.c:2782: warning: unused parameter `len' packet-ipmi.c: In function `dissect_cmd_Set_FRU_Led_State': packet-ipmi.c:2883: warning: unused parameter `pinfo' packet-ipmi.c:2884: warning: unused parameter `len' packet-ipmi.c: In function `dissect_cmd_Get_FRU_Led_State': packet-ipmi.c:2950: warning: unused parameter `pinfo' packet-ipmi.c:2951: warning: unused parameter `len' packet-ipmi.c: In function `dissect_cmd_Set_FRU_Activation_Policy': packet-ipmi.c:3068: warning: unused parameter `pinfo' packet-ipmi.c:3069: warning: unused parameter `len'packet-ipmi.c:3073: warning: `FRUActivationPolicyMaskBit' might be used uninitialized in this function
packet-ipmi.c: In function `dissect_cmd_Get_FRU_Activation_Policy': packet-ipmi.c:3198: warning: unused parameter `pinfo' packet-ipmi.c:3199: warning: unused parameter `len' packet-ipmi.c: In function `dissect_cmd_Set_FRU_Activation': packet-ipmi.c:3250: warning: unused parameter `pinfo' packet-ipmi.c:3251: warning: unused parameter `len' packet-ipmi.c:3251: warning: unused parameter `authtype' packet-ipmi.c: In function `dissect_cmd_Get_Device_Locator_Record_ID': packet-ipmi.c:3286: warning: unused parameter `pinfo' packet-ipmi.c:3287: warning: unused parameter `len' packet-ipmi.c:3287: warning: unused parameter `authtype' packet-ipmi.c: In function `dissect_cmd_Set_Power_Level': packet-ipmi.c:3323: warning: unused parameter `pinfo' packet-ipmi.c:3324: warning: unused parameter `len' packet-ipmi.c:3324: warning: unused parameter `authtype' packet-ipmi.c: In function `dissect_cmd_Get_Power_Level': packet-ipmi.c:3363: warning: unused parameter `pinfo' packet-ipmi.c: In function `dissect_cmd_Set_Fan_Level': packet-ipmi.c:3440: warning: unused parameter `pinfo' packet-ipmi.c:3441: warning: unused parameter `len' packet-ipmi.c:3441: warning: unused parameter `authtype' packet-ipmi.c: In function `dissect_cmd_Get_Fan_Level': packet-ipmi.c:3475: warning: unused parameter `pinfo' packet-ipmi.c:3476: warning: unused parameter `authtype' /usr/include/stdio.h: At top level:packet-ipmi.c:1301: warning: `cmd_SetFRULedState_data_LEDFunction_vals' defined but not used
- References:
- [Ethereal-dev] new patch for packet-ipmi.c
- From: Lane Hu
- [Ethereal-dev] new patch for packet-ipmi.c
- Prev by Date: Re: [Ethereal-dev] PROFIBUS Protocol
- Next by Date: Re: [Ethereal-dev] Patch to packet-eth.c - automatically interpret as FW1 monitor file
- Previous by thread: [Ethereal-dev] new patch for packet-ipmi.c
- Next by thread: [Ethereal-dev] PROFIBUS Protocol
- Index(es):