<i>Compiler warnings with SunPro</i> status still Open with 4 other changes
by
.
D 2001-08-04T02:04:01
J icomment Logged\sIn:\sYES\s\nuser_id=99220\n\nI\sget\sthe\ssame\swarnings\sfor\sTcl\s8.3.3\son\sSolaris\s7\s(SunOS\n5.7)\swith\sSun\sWorkshop\scompiler\s5.0\s(except\sfor\sthe\ntclIOSock\swarnings).\n\nHere\sare\ssome\scleaner\spatches\sto\sget\srid\sof\sthe\swarnings\n(finally!):\n\n---\stcl.h.old\s\s\sThu\sAug\s\s2\s21:57:37\s2001\n+++\stcl.h\s\s\s\s\s\s\sThu\sAug\s\s2\s17:25:05\s2001\n@@\s-1647,7\s+1647,7\s@@\n\s\s*\svalue\ssince\sthe\sstubs\stables\sdon't\smatch.\n\s\s*/\n\s\n-#define\sTCL_STUB_MAGIC\s0xFCA3BACF\n+#define\sTCL_STUB_MAGIC\s((int)\s0xFCA3BACF)\n\s\n\s/*\n\s\s*\sThe\sfollowing\sfunction\sis\srequired\sto\sbe\sdefined\sin\sall\nstubs\saware\n\n\n---\sregc_lex.c.old\s\s\s\s\s\sThu\sAug\s\s2\s21:56:22\s2001\n+++\sregc_lex.c\s\sFri\sAug\s\s3\s07:46:40\s2001\n@@\s-30,6\s+30,11\s@@\n\s\s*\n\s\s*/\n\s\n+/*\sSuppress\s"statement\snot\sreached"\swarnings\sfrom\sSun\nWorkshop\scompiler.\s*/\n+#ifdef\s__SUNPRO_C\n+#\s\s\spragma\serror_messages(off,\sE_STATEMENT_NOT_REACHED)\n+#endif\n+\n\s/*\sscanning\smacros\s(know\sabout\sv)\s*/\n\s#define\s\s\s\s\s\s\s\sATEOS()\s\s\s\s\s\s\s\s\s(v->now\s>=\sv->stop)\n\s#define\s\s\s\s\s\s\s\sHAVE(n)\s\s\s\s\s\s\s\s\s(v->stop\s-\sv->now\s>=\s(n))\n@@\s-1059,3\s+1064,7\s@@\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sreturn\s(chr)lastresort;\n\s\s\s\s\s\s\s\sreturn\scv->chrs[0];\n\s}\n+\n+#ifdef\s__SUNPRO_C\n+#\s\s\spragma\serror_messages(default,\sE_STATEMENT_NOT_REACHED)\n+#endif\n\n\n---\stclGetDate.y.old\s\s\s\sThu\sAug\s\s2\s22:00:17\s2001\n+++\stclGetDate.y\s\s\s\s\s\s\s\sFri\sAug\s\s3\s07:50:51\s2001\n@@\s-33,6\s+33,11\s@@\n\s#include\s"tclInt.h"\n\s#include\s"tclPort.h"\n\s\n+/*\sSuppress\s"statement\snot\sreached"\swarnings\sfrom\sSun\nWorkshop\scompiler.\s*/\n+#ifdef\s__SUNPRO_C\n+#\s\s\spragma\serror_messages(off,\sE_STATEMENT_NOT_REACHED)\n+#endif\n+\n\s#ifdef\sMAC_TCL\n\s#\s\s\sdefine\sEPOCH\s\s\s\s\s\s\s\s\s\s\s1904\n\s#\s\s\sdefine\sSTART_OF_TIME\s\s\s1904\n\n\nYou'll\salso\sneed\sto\sdo\sa\s"make\sgendate"\sto\supdate\stclDate.c.\n\n(Note:\s\sI\snoticed\sthat\syacc\s3.0\son\sSolaris\sproduces\sa\sclean\ntclDate.c\sthat\sis\sidentical\sto\sthe\sone\sdistributed.\s\nHowever,\sthe\syaccs\sI\stried\son\sLinux\sand\sFreeBSD\s(no\sversion\nnumbers\savailable)\sproduce\sfiles\sthat\sare\ssignificantly\ndifferent\sand\sthat\sdon't\snecessarily\scompile.\s\sI'm\snot\ssure\nif\ssomeone\sshould\sworry\sabout\sthat\sor\snot.)\n\n
J login lloydlim
J mimetype text/plain
J username lloydlim
K 219231ffffffffffffffffffffffffffffffffff
U lloydlim
Z 49c7636581cdc152ab8fd22c014fd8c0