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

Compile error when -Werror, -Wreorder enabled #236

Closed
syifan opened this issue Feb 8, 2017 · 1 comment
Closed

Compile error when -Werror, -Wreorder enabled #236

syifan opened this issue Feb 8, 2017 · 1 comment

Comments

@syifan
Copy link

syifan commented Feb 8, 2017

I got the following error if -Werror -Wall enabled. I am not sure if it is my mistake or some potential problem in HCC. Although I can use -Wno-reorder to disable the error detection, I think it is better to get rid of this problem, since it should be a very easy fix.

/opt/rocm/hcc-lc/include/kalmar_runtime.h:95:47: error: field 'seqNum' will be initialized after field 'commandKind' [-Werror,-Wreorder]
  KalmarAsyncOp(hcCommandKind xCommandKind) : seqNum(0), commandKind(xCommandKind) {} 
@whchung
Copy link
Collaborator

whchung commented Feb 8, 2017

@syifan this was fixed a while ago in this commit

10a2a89#diff-fd44e4acc497ae0c856f2e116d5fe4c1

could you try pull a newer version of HCC?

@whchung whchung closed this as completed Feb 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants