Project

General

Profile

Actions

Bug #3124

closed

Analyse Logiscope LFR_3.2.0.21 : LFR_basic-parameters : Don_Initialisation_P1 Severity is High

Added by William Recart over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
03/10/2018
Due date:
% Done:

0%

Estimated time:
revision:
r0

Description

Rappel de la règle :
Don_Initialisation_P1:
Definition:
-----------
Global variables must be initialized when they are defined.

Justification:
--------------
Not all compilers give the same default values. Unexpected behaviour can be
avoided with better control over variable values. Initializing global variables
when they are declared ensures that they are initialized before being used.

La règle n'est pas respectée dans 6 cas d'après Logiscope:
basic_parameters_utilities.h : lines : 19, 20, 21, 22, 24, 25

Actions

Also available in: Atom PDF