-
Notifications
You must be signed in to change notification settings - Fork 448
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
Ignore unknown annotations/pragmas #416
Comments
I think that today they are silently ignored. |
It would be easy to check that there are no unknown annotations. |
@mbudiu-vmw they were not silently ignored. Agreed that we should not mandate anything in the spec other that they should not do anything. However, an implementation (like p4c) should decide how to handle them. I thought warnings are a fair game, especially if we add support for ignoring classes of warnings. Silently ignored is not always the best, as people may think their annotation does something. |
@cc10512 : what are you proposing to do about this issue? |
Fixed by #419 |
Unknown @annotations should print a warning, but not give an error.
The text was updated successfully, but these errors were encountered: