User guide

86 Neuron C Compiler Errors (NCC)
NCC# Description
310
The symbol ‘<name>’ was declared but never used [NCC#310]
The compiler issues this warning for any run-time object that is declared,
but never used in the executable code. Run-time objects include anything
that consumes Neuron memory or other run-time resources, such as I/O
objects, variables, functions, timers, and so on. No warning is issued for
compile time objects, such as typedefs, structure tags, and so on, which are
not used. Some objects may be intentionally declared, but unused. If it is
desired to suppress this warning for a certain symbol, the following pragma
may be inserted following the declaration of the object in question:
#pragma ignore_notused symbol
This directive may be used multiple times, for each symbol for which the
warning should be suppressed.
311
312
313
Redefinition of ‘<macroname>’ hides function [NCC#311]
Redefinition of ‘<macroname>’ hides enum value [NCC#312]
Redefinition of ‘<macroname>’ hides label [NCC#313]
The macro being defined, by the rules of ANSI C, will supersede any other
declarations of the same name. This may not be what the programmer
intended, so if a conflict is detected, to help with detection of inadvertent
programming errors, the above warning(s) will be printed.
314
Cannot redefine ‘<name>’ [NCC#314]
The name has been declared as a certain type of identifier more than once
in the scope. For example, it is illegal to define a variable twice at file
scope, or a function, or a macro, and so on (however, there may be multiple
extern declarations for the same variable). Note that a macro definition is
always considered to be at file scope, regardless of its placement in a file.
315
316
Name of network variable, ‘<name>’, exceeds 16 chars [NCC#315]
Name of msg_tag, ‘<name>’ exceeds 16 chars [NCC#316]
Any network variable or message tag name is limited to 16 characters.
Likewise, if a typedef name is used in declaration of a network variable, it
too must be 16 characters or less in length.
317
Label ‘<name>’ is not defined [NCC#317]
The specified label used in a goto statement is not defined in the current
procedure or task.