Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: minor edit

...

Noncompliant Code Example (Internal Linkage)

This noncompliant code example refers to a file scope static variable, which has internal linkage, inside an external inline function:

...

Compliant Solution (Internal Linkage)

This compliant solution does not declare the variable at file scope to be static and so omits the static qualifier; the variable has external linkage by default.

...