?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ???



I need to sometimes initialize an object to NULL and get this
message.  How avoid???

warning: ANSI C++ forbids implicit conversion from `void *' in initialization

Here is the pixmap class that causes this (outside of main() )

class Pixmaps {
   private:
   public:
      static GdkPixmap* middleMassTimeSeriesPlot;     
      static GdkPixmap* phaseSpacePlot;
      static GdkPixmap* totalTimeSeriesPlot;     
      static GdkPixmap* powerSpectralDensityPlot;
};
GdkPixmap* Pixmaps::middleMassTimeSeriesPlot = NULL;
GdkPixmap* Pixmaps::phaseSpacePlot           = NULL;
GdkPixmap* Pixmaps::totalTimeSeriesPlot      = NULL;
GdkPixmap* Pixmaps::powerSpectralDensityPlot = NULL;

CS
-- 
=======================================================
| Dr. Christian Seberino  || (619) 553-7940  (office) |
| SPAWARSYSCEN 2363       || (619) 553-2836  (fax)    |
| 53560 HULL ST           ||                          |
| SAN DIEGO CA 92152-5001 || seberino spawar navy mil |
=======================================================



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]