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

strange behavior with "Warning: the tag "precious" is not used in any flag declaration" #6640

Closed
vicuna opened this issue Oct 31, 2014 · 3 comments
Assignees

Comments

@vicuna
Copy link

vicuna commented Oct 31, 2014

Original bug ID: 6640
Reporter: william
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2016-12-07T10:36:58Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.02.1
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Monitored by: @hcarty

Bug description

I get this message :

Warning: the tag "precious" is not used in any flag declaration, so it will have no effect; it may be a typo. Otherwise use mark_tag_used in your myocamlbuild.ml to disable this warning.

which is due to this in my _tags file :
<old/GlHack/*>:precious

This line works and tells ocamlbuild not to "sanitize" .c files in GlHack. So the warning should not appear ?

@vicuna
Copy link
Author

vicuna commented Oct 31, 2014

Comment author: william

further more, I do not use myocamlbuild.ml

@vicuna
Copy link
Author

vicuna commented Nov 3, 2014

Comment author: william

the warning disappear if I replace 'precious' by 'not_hygienic'

Maybe it would be worth to tell somewhere in the doc that precious is deprecated, and that we should use 'not_hygienic' instead ?

@vicuna
Copy link
Author

vicuna commented Nov 23, 2014

Comment author: @gasche

It's not a decision to deprecate "precious", just that it was forgotten when listing the "hard-coded tags" to be avoided by the "unused tag" warning. This is now fixed in the 4.02 and trunk branches.

(Moving from "precious" to "not_hygienic" is indeed a correct workaround, as they have the same semantics.)

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