-
-
Notifications
You must be signed in to change notification settings - Fork 437
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
Warning: type attributes ignored after type is already defined #6399
Comments
Hello, @diehlpk. |
Please go ahead. There is no need to ask for having a task 'assigned' to you. Just do it. For the problem in question: this warning happens if the compiler first sees a type declared without an attribute, but later the same type is being declared/defined using an attribute, e.g.: struct A;
struct HPX_EXPORT A {...}; The way to resolve this problem is to move the attribute to the first declaration and make sure that the compiler always sees this declaration before the later definition/declaration. |
Hi @hkaiser. I was looking through this issue and I also couldn't reproduce it. I'm not sure if I'm trying to reproduce it on the right place. I'm testing on branch After running
This error happens because It seems that this error is already fixed for version 1.9.x. Is there another branch for v1.8.1 that already solved those issues? I tested other branches like 1.8.1-rc2 and it has the same error. I would love to subimit a PR for both issues. |
Hello all! This might be a novice question, but is it at all possible that the initial warning is not being reported because the function defined in the file hasn’t been used yet? |
Please test against the master branch as we will not patch up the old V1.8.1 release. |
Could you be more specific, please? I'm not sure I understand what you're trying to say. |
I think maybe this issue is already solved. I tested it against master and enabled Also, I found some other warnings from
They seem to be around for a wile. I don't know if they are supposed to be fixed or not. |
Yes, those should be fixed (suppressed). Thanks! |
Expected Behavior
No warning should appear.
Actual Behavior
Specifications
... Please describe your environment
The text was updated successfully, but these errors were encountered: