[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-serviceability-dev
Subject:    [PING] Re: RFR (XS): 8142483: Unified logging log instances cause warnings on windows when only stat
From:       Marcus Larsson <marcus.larsson () oracle ! com>
Date:       2015-11-20 12:29:22
Message-ID: 564F1222.6000007 () oracle ! com
[Download RAW message or body]

Need another review for this!

Thanks,
Marcus

On 2015-11-13 10:20, Marcus Larsson wrote:
> Hi,
>
> Please review the following small patch to avoid 'unused variable' 
> warnings on windows when only static functions are used on a log 
> instance. Using log instances like this saves us from specifying the 
> log tags for every function call, so it is something we should not 
> warn about.
>
> The patch adds an empty constructor, which means that at least one 
> non-static function is called for every log instance, and the warning 
> is avoided.
>
> Webrev:
> http://cr.openjdk.java.net/~mlarsson/8142483/webrev.00/
>
> Issue:
> https://bugs.openjdk.java.net/browse/JDK-8142483
>
> Thanks,
> Marcus


[Attachment #3 (text/html)]

<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Need another review for this!<br>
    <br>
    Thanks,<br>
    Marcus<br>
    <br>
    <div class="moz-cite-prefix">On 2015-11-13 10:20, Marcus Larsson
      wrote:<br>
    </div>
    <blockquote cite="mid:5645AB4F.40907@oracle.com" type="cite">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      Hi,<br>
      <br>
      Please review the following small patch to avoid 'unused variable'
      warnings on windows when only static functions are used on a log
      instance. Using log instances like this saves us from specifying
      the log tags for every function call, so it is something we should
      not warn about.<br>
      <br>
      The patch adds an empty constructor, which means that at least one
      non-static function is called for every log instance, and the
      warning is avoided.<br>
      <br>
      Webrev:<br>
      <a moz-do-not-send="true" class="moz-txt-link-freetext"
        href="http://cr.openjdk.java.net/%7Emlarsson/8142483/webrev.00/">http://cr.openjdk.java.net/~mlarsson/8142483/webrev.00/</a><br>
  <br>
      Issue:<br>
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <a moz-do-not-send="true" class="moz-txt-link-freetext"
        href="https://bugs.openjdk.java.net/browse/JDK-8142483">https://bugs.openjdk.java.net/browse/JDK-8142483</a><br>
  <br>
      Thanks,<br>
      Marcus<br>
    </blockquote>
    <br>
  </body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic