Project

General

Profile

Actions

Feature #877

closed

Cppcheck

Added by Alexis Jeandet about 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Start date:
03/01/2017
Due date:
% Done:

0%

Estimated time:

Description

J'ai ajouté le support de cppcheck pour le FSW, voir le pull request ici

voici ce que ça donne sur la R3+

à noter le:

/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:1058: error: Array 'binToRemove[3]' accessed at index 3, which is out of bounds.

FSW_cppcheck_test: Running cppcheck on target FSW...
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_globals.c:0: information: Too many #ifdef configurations - cppcheck only checks 12 of 31 configurations. Use --force to check all
 configurations.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_init.c:0: information: Too many #ifdef configurations - cppcheck only checks 12 of 178 configurations. Use --force to check all c
onfigurations.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:0: information: Too many #ifdef configurations - cppcheck only checks 12 of 38 configurations. Use --force to check all co
nfigurations.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:260: style: Variable 'status' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:272: style: Variable 'status' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:795: style: Variable 'hk_lfr_le_cnt' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:813: style: Variable 'hk_lfr_me_cnt' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:821: style: Variable 'hk_lfr_he_cnt' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/header/processing/fsw_processing.h:173: style: The scope of the variable 'sum' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/header/processing/fsw_processing.h:178: style: The scope of the variable 'isValid' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/LFR_basic-parameters/basic_parameters.h:39: style: The scope of the variable 'PSDB' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/LFR_basic-parameters/basic_parameters.h:40: style: The scope of the variable 'PSDE' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/LFR_basic-parameters/basic_parameters.h:41: style: The scope of the variable 'tmp' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/LFR_basic-parameters/basic_parameters.h:46: style: The scope of the variable 'tr_SB_SB' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/LFR_basic-parameters/basic_parameters.h:51: style: The scope of the variable 'ny' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/LFR_basic-parameters/basic_parameters.h:52: style: The scope of the variable 'nz' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/LFR_basic-parameters/basic_parameters.h:53: style: The scope of the variable 'bx_bx_star' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/LFR_basic-parameters/basic_parameters.h:55: style: The scope of the variable 'significand' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/LFR_basic-parameters/basic_parameters.h:61: style: The scope of the variable 'tmp_uint8' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/LFR_basic-parameters/basic_parameters.h:62: style: The scope of the variable 'pt_uint8' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/LFR_basic-parameters/basic_parameters.h:66: style: The scope of the variable 'psd' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/LFR_basic-parameters/basic_parameters.h:67: style: The scope of the variable 'exp' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/LFR_basic-parameters/basic_parameters.h:496: style: The scope of the variable 'aux' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/LFR_basic-parameters/basic_parameters.h:497: style: The scope of the variable 'significand' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/LFR_basic-parameters/basic_parameters.h:501: style: The scope of the variable 'pt_uint8' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/LFR_basic-parameters/basic_parameters.h:505: style: The scope of the variable 'autocor' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/LFR_basic-parameters/basic_parameters.h:506: style: The scope of the variable 'exp' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:434: style: The scope of the variable 'intEventOut' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:435: style: The scope of the variable 'coarse_time' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:436: style: The scope of the variable 'fine_time' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/LFR_basic-parameters/basic_parameters.h:169: style: Variable 'tmp_uint16' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/LFR_basic-parameters/basic_parameters.h:938: style: Variable 'pt_uint8' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/LFR_basic-parameters/basic_parameters.h:935: style: Variable 'tmp_uint16' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:88: style: Variable 'status_code' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:210: style: Variable 'status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:216: style: Variable 'j' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:418: style: Variable 'status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:401: style: Variable 'average_v' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:402: style: Variable 'average_e1' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:403: style: Variable 'average_e2' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:469: style: Variable 'coarse_time' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:470: style: Variable 'fine_time' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:792: style: Variable 'current_hk_lfr_he_cnt' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:222: style: Variable 'status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:0: information: Too many #ifdef configurations - cppcheck only checks 12 of 37 configurations. Use --force to check a
ll configurations.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:105: style: Variable 'status' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:352: style: Variable 'status' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:424: style: Variable 'status' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:591: style: Variable 'status' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:1018: style: Variable 'header.time[0]' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:1019: style: Variable 'header.time[0]' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:1020: style: Variable 'header.time[0]' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:1021: style: Variable 'header.time[0]' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:1022: style: Variable 'header.time[0]' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:1048: style: Variable 'header.time[0]' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:1049: style: Variable 'header.time[0]' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:1050: style: Variable 'header.time[0]' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:1051: style: Variable 'header.time[0]' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:1052: style: Variable 'header.time[0]' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:1080: style: Variable 'header.time[0]' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:1081: style: Variable 'header.time[0]' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:1082: style: Variable 'header.time[0]' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:1083: style: Variable 'header.time[0]' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:1084: style: Variable 'header.time[0]' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:123: style: The scope of the variable 'len' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:1512: style: The scope of the variable 'length' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:193: style: Variable 'status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:591: style: Variable 'status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:649: style: Variable 'status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:652: style: Variable 'coarseTime' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:653: style: Variable 'fineTime' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:406: error: Uninitialized variable: status
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/lfr_cpu_usage_report.c:0: information: Too many #ifdef configurations - cppcheck only checks 12 of 28 configurations. Use --force to
check all configurations.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf0_prc0.c:0: information: Too many #ifdef configurations - cppcheck only checks 12 of 37 configurations. Use --force to
check all configurations.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf0_prc0.c:198: style: The scope of the variable 'nbSMInASMNORM' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf0_prc0.c:199: style: The scope of the variable 'nbSMInASMSBM' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf0_prc0.c:360: style: Variable 'status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf1_prc1.c:0: information: Too many #ifdef configurations - cppcheck only checks 12 of 37 configurations. Use --force to
check all configurations.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf1_prc1.c:199: style: The scope of the variable 'nbSMInASMNORM' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf1_prc1.c:200: style: The scope of the variable 'nbSMInASMSBM' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf1_prc1.c:352: style: Variable 'status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf2_prc2.c:0: information: Too many #ifdef configurations - cppcheck only checks 12 of 37 configurations. Use --force to
check all configurations.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf2_prc2.c:42: style: The scope of the variable 'nodeForAveraging' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf2_prc2.c:146: style: The scope of the variable 'nbSMInASMNORM' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf2_prc2.c:148: style: The scope of the variable 'localTime' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf2_prc2.c:264: style: The scope of the variable 'sum' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf2_prc2.c:238: style: Variable 'status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf2_prc2.c:184: style: Variable 'localTime' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/fsw_processing.c:0: information: Too many #ifdef configurations - cppcheck only checks 12 of 37 configurations. Use --forc
e to check all configurations.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/fsw_processing.c:419: style: Variable 'packet.time[0]' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/fsw_processing.c:420: style: Variable 'packet.time[0]' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/fsw_processing.c:421: style: Variable 'packet.time[0]' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/fsw_processing.c:422: style: Variable 'packet.time[0]' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/fsw_processing.c:423: style: Variable 'packet.time[0]' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/fsw_processing.c:580: style: The scope of the variable 're' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/fsw_processing.c:581: style: The scope of the variable 'im' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/fsw_processing.c:594: style: The scope of the variable 're' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/fsw_processing.c:240: style: Variable 'status_code' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_acceptance.c:40: style: The scope of the variable 'tmp' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:0: information: Too many #ifdef configurations - cppcheck only checks 12 of 39 configurations. Use --force to check all
configurations.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:1571: style: Boolean result is used in bitwise operation. Clarify expression with parentheses.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:322: style: Variable 'result' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:342: style: Variable 'result' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:521: style: Variable 'status' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:685: style: Variable 'status' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:694: style: Variable 'status' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:699: style: Variable 'status' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:739: style: Variable 'status' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:793: style: Variable 'status' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:798: style: Variable 'status' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:807: style: Variable 'status' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:861: style: Variable 'status' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:866: style: Variable 'status' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:875: style: Variable 'status' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:256: style: The scope of the variable 'val' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:478: style: The scope of the variable 'localCoarseTime' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:479: style: The scope of the variable 'deltaCoarseTime' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:1359: style: The scope of the variable 'data' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:1360: style: The scope of the variable 'val' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:1387: style: The scope of the variable 'val' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:1393: style: The scope of the variable 'dataPtr' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:1566: style: The scope of the variable 'requestedMode' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:0: information: Too many #ifdef configurations - cppcheck only checks 12 of 37 configurations. Use --force
to check all configurations.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:68: style: Variable 'result' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:69: style: Variable 'result' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:70: style: Variable 'result' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:71: style: Variable 'result' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:72: style: Variable 'result' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:139: style: Variable 'flag' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:204: style: Variable 'flag' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:271: style: Variable 'flag' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:290: style: Variable 'flag' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:308: style: Variable 'flag' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:326: style: Variable 'flag' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:1319: style: Variable 'status' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:46: style: The scope of the variable 'result' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:91: style: The scope of the variable 'aux' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:158: style: The scope of the variable 'aux' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:223: style: The scope of the variable 'aux' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:1301: style: The scope of the variable 'kcoeffNormPtr' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:1302: style: The scope of the variable 'kcoeffSbmPtr_a' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:1303: style: The scope of the variable 'kcoeffSbmPtr_b' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:1266: style: Checking if unsigned variable 'sy_lfr_pas_filter_offset' is less than zero.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:1323: style: Unsigned variable 'sy_lfr_kcoeff_frequency' can't be negative so it is unnecessary to test it.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:72: style: Variable 'result' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:54: style: Variable 'status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:130: style: Variable 'status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:195: style: Variable 'status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:262: style: Variable 'status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:627: style: Variable 'status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:565: style: Variable 'sy_lfr_n_cwf_long_f3' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:1278: style: Variable 'status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:1222: style: Variable 'sy_lfr_pas_filter_enabled' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:1058: error: Array 'binToRemove[3]' accessed at index 3, which is out of bounds.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:1468: error: Array 'parameter_dump_packet.sy_lfr_fbins_f0_word1[4]' accessed at index 47, which is out of b
ounds.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:1483: error: Array 'parameter_dump_packet.sy_lfr_rw_mask_f0_word1[4]' accessed at index 47, which is out of
 bounds.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tm_lfr_tc_exe.c:0: information: Too many #ifdef configurations - cppcheck only checks 12 of 37 configurations. Use --force to check a
ll configurations.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tm_lfr_tc_exe.c:379: style: Variable 'packetLength' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:0: information: Too many #ifdef configurations - cppcheck only checks 12 of 37 configurations. Use --force to check all
configurations.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:363: style: Variable 'status' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:364: style: Variable 'status' is reassigned a value before the old one has been used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:1256: style: The scope of the variable 'segmentation_grouping_flag' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:1257: style: The scope of the variable 'new_packet_sequence_control' can be reduced.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:863: style: Checking if unsigned variable 'nbSamplesPart1_asLong' is less than zero.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:134: style: Variable 'spare_status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:256: style: Variable 'status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:364: style: Variable 'status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:421: style: Variable 'status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:482: style: Variable 'status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:560: style: Variable 'status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:1313: style: Variable 'status' is assigned a value that is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/fsw_processing.c:313: style: The function 'SM_init_rings' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:603: style: The function 'WFP_init_rings' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:19: style: The function 'actn_task' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf0_prc0.c:37: style: The function 'avf0_task' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf1_prc1.c:38: style: The function 'avf1_task' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf2_prc2.c:36: style: The function 'avf2_task' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:338: style: The function 'avgv_task' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:1593: style: The function 'commutation_isr1' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:1600: style: The function 'commutation_isr2' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_handler.c:1475: style: The function 'configureCalibration' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:506: style: The function 'cwf1_task' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:437: style: The function 'cwf2_task' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:373: style: The function 'cwf3_task' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:423: style: The function 'dumb_task' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:153: style: The function 'enable_apbuart_transmitter' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:77: style: The function 'getRingNodeToSendSWF' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:228: style: The function 'hous_task' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:491: style: The function 'init_housekeeping_parameters' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf0_prc0.c:408: style: The function 'init_k_coefficients_prc0' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf1_prc1.c:393: style: The function 'init_k_coefficients_prc1' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf2_prc2.c:324: style: The function 'init_k_coefficients_prc2' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:1487: style: The function 'init_kcoefficients_dump' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/tc_load_dump_parameters.c:1401: style: The function 'init_parameter_dump' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:334: style: The function 'link_task' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:183: style: The function 'load_task' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf0_prc0.c:183: style: The function 'prc0_task' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf1_prc1.c:184: style: The function 'prc1_task' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/avf2_prc2.c:134: style: The function 'prc2_task' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:110: style: The function 'recv_task' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:600: style: The function 'send_dumb_hk' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:204: style: The function 'send_task' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:162: style: The function 'set_apbuart_scaler_reload_register' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:867: style: The function 'set_hk_lfr_ahb_correctable' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:1191: style: The function 'set_wfp_delta_f1' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:430: style: The function 'spacewire_configure_link' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:388: style: The function 'spacewire_open_link' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:409: style: The function 'spacewire_start_link' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/processing/fsw_processing.c:247: style: The function 'spectral_matrices_isr' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:30: style: The function 'spiq_task' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:567: style: The function 'swbd_task' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_spacewire.c:899: style: The function 'timecode_irq_handler' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:39: style: The function 'timer_start' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/fsw_misc.c:113: style: The function 'watchdog_stop' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:260: style: The function 'waveforms_isr' is never used.
/home/jeandet/Documents/prog/sparc/DEV_PLE (copie)/src/wf_handler.c:321: style: The function 'wfrm_task' is never used.

Actions #1

Updated by paul leroy about 7 years ago

  • Status changed from New to Feedback
  • Assignee changed from paul leroy to Alexis Jeandet

OK boy, thanks again for your help!

Actions #2

Updated by Alexis Jeandet over 6 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF