Ticket #3933 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

"include" deprecation warning is a bit off

Reported by: isaacdupree Owned by: igloo
Priority: high Milestone: 6.12.3
Component: Compiler Version: 6.12.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Incorrect warning at compile-time Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

This is silly, but I got a warning

Display.hs:1:11:
    Warning: -#include is deprecated: No longer has any effect

from a piece of code that actually used the {-# INCLUDE #-} pragma. Shouldn't it say INCLUDE is deprecated or that they're all deprecated? Slightly related to #3844.

Change History

Changed 3 years ago by igloo

  • priority changed from normal to high
  • milestone set to 6.12.3

Thanks for the suggestion.

Changed 3 years ago by igloo

  • owner set to igloo

Changed 3 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

Fixed in HEAD and 6.12:

Thu May  6 14:09:10 BST 2010  Ian Lynagh <igloo@earth.li>
  * Give a better deprecated message for INCLUDE pragmas; fixes #3933
  We now have a DeprecatedFullText constructor, so we can override the
  "-#include is deprecated: " part of the warning.
Note: See TracTickets for help on using tickets.