removing warnings

Hi:
I have warnings (w8004) to be specific, how can I remove these warnings?
Any help apreciated.
The warning is in boost 1.36 and reads:
Warning W8004 .\boost/math/tools/roots.hpp 342: 'delta2' is assigned a value 
that is never used in function double 
halley_iterate<math::detail::cbrt_functor<double>,double>(math::detail::cbrt_functor<double>,double,double,double,int,unsigned 
__int64 &)
Any help apreciated.
Sean.
0
Sean
8/15/2008 8:38:46 PM
embarcadero.cppbuilder.ide 2180 articles. 1 followers. Follow

4 Replies
898 Views

Similar Articles

[PageSpeed] 57
Get it on Google Play
Get it on Apple App Store

Sean Farrow wrote:
> Hi:
> I have warnings (w8004) to be specific, how can I remove these warnings?
> Any help apreciated.
> The warning is in boost 1.36 and reads:
> Warning W8004 .\boost/math/tools/roots.hpp 342: 'delta2' is assigned a value 
> that is never used in function double 
> halley_iterate<math::detail::cbrt_functor<double>,double>(math::detail::cbrt_functor<double>,double,double,double,int,unsigned 
> __int64 &)
> Any help apreciated.
> Sean.

The only thing you can do is disable the warning in case for the 
specific project.

That warning is quite common with (I realized I wanted to write Borland 
compiler) codegear compiler. This code will produce it:

void func( void ) {
int test = 1;
}

And this change in code will make it go away:

void func( void ) {
int test = 1; (test);
}
0
Darko
8/15/2008 8:50:27 PM
Sorry to soul stupid, what does the (test_); do?
Chers
Sean.
"Darko Miletic" <kiklop@fibertel.com.ar> wrote in message 
news:3452@forums.codegear.com...
> Sean Farrow wrote:
>> Hi:
>> I have warnings (w8004) to be specific, how can I remove these warnings?
>> Any help apreciated.
>> The warning is in boost 1.36 and reads:
>> Warning W8004 .\boost/math/tools/roots.hpp 342: 'delta2' is assigned a 
>> value
>> that is never used in function double
>> halley_iterate<math::detail::cbrt_functor<double>,double>(math::detail::cbrt_functor<double>,double,double,double,int,unsigned
>> __int64 &)
>> Any help apreciated.
>> Sean.
>
> The only thing you can do is disable the warning in case for the
> specific project.
>
> That warning is quite common with (I realized I wanted to write Borland
> compiler) codegear compiler. This code will produce it:
>
> void func( void ) {
> int test = 1;
> }
>
> And this change in code will make it go away:
>
> void func( void ) {
> int test = 1; (test);
> }
0
Sean
8/15/2008 9:01:09 PM
Sean Farrow wrote:
> Sorry to soul stupid, what does the (test_); do?
> Chers

Nothing. It just gives false impression to the compiler that variable is 
actually used and thus removes the warning.

There is also well known macro in Microsoft Platform SDK that does the 
same thing.

By including windows.h you can use it. So the code becomes this:

#include <windows.h>

void func( void ) {
int test = 1;
UNREFERENCED_PARAMETER(test);
}
0
Darko
8/15/2008 10:47:13 PM
Hi:
Cheers
Sean.
"Darko Miletic" <kiklop@fibertel.com.ar> wrote in message 
news:3538@forums.codegear.com...
> Sean Farrow wrote:
>> Sorry to soul stupid, what does the (test_); do?
>> Chers
>
> Nothing. It just gives false impression to the compiler that variable is
> actually used and thus removes the warning.
>
> There is also well known macro in Microsoft Platform SDK that does the
> same thing.
>
> By including windows.h you can use it. So the code becomes this:
>
> #include <windows.h>
>
> void func( void ) {
> int test = 1;
> UNREFERENCED_PARAMETER(test);
> }
0
Sean
8/15/2008 10:55:34 PM
Reply:

Similar Artilces:

How to remove this Warning
Some days ago, I got an example code from Peter B. When I compile, IDE shows a warning message like this "[DCC Warning] Unit2.pas(173): W1020 Constructing instance of 'TDummyFiler' containing abstract method 'TFiler.FlushBuffer'" How to solve this code : {code} { TListitemStorage } constructor TListitemStorage.Create(AStorage: TStream); begin Assert(Assigned(AStorage)); inherited Create; FStorage := AStorage; FDummyFiler := TDummyFiler.Create(nil, 0); end; {code} Thanks in advace. Regard, -- Eko Indriyawan www.ekoindri.com Delphi makes me ...

superreview requested: [Bug 291988] build warnings in plevent.c : [Attachment 181896] simple patch to remove build warning
Henrik Gemal <bugzilla@gemal.dk> has asked Darin Fisher <darin@meer.net> for superreview: Bug 291988: build warnings in plevent.c https://bugzilla.mozilla.org/show_bug.cgi?id=291988 Attachment 181896: simple patch to remove build warning https://bugzilla.mozilla.org/attachment.cgi?id=181896&action=edit ...

superreview granted: [Bug 291988] build warnings in plevent.c : [Attachment 181896] simple patch to remove build warning
Darin Fisher <darin@meer.net> has granted Henrik Gemal <bugzilla@gemal.dk>'s request for superreview: Bug 291988: build warnings in plevent.c https://bugzilla.mozilla.org/show_bug.cgi?id=291988 Attachment 181896: simple patch to remove build warning https://bugzilla.mozilla.org/attachment.cgi?id=181896&action=edit ...

superreview requested: [Bug 428792] Expanders cause "Unsupport widget" warning : [Attachment 315373] Adds an entry to a switch statement to remove a warning
Ian Spence <ispence@gmail.com> has asked Robert O'Callahan (:roc) <roc@ocallahan.org> for superreview: Bug 428792: Expanders cause "Unsupport widget" warning https://bugzilla.mozilla.org/show_bug.cgi?id=428792 Attachment 315373: Adds an entry to a switch statement to remove a warning https://bugzilla.mozilla.org/attachment.cgi?id=315373&action=edit ------- Additional Comments from Ian Spence <ispence@gmail.com> I noticed while running thunderbird from a terminal that I was getting "Unsupported widget type: 38" repeatedly in the terminal...

superreview requested: [Bug 296237] remove assert in getElementById, use the console service to provide feedback : [Attachment 185033] remove asserts, add console warning
Mike Connor <mconnor@steelgryphon.com> has asked Johnny Stenback <jst@mozilla.org> for superreview: Bug 296237: remove assert in getElementById, use the console service to provide feedback https://bugzilla.mozilla.org/show_bug.cgi?id=296237 Attachment 185033: remove asserts, add console warning https://bugzilla.mozilla.org/attachment.cgi?id=185033&action=edit ...

superreview granted: [Bug 296237] remove assert in getElementById, use the console service to provide feedback : [Attachment 185033] remove asserts, add console warning
Johnny Stenback <jst@mozilla.org> has granted Mike Connor <mconnor@steelgryphon.com>'s request for superreview: Bug 296237: remove assert in getElementById, use the console service to provide feedback https://bugzilla.mozilla.org/show_bug.cgi?id=296237 Attachment 185033: remove asserts, add console warning https://bugzilla.mozilla.org/attachment.cgi?id=185033&action=edit ------- Additional Comments from Johnny Stenback <jst@mozilla.org> I guess it'd be nice to split this code into a global function (i.e. PRBool CheckGetElementByIdArg(const nsAString&a...

superreview granted: [Bug 428792] Expanders cause "Unsupport widget" warning : [Attachment 315373] Adds an entry to a switch statement to remove a warning
Robert O'Callahan (:roc) <roc@ocallahan.org> has granted Ian Spence <ispence@gmail.com>'s request for superreview: Bug 428792: Expanders cause "Unsupport widget" warning https://bugzilla.mozilla.org/show_bug.cgi?id=428792 Attachment 315373: Adds an entry to a switch statement to remove a warning https://bugzilla.mozilla.org/attachment.cgi?id=315373&action=edit ...

superreview requested: [Bug 240309] Remove \n from JavaScript [error:\n|warning:\n] : [Attachment 145942] Remove extra '\n's and clean this code up a bit (debug only).
Johnny Stenback <jst@mozilla.jstenback.com> has asked Boris Zbarsky <bzbarsky@mit.edu> for superreview: Bug 240309: Remove \n from JavaScript [error:\n|warning:\n] http://bugzilla.mozilla.org/show_bug.cgi?id=240309 Attachment 145942: Remove extra '\n's and clean this code up a bit (debug only). http://bugzilla.mozilla.org/attachment.cgi?id=145942&action=edit ...

superreview requested: [Bug 333739] Remove non-IDL interfaces from classinfo lists. : [Attachment 218181] Remove non-IDL interfaces from classinfo interface lists, and make xpconnect warn on such inte
Johnny Stenback <jst@mozilla.org> has asked Boris Zbarsky <bzbarsky@mit.edu> for superreview: Bug 333739: Remove non-IDL interfaces from classinfo lists. https://bugzilla.mozilla.org/show_bug.cgi?id=333739 Attachment 218181: Remove non-IDL interfaces from classinfo interface lists, and make xpconnect warn on such interfaces https://bugzilla.mozilla.org/attachment.cgi?id=218181&action=edit ...

superreview granted: [Bug 333739] Remove non-IDL interfaces from classinfo lists. : [Attachment 218181] Remove non-IDL interfaces from classinfo interface lists, and make xpconnect warn on such interf
Boris Zbarsky <bzbarsky@mit.edu> has granted Johnny Stenback <jst@mozilla.org>'s request for superreview: Bug 333739: Remove non-IDL interfaces from classinfo lists. https://bugzilla.mozilla.org/show_bug.cgi?id=333739 Attachment 218181: Remove non-IDL interfaces from classinfo interface lists, and make xpconnect warn on such interfaces https://bugzilla.mozilla.org/attachment.cgi?id=218181&action=edit ------- Additional Comments from Boris Zbarsky <bzbarsky@mit.edu> sr=bzbarsky; I guess this subsumes my fix for bug 327156, eh? ...

superreview granted: [Bug 240309] Remove \n from JavaScript [error:\n|warning:\n] : [Attachment 145942] Remove extra '\n's and clean this code up a bit (debug only).
Boris Zbarsky <bzbarsky@mit.edu> has granted Johnny Stenback <jst@mozilla.jstenback.com>'s request for superreview: Bug 240309: Remove \n from JavaScript [error:\n|warning:\n] http://bugzilla.mozilla.org/show_bug.cgi?id=240309 Attachment 145942: Remove extra '\n's and clean this code up a bit (debug only). http://bugzilla.mozilla.org/attachment.cgi?id=145942&action=edit ------- Additional Comments from Boris Zbarsky <bzbarsky@mit.edu> r+sr=bzbarsky ...

Remove annoying warnings
Hi i use a proxy to filter the ads on the internet. It also have ssl support as well, yet every time i do a secure session i get this annoying warning. can i disable it in about:config? http://img442.imageshack.us/img442/9800/firefoxerrorum0.png ZeusLord wrote: > Hi i use a proxy to filter the ads on the internet. It also have ssl > support as well, yet every time i do a secure session i get this > annoying warning. can i disable it in about:config? > > http://img442.imageshack.us/img442/9800/firefoxerrorum0.png > the problem is coming from your proxy Prox...

How to remove this warning message?
Now, I'm working with D2010. Every time I add library Filectrl in uses clause on interface, I always got a warning message like this. *[DCC Warning] <Name of the unit>.pas(8): W1005 Unit 'FileCtrl' is specific to a platform* Does any one know about how to make this warning away? Any help or direction is greatly appreciated. Thank in advance. regards, -- Eko Indriyawan www.ekoindri.com Delphi makes me that a something impossible can be realized with possible way > {quote:title=Eko Indriyawan wrote:}{quote} > Now, I'm working with D2010. &...

[PATCH] Removing Y2K warnings
--UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Removed the warnings for Y2K, which had to be compiled in. If there's anyone out there anywhere that has compiled in Y2K warnings AND has a "use warnings 'y2k'", then it will break code, but I'd be very surprised if anyone has it. xoa -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="patch.y2k" Index: pod/perlle...

Web resources about - removing warnings - embarcadero.cppbuilder.ide

Facebook Removing Outdated School Info from Some Users’ Timelines?
It appears that Facebook is in the process of reminding users that they are no longer in college , as some users are seeing notices that their ...

Removing App Profile Pages
Today, we are announcing that we will remove all App Profile Pages on February 1st, 2012. Though similar in appearance, the automatically generated ...

Friends Checker Tracks Who’s Removing You From Their Facebook Friends List
Last week, Facebook reminded users that when they ignore friend requests the requesting party is not notified, but a new Greasemonkey script ...

Removing the 140-character limit from Direct Messages
If you’ve checked your Direct Messages today, you may have noticed that something’s missing: the limitation of 140 characters. You can now chat ...

Flying Fish, Great Dish (Part 1: Introduction & Removing Filets) - YouTube
Asian carp is an invasive fish species that has rapidly taken over ecosystems in parts of the Mississippi River and Missouri River regions. These ...

Kmart joins Target in removing GTA5 video game from shelves after online campaign
Target has bowed to pressure from an online campaign calling it to pull popular R-rated video game Grant Theft Auto V from its shelves.

Removing the rorts
Professor John Freebairn, veteran analyst of public policy, believes the Commonwealth spends an unsustainable amount on 'middle-class welfare'. ...

France: officials start removing 1 million 'love locks' from Paris bridges
Paris, known worldwide as the city of romance, on Monday began removing tens of thousands of &quot;love&nbsp;locks&quot;, padlocks chained to ...

Roger Rogerson and Glen McNamara seen on CCTV removing body of Jamie Gao from storage unit
ROGER Rogerson and Glen McNamara were captured on CCTV &#8220;bending, lifting and kneeling down&#8221; as they &#173;removed the body of shooting ...

Bud Light beer ads: “Removing no from vocabulary” outrage - Business News - Business and Finance News ...
US BEER brand Bud Light has apologised and retracted a slogan which suggested having a drink would remove the word &#8216;no&#8217; from your ...

Resources last updated: 11/22/2015 8:26:26 PM