Skip to content

Variable initialization to numeric constant treated as global. #14

Description

sample code:

#define VAL 0
union
{
    typedef_struct_t tst;
    uint32_t val;    // for alignment
} new_struct;

new_struct.tst.a = 0;
new_struct.tst.b = VAL;

Those new_struct initialization statements increase the globals count.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions