Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007624OCamllanguage featurespublic2017-09-12 15:582017-09-13 23:51
Reporterdinosaure 
Assigned Tofrisch 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version4.03.0 
Target VersionFixed in Version4.06.0 +dev/beta1/beta2/rc1 
Summary0007624: Annotation [@warning "-32"] does not work correctly
DescriptionWhen we have a unused value annotated with [@warning "-32"] and we compile with '-w @32', the compiler remains in fail.
Steps To Reproducemain.ml:
let[@warning "-32"] f x = x

let g x = x

let () = print_endline "Hello Word!"

main.mli:
val g : 'a -> 'a

$ ocamlc -w @32 main.mli main.ml
Additional InformationWhen we put [@@@warning "-32"] at top-level, all works - but I don't want to silent warning about all unused values.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0018238)
dinosaure (reporter)
2017-09-12 16:36

Tested with 4.06.0+pr1248 too.
(0018239)
xclerc (reporter)
2017-09-12 17:35

Pull request: https://github.com/ocaml/ocaml/pull/1327 [^]

- Issue History
Date Modified Username Field Change
2017-09-12 15:58 dinosaure New Issue
2017-09-12 16:36 dinosaure Note Added: 0018238
2017-09-12 17:35 xclerc Note Added: 0018239
2017-09-13 23:51 frisch Status new => resolved
2017-09-13 23:51 frisch Fixed in Version => 4.06.0 +dev/beta1/beta2/rc1
2017-09-13 23:51 frisch Resolution open => fixed
2017-09-13 23:51 frisch Assigned To => frisch


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker