<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br><br><div><hr id="stopSpelling">From: owen.cook@gmx.com<br>To: scribus-dev@lists.scribus.net<br>Date: Fri, 11 Dec 2015 21:01:17 +0100<br>Subject: Re: [scribus-dev] Can please someone teach me how to fix the current compiler/build warnings<br><br>
  
  I think if you read man gcc, you will find the option Wall (all warnings) that if turned off will  remove those warnings.<br>
<br>
Have you tried searching Google for "cmake turn off warnings"<br>
<br>
Still intrigued as to why you want to do this.<br>
<br>
<br>
Owen<br>
--</div><div><br></div><div>In addition, in recent versions of gcc, most warnings contain the name of the option that produced the warning, for example,</div><div><br></div><div><div>testbound.c:13:3: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]</div><div><br></div><div>testbound.c:25:1: warning: return type defaults to ‘int’ [-Wimplicit-int]</div></div><div><br></div><div>To eliminate a given warning like -Wimplicit-int, add "no-", for example, -Wno-implicit-int</div><div><br></div><div><br></div><div>If someone is particularly bothered by certain warnings, it is better to remove just those warnings than using a blanket -Wno-all</div><div><br></div><div><br></div><div>The best option, though, is changing the code not to get the warnings. Even if a warning is not really a problem, like a warning about a possibly uninitialized variable that you can verify is initialized whenever it is used, the warnings can indicate code that is brittle or that requires extra effort from other people who review the code.</div><div><br></div><div><br></div><div>For my personal development, I set a high warning level and try to design my code not to get any warnings during builds.  If you get too many warnings, you tend to ignore them, and then it is easy to miss real warnings in the stream of expected warnings.  Warnings can also confuse other people trying to build your code who don't know what is normal and what is really a problem.</div><div><br></div><div><br></div><div>Regards, William</div><div><br></div>                                     </div></body>
</html>