This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Is there a way to suspend warning C280 ?

The following warnings apears from time to time.

MEM_TST.C(41): warning C280: 'mem_DPP': unreferenced local variable


Sometimes I want to suspend them, but I can't find how.
suspend linker warnings, Lxxx, are possible via the project configuration screens but I didn't see any place to direct the compiler to suspend compilation warnings Cxxx.

Is it possible at all ?

I am using the following environment:
IDE-Version:
µVision2 V2.40
Tool Version Numbers:
Toolchain Path: C:\Keil\C51\BIN\
C Compiler: C51.Exe V7.10
Assembler: A51.Exe V7.09
Linker/Locator: BL51.Exe V5.03
Librarian: LIB51.Exe V4.24
Hex Converter: OH51.Exe V2.6
CPU DLL: S8051.DLL V2.43
Dialog DLL: DCORE51.DLL V2.43
Target DLL: BIN\DCD_DoCD.DLL V1.06
Dialog DLL: TP51.DLL V2.43

Thanks.
Amit A.

Parents
  • "The problem with all the mentioed above workarounds is that they can be left in the code and forgotten there forever"

    Equally, they could be left in the Project options (or makefile, or whatever) and forgotten there forever...!

    That's life!

    At least if they're in the source code you can easily document them with some standard comment; eg,

    unused = unused; // HACK! Temporarily suspend warning
    The you do a global search on the entire project source looking for "HACK!"

    In the end, it all just comes down to discipline!

Reply
  • "The problem with all the mentioed above workarounds is that they can be left in the code and forgotten there forever"

    Equally, they could be left in the Project options (or makefile, or whatever) and forgotten there forever...!

    That's life!

    At least if they're in the source code you can easily document them with some standard comment; eg,

    unused = unused; // HACK! Temporarily suspend warning
    The you do a global search on the entire project source looking for "HACK!"

    In the end, it all just comes down to discipline!

Children
No data