From: abx AT abx DOT art DOT pl (Wlodzimierz ABX Skiba) Newsgroups: comp.os.msdos.djgpp Subject: cleaning source from warnings troubles Date: 23 Sep 2002 02:44:34 -0700 Organization: http://groups.google.com/ Lines: 96 Message-ID: NNTP-Posting-Host: 195.205.156.102 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1032774274 31941 127.0.0.1 (23 Sep 2002 09:44:34 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: 23 Sep 2002 09:44:34 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I'm trying to clean sources of POV-Ray from warnings outputed with gcc 3.1 under DJGPP. I have easy removed most of them but found two I don't know how to fix. 1. "aggregate has a partly bracketed initializer" I know what this message mean but I don't know why this is reported for below definition: // from file_pov.h enum { POV_File_Unknown = 0, POV_File_Image_Targa = 1, POV_File_Image_PNG = 2, POV_File_Image_PPM = 3, POV_File_Image_PGM = 4, POV_File_Image_GIF = 5, POV_File_Image_IFF = 6, POV_File_Image_JPEG = 7, POV_File_Image_TIFF = 8, POV_File_Image_System = 9, POV_File_Text_POV = 10, POV_File_Text_INC = 11, POV_File_Text_Macro = POV_File_Text_INC, POV_File_Text_INI = 12, POV_File_Text_CSV = 13, POV_File_Text_Stream = 14, POV_File_Text_User = 15, POV_File_Data_DF3 = 16, POV_File_Data_RCA = 17, POV_File_Data_LOG = 18, POV_File_Font_TTF = 19, POV_File_Unknown_Count = 20 }; // from file_pov.cpp typedef struct { char *ext[4]; } POV_File_Extensions; POV_File_Extensions gPOV_File_Extensions[POV_File_Unknown_Count] = { { "", "", "", "" }, // POV_File_Unknown { ".tga", ".TGA", "", "" }, // POV_File_Image_Targa { ".png", ".PNG", "", "" }, // POV_File_Image_PNG { ".ppm", ".PPM", "", "" }, // POV_File_Image_PPM { ".pgm", ".PGM", "", "" }, // POV_File_Image_PGM { ".gif", ".GIF", "", "" }, // POV_File_Image_GIF { ".iff", ".IFF", "", "" }, // POV_File_Image_IFF { ".jpg", ".JPG", ".jpeg", ".JPEG" }, // POV_File_Image_JPEG { ".tif", ".TIF", ".tiff", ".TIFF" }, // POV_File_Image_TIFF { POV_IS1, POV_IS2, POV_IS3, POV_IS4 }, // POV_File_Image_System { ".pov", ".POV", "", "" }, // POV_File_Text_POV { ".inc", ".INC", "", "" }, // POV_File_Text_INC { ".ini", ".INI", "", "" }, // POV_File_Text_INI { ".csv", ".CSV", "", "" }, // POV_File_Text_CSV { ".txt", ".TXT", "", "" }, // POV_File_Text_Stream { "", "", "", "" }, // POV_File_Text_User { ".df3", ".DF3", "", "" }, // POV_File_Data_DF3 { ".rca", ".RCA", "", "" }, // POV_File_Data_RCA { ".log", ".LOG", "", "" }, // POV_File_Data_LOG { ".ttf", ".TTF", "", "" } // POV_File_Font_TTF }; if you are not sure about my quoting you can check povray sources at http://www.povray.org/download/ 2. "multi-character character constant" Is there any way to remove this warning (of course except command line option) for definition: enum { kPOVMSObjectClassID = 'OCLA', kPOVMSMessageClassID = 'MCLA', kPOVMSMessageIdentID = 'MIDE', kPOVMSTargetAddressID = 'MTRG', kPOVMSSourceAddressID = 'MSRC', kPOVMSMessageTimeoutID = 'TOUT', kPOVMSMessageErrorID = 'MERR' }; I have additional question. I can't write warnings of compiler with gcc under djgpp to file with simple redirection gcc ... > file.txt It creates file.txt but warnings are outputted to the screen. Is it general rule for gcc or just problem of djgpp port ? Is there switch in options like for POV ? I can't find anything like this in documentation. I use Win95 OSR2. ABX