ARM Technical Support Knowledge Articles

WARNING 275 (EXPRESSION WITH POSSIBLY NO EFFECT)

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

When I try to compile my C source file the compiler reports the following diagnostic:

WARNING 275:  EXPRESSION WITH POSSIBLY NO EFFECT

ANSWER

The compiler detected an expression which does not generate code. For example:

void test (void)
  {
  int  i1, i2, i3;
  i1, i2, i3;         /* dead expression */
  i1 << 3;            /* result is not used */
  }

MORE INFORMATION

Article last edited on: 2005-08-03 13:02:07

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential