Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007886OCamllanguage featurespublic2018-12-27 14:522019-01-07 14:23
Reporterdinosaure 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0007886: [@warning "-34"] does not work
DescriptionMay be it's not an issue but I expect to discard the warning 34 in some pieces of my code instead to have a global [@@@warning "-34"] in my code. So, type[@warning "-34"] should work.

Currently on OCaml 4.07.0.
Steps To Reproduce$ touch test.mli
$ echo "type[@warning "-34"] foo = unit
$ ocamlc -w @34 test.mli test.ml
Error (warning 34): unused type foo.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0019533)
dim (developer)
2019-01-07 14:23

A temporary workaround:

include struct
  [@@@warning "-34"]
  type foo = unit
end

- Issue History
Date Modified Username Field Change
2018-12-27 14:52 dinosaure New Issue
2019-01-07 14:22 dim Status new => acknowledged
2019-01-07 14:23 dim Note Added: 0019533


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker