Motorola DSP56800 Guia do Utilizador Página 426

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 446
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 425
Pragmas for the DSP56800 and DSP56800E
Pragma Reference
426
Targeting MC56F83xx/DSP5685x Controllers
warn_no_side_effect
Controls the issuing of warnings for redundant statements.
Prototype
#pragma warn_no_side_effect on | off | reset
Remarks
If you enable this pragma, the compiler issues a warning when it encounters a
statement that produces no side effect. To suppress this warning, cast the statement
with (void). Listing C.28
provides an example.
Listing C.28 Example of Pragma warn_no_side_effect
#pragma warn_no_side_effect on
void foo(int a,int b)
{
a+b; // WARNING: expression has no side effect
(void)(a+b); // void cast suppresses warning
}
This pragma does not correspond to any panel setting in the C/C++ Preprocessor
panel. To check this setting, use __option (warn_no_side_effect),
described in Checking Settings
. By default, this pragma is disabled.
warn_notinlined
Controls the issuing of warnings for functions the compiler cannot inline.
Prototype
#pragma warn_notinlined on | off | reset
Remarks
The compiler issues a warning for non-inlined inline function calls.
Vista de página 425
1 2 ... 421 422 423 424 425 426 427 428 429 430 431 ... 445 446

Comentários a estes Manuais

Sem comentários