ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Warnings in chartdir.h
Posted by Marc on Aug-05-2011 04:13
Although I know I can edit these files myself and #define them out, but can the following
warnings be fixed by default:

chartdirector/x86_64/include/chartdir.h:2745:19: warning: "goldGradient" defined but not
used
chartdirector/x86_64/include/chartdir.h:2746:19: warning: "silverGradient" defined but not
used
chartdirector/x86_64/include/chartdir.h:2747:19: warning: "redMetalGradient" defined but
not used
chartdirector/x86_64/include/chartdir.h:2748:19: warning: "blueMetalGradient" defined but
not used
chartdirector/x86_64/include/chartdir.h:2749:19: warning: "greenMetalGradient" defined but
not used
chartdirector/x86_64/include/chartdir.h:2772:19: warning: "oldDefaultPalette" defined but
not used
chartdirector/x86_64/include/chartdir.h:2773:19: warning: "defaultPalette" defined but not
used
chartdirector/x86_64/include/chartdir.h:2774:19: warning: "whiteOnBlackPalette" defined
but not used
chartdirector/x86_64/include/chartdir.h:2775:19: warning: "transparentPalette" defined but
not used

Thanks,
Marc

  Re: Warnings in chartdir.h
Posted by Peter Kwan on Aug-06-2011 01:12
Hi Marc,

You may try to add the following line before including "chartdir.h":

#define CHARTDIR_HIDE_OBSOLETE

The lines that causes the warning messages are for compatibility with older versions of ChartDirector. It is known that these variables may cause warning messages in a few compilers in certain compilation mode, but those warning messages are harmless and can be ignored. If you use "#define CHARTDIR_HIDE_OBSOLETE", you will disable all those variables.

Hope this can help.

Regards
Peter Kwan