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: silence compiler warning node_process_methods #28261

Closed

Commits on Jun 17, 2019

  1. src: silence compiler warning node_process_methods

    Currently, the following compiler warning is generated by clang:
    ../src/node_process_methods.cc:71:3:
    warning: indirection of non-volatile null pointer will be deleted,
    not trap [-Wnull-dereference]
      *static_cast<volatile void**>(nullptr) = nullptr;
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../src/node_process_methods.cc:71:3: note:
    consider using __builtin_trap() or qualifying pointer with 'volatile'
    1 warning generated.
    
    This commit adds the volatile qualifier to avoid this warning.
    danbev committed Jun 17, 2019
    Configuration menu
    Copy the full SHA
    68d30b0 View commit details
    Browse the repository at this point in the history