[llvm] r222122 - silence gcc 4.9.1 warning in /llvm/lib/Support/Windows/Path.inc:564:39:

Robinson, Paul Paul_Robinson at playstation.sony.com
Mon Nov 17 08:44:19 PST 2014


Thanks! I'll try to keep that in mind.
--paulr

> -----Original Message-----
> From: llvm-commits-bounces at cs.uiuc.edu [mailto:llvm-commits-
> bounces at cs.uiuc.edu] On Behalf Of Yaron Keren
> Sent: Monday, November 17, 2014 1:30 AM
> To: llvm-commits at cs.uiuc.edu
> Subject: [llvm] r222122 - silence gcc 4.9.1 warning in
> /llvm/lib/Support/Windows/Path.inc:564:39:
> 
> Author: yrnkrn
> Date: Mon Nov 17 03:29:33 2014
> New Revision: 222122
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=222122&view=rev
> Log:
> silence gcc 4.9.1 warning in /llvm/lib/Support/Windows/Path.inc:564:39:
> warning: suggest parentheses around assignment used as truth value [-
> Wparentheses]
>    if (ec = widenPath(path, path_utf16))
> 
> 
> Modified:
>     llvm/trunk/lib/Support/Windows/Path.inc
> 
> Modified: llvm/trunk/lib/Support/Windows/Path.inc
> URL: http://llvm.org/viewvc/llvm-
> project/llvm/trunk/lib/Support/Windows/Path.inc?rev=222122&r1=222121&r2=22
> 2122&view=diff
> ==========================================================================
> ====
> --- llvm/trunk/lib/Support/Windows/Path.inc (original)
> +++ llvm/trunk/lib/Support/Windows/Path.inc Mon Nov 17 03:29:33 2014
> @@ -561,7 +561,7 @@ mapped_file_region::mapped_file_region(c
>    SmallVector<wchar_t, 128> path_utf16;
> 
>    // Convert path to UTF-16.
> -  if (ec = widenPath(path, path_utf16))
> +  if ((ec = widenPath(path, path_utf16)))
>      return;
> 
>    // Get file handle for creating a file mapping.
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list