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

src: use C++ style for struct with initializers #32134

Closed
wants to merge 1 commit into from

Commits on Mar 7, 2020

  1. src: use C++ style for struct with initializers

    Fixes warning on clang 11:
    
            In file included from ../../src/node_http2.cc:6:
            ../../src/node_http2.h:508:15: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
            typedef struct {
                          ^
                           SessionJSFields
            ../../src/node_http2.h:512:33: note: type is not C-compatible due to this default member initializer
              uint32_t max_invalid_frames = 1000;
                                            ^~~~
            ../../src/node_http2.h:514:3: note: type is given name 'SessionJSFields' for linkage purposes by this typedef declaration
            } SessionJSFields;
              ^
    sam-github committed Mar 7, 2020
    Configuration menu
    Copy the full SHA
    340df52 View commit details
    Browse the repository at this point in the history