 
                            ...
| Code Block | ||||
|---|---|---|---|---|
| 
 | ||||
| static const double C = -0x16c087e80f1e27.0p-62;  /* -0.00138867637746099294692 */
extern inline void func(double a) {
  double b;
  b = a * C; // GCC flagged this line
}
 | 
Compliant Solution
This compliant solution does not declare the constant to be {[static}}.
| Code Block | ||||
|---|---|---|---|---|
| 
 | ||||
| const double C = -0x16c087e80f1e27.0p-62;  /* -0.00138867637746099294692 */
extern inline void func(double a) {
  double b;
  b = a * C; // GCC flagged this line
}
 | 
Risk Assessment
| Rule | Severity | Likelihood | Remediation Cost | Priority | Level | 
|---|---|---|---|---|---|
| DCL41-C | Low | Unlikely | Medium | P2 | L3 | 
...