Terry Buckley

mwcc56800e.exe gives warnings on bean generated code.

Discussion created by Terry Buckley on May 22, 2009
Latest reply on May 27, 2009 by Terry Buckley

Did I do something wrong, or is the bean generated code bad?

 

Do I need to turn off some warning?

 

Is the compiler correct, and why doesn't the IDE compile of the same file give the

same warning.

 

Compiling ....  ../CODE/AS1.c
### mwcc56800e.exe Compiler:
#    File: ..\CODE\AS1.c
# ----------------------
#     172:     getReg(SCI0_SCISR);                /* Reset interrupt request fla
gs */
# Warning:                       ^
#   expression has no side effect
### mwcc56800e.exe Compiler:
#     890:   getReg(SCI0_SCISR);                  /* Reset interrupt request fla
gs */
# Warning:                     ^
#   expression has no side effect
### mwcc56800e.exe Compiler:
#     969:     getReg(SCI0_SCISR);                /* Reset interrupt request fla
gs */
# Warning:                       ^
#   expression has no side effect

 

Terry

Outcomes