home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / cplus / 20093 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  920 b 

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!doc.ic.ac.uk!warwick!uknet!axion!planet.bt.co.uk!njs
  2. From: njs@planet.bt.co.uk (N.Sowatskey(nonNIS))
  3. Newsgroups: comp.lang.c++
  4. Subject: static chars and 2.0 v 2.1 cfront
  5. Keywords: static chars in 2.1 cfront
  6. Message-ID: <1993Jan27.092843.26431@planet.bt.co.uk>
  7. Date: 27 Jan 93 09:28:43 GMT
  8. Sender: news@planet.bt.co.uk
  9. Organization: DNM42, BT Labs, Martlesham Heath, Ipswich, UK.
  10. Lines: 15
  11. Originator: njs@andromeda
  12.  
  13.  
  14. With Sun's 2.0 cfront I use the following in a header file to define a text 
  15. string which is used in a variety of places:
  16.  
  17. static char someString [] = "Some Text";
  18.  
  19. Which never seemed to worry 2.0 cfront.  With 2.1 cfront from CenterLine, however I get the following message:
  20.  
  21. warning:  ::someString defined but not used
  22.  
  23. Anyone know what has changed with the language requirements, and what I should do to get rid of the warning?
  24.  
  25. Ta
  26.  
  27. Nathan
  28.