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

ppdc-array.cxx:34:31: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion] #5533

Closed
paulmenzel opened this issue Feb 25, 2019 · 2 comments
Assignees

Comments

@paulmenzel
Copy link
Contributor

gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609 gives the error below.

Compiling ppdc-array.cxx...
ppdc-array.cxx:34:31: error: implicit conversion changes signedness: 'int' to
      'unsigned long' [-Werror,-Wsign-conversion]
      data = new ppdcShared *[count];
             ~~~              ^~~~~
ppdc-array.cxx:84:30: error: implicit conversion changes signedness: 'int' to
      'unsigned long' [-Werror,-Wsign-conversion]
    temp  = new ppdcShared *[alloc];
            ~~~              ^~~~~
2 errors generated.
@michaelrsweet
Copy link
Collaborator

This must be new to this version of GCC; I've not see the same warning on my VMs or with clang...

@michaelrsweet
Copy link
Collaborator

[master d3454c3] Fix compiler warning from newer GCC (Issue #5533)
[master 7d950e9] Fix compiler warning from newer GCC (Issue #5533)

[branch-2.2 17675b0] Fix compiler warning from newer GCC (Issue #5533)

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

No branches or pull requests

2 participants