Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!sun-barr!newstop!sun!imagen!atari!apratt From: apratt@atari.UUCP (Allan Pratt) Newsgroups: comp.sources.games.bugs Subject: Re: Minor problems in nethack 3.0 Message-ID: <1623@atari.UUCP> Date: 25 Jul 89 16:36:08 GMT References: <239@unmvax.unm.edu> Organization: Atari Corp., Sunnyvale CA Lines: 19 mike@turing.cs.unm.edu (Michael I. Bushnell) writes: >1: If you set gcc to be your compiler, make sure you set > -fwritable-strings in the CFLAGS macro. >2: Gcc gives lots of > warning: fooblat.c:nnn: non-const * set from const * > warning. The first removes the problems with the second. The warning in (2) is usually suppressed (even with -Wall) because so many traditional C programs don't use const in the ANSI way. It only generates incorrect code (common strings folded, all strings in read-only segments) if you don't also have -fwritable-strings. (OK, OK, not incorrect code, but code which doesn't behave the way UNIX-cc-generated code behaves.) Thanks for the tip. ============================================ Opinions expressed above do not necessarily -- Allan Pratt, Atari Corp. reflect those of Atari Corp. or anyone else. ...ames!atari!apratt