Warnings in Out-Of-Box C Code
(Doc ID 2903986.1)
Last updated on DECEMBER 22, 2023
Applies to:
Oracle Communications Billing and Revenue Management - Version 12.0.0.4.0 and laterInformation in this document applies to any platform.
Symptoms
How to resolve the warning message during Out of Box (OOB) C code compilation?
---------------------------------------
In file included from fm_bill_pol_calc_pymt_due_t.c:18:0:
../../../include/pin_bill.h:129:14: warning: ‘not_billable_items’ defined but not used [-Wunused-variable]
static char *not_billable_items[] = {
^
../../../include/pin_bill.h:504:14: warning: ‘map_seq_id_to_name’ defined but not used [-Wunused-variable]
static char *map_seq_id_to_name[] = {
---------------------------------------
Static arrays from OOB pin_bill.h
static char *not_billable_items[] = {
};
static char *map_seq_id_to_name[] = {
};
Reproduced Steps:
---------------------------
i. Go to dir /pinhome/pin/opt/portal/7.5/source/sys/fm_bill_pol
ii. Run make. All goes fine.
iii. Backup Makefile in the dir and open the orginal Makefile file and append "-Wunused" like below:
CFLAGS_linux= -m32 -fPIC -Wunused
iv. Remove the *.o files and fm_bill_pol_custom.so [if they exist].
e.g rm -rf *.o and rm fm_bill_pol_custom.so
v. Run make again, can see the warning messages as below:
>> make
gcc -c -m32 -fPIC -Wunused -D_REENTRANT -DFOR_CM -DFM_BILL_POL_DLL
-I../../../include -DPCMCPP_CONST_SAFE -DFOR_CM -DFM_BILL_POL_DLL
fm_bill_pol_config.c fm_bill_pol_init.c fm_bill_pol_spec_billno.c
fm_bill_pol_valid_dispute.c fm_bill_pol_valid_settlement.c
fm_bill_pol_valid_adjustment.c fm_bill_pol_valid_transfer.c
fm_bill_pol_valid_writeoff.c fm_bill_pol_bill_pre_commit.c
fm_bill_pol_spec_future_cycle.c fm_bill_pol_get_pending_items.c
fm_bill_pol_get_event_specific_details.c fm_bill_pol_post_billing.c
fm_bill_pol_check_suppression.c fm_bill_pol_calc_pymt_due_t.c
fm_bill_pol_event_search.c fm_bill_pol_reverse_payment.c
fm_bill_pol_config_billing_cycle.c
fm_bill_pol_config.c:12: warning: ‘Sccs_id’ defined but not used
fm_bill_pol_spec_billno.c:12: warning: ‘Sccs_id’ defined but not used
../../../include/pin_bill.h:128: warning: ‘not_billable_items’ defined but not used
../../../include/pin_bill.h:501: warning: ‘map_seq_id_to_name’ defined but not used
fm_bill_pol_valid_dispute.c: In function ‘op_bill_pol_valid_dispute’:
fm_bill_pol_valid_dispute.c:68: warning: unused variable ‘ctxp’
fm_bill_pol_valid_dispute.c: At top level:
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |