Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 11

...

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 omits the static qualifier; does not declare the variable at file scope to be static and so the variable has external linkage by default.

...