Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(build): replace {0} zero-init with {} #1731

Merged
merged 1 commit into from
Mar 7, 2024

Commits on Mar 7, 2024

  1. fix(build): replace {0} zero-init with {}

    Apparently my compiler (gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0)
    does not like initializing structs with {0} at all.
    
    Honestly, I'm not convinced this is valid C++ either, though I'm
    pretty sure it is valid C. E.g. this page:
    https://en.cppreference.com/w/cpp/language/zero_initialization
    does not mention {0} as a valid way to zero-initialize a struct.
    
    Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
    gnosek committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    de9aec2 View commit details
    Browse the repository at this point in the history