Why is "W1025 Unsupported language feature: 'custom attribute' "only a warning?

Why is "W1025 Unsupported language feature: 'custom attribute' "only a warning?

type       
  MyAttribute = class(TCustomAttribute) end;
  [MyAttartibuet]
  TForm3 = class(TForm)
  end;
And it just compiles with a warning. Why i have to turn in every project this warning into an error?

Comments

  1. Our Third Party Components are used only as compiled units, because our library and search paths are set to ensure this. So we do not have this problem.

    But of course it is not easy to spot warnings, if one cannot work this way for some reason.
    But the problem is, that other warnings in your code might not be not spotted as well, and they might indicate a problem as well...

    ReplyDelete
  2. My initial problem is simple:
    If I write TOjbect, i get a compile error. If I write a misspelled variable, I get a compile error. If I write a misspelled reserved word, I get a compile error. If I write a misspelled attribute, I get no compile error. Why treating attribute in an other way than the rest. If the written word does not exist, I get an error except it is an attribute...

    ReplyDelete
  3. For my own code, I treat warnings as errors. I.e. something to be fixed.

    ReplyDelete

Post a Comment