Skip to content

Uninitialized value reported by GCC >= 11 #52

Description

@th-otto

Add

handles = *(long *)handle_table / sizeof(Virtual *) - 2;
gcc reports an uninitialized value. The code looks rather strange to me, it dereference the memory just allocated. Shouldn't that just be

handles = 64;

ie. the number of new handles just allocated?

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