Article View: borland.public.cppbuilder.deployment
Article #116Re: Why am I getting these warnings?
From: Antonio Felix
Date: Thu, 13 Apr 2006 14:05
Date: Thu, 13 Apr 2006 14:05
40 lines
1776 bytes
1776 bytes
"Ralph Gamble" <ralphgamble@rogers.com> wrote: >I am having a terrible time trying to Deploy a large project. > >The project is running with no warnings and no errors reported. >I modified Options to compile with no run time libs and recompiled. No >warings or errors were reported. > >I then changed the compiler options from "FullDebug" to "Realease". >now when I rebuild the project I get hundreds of warnings >" 'SomeVariable' is assigned a value that is never used ". >Upon inspection the variables are all used iether as an Index or function >parameter . >Does anyone have any idea of whats going on here? > >Thanks in advance > >Ralph > > Hi Ralph, If you have; ... int myvar = 1; myvar = 2; ... or int myvar = 0; myvar = somefunction(); You've got a warning message because you're assigning a value to myvar that it's never used. HTH Antonio
Technical Details
Message-ID:
<443e5ab2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<443a9344$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f8e54,6dbfef9f2ac9383e X-Google-Attributes: gidf8e54,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Antonio Felix" <nomail@nm.pt> Sender: "Antonio Felix" <nomail@nm.pt> Reply-To: "Antonio Felix" <nomail@nm.pt> Subject: Re: Why am I getting these warnings? Newsgroups: borland.public.cppbuilder.deployment X-User-Info: 195.245.190.93 X-Forwarded-For: unknown References: <443a9344$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <443e5ab2$1@newsgroups.borland.com> Date: 13 Apr 2006 07:05:38 -0700 X-Trace: newsgroups.borland.com 1144937138 207.105.83.66 (13 Apr 2006 07:05:38 -0700) Lines: 40 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail