maxerrorcount. NXP CodeWarrior Development Studio
जाहिरात
जाहिरात
maxerrorcount
• An empty return
statement in a function that is not declared void
. For example, a non-void function with an empty return statement, listed below, results in a warning message.
Listing 31-3. A non-void function with an empty return statement
int MyInit(void)
{
int err = GetMyResources();
if (err != -1)
{
err = GetMoreResources();
}
return; /* WARNING: empty return statement */
}
A non-void function with a proper return statement, listed below, shows how to prevent this warning message.
Listing 31-4. A non-void function with a proper return statement
int MyInit(void)
{
int err = GetMyResources();
if (err != -1)
{
err = GetMoreResources();
}
return err; /* OK */
}
By default, this setting is off
.
31.2 maxerrorcount
Limits the number of error messages emitted while compiling a single file.
Syntax
#pragma maxerrorcount(
num | off )
Parameters
num
Specifies the maximum number of error messages issued per source file.
off
Does not limit the number of error messages issued per source file.
Remarks
CodeWarrior Development Studio for Power Architecture Processors Build Tools Reference Manual, Rev.
10.6, 02/2014
468 Freescale Semiconductor, Inc.
डाउनलोड
जाहिरात