Skip to content

Warnings

Alex Zimin edited this page Jul 11, 2011 · 3 revisions

Nemerle has the concept of warning levels (specified by -warn:levelnumber). The default warning level is 4, which is quite conservative.

Some warnings are numbered. These warnings can be disabled using -nowarn:num option of ncc:

  • N0028 - (level 4) 'function declaration' has the wrong signature to be an entry point
  • N0105 - (level 3) The using directive for 'namespace' appeared previously in this namespace
  • N0114 - (level 2) 'function1' hides inherited member 'function2'. To make the current method override that implementation, add the override keyword. Otherwise add the new keyword.
  • N0168 - (level 3) The variable 'var' is declared but never used
  • N10001 - (level 4) Cast is unnecessary
  • N10002 - (level 5) Pedantic checks for illegal characters in input stream
  • N10003 - (level 4) Other global unused member warnings
  • N10004 - (level 5) Warnings about usage of bit operations on enums without correct attribute
  • N10005 - (level 4) warnings about ignoring computed values
A possibly more up to date list can be displayed by providing the -warn-help option to ncc.
Clone this wiki locally