<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>150520</bug_id>
          
          <creation_ts>2015-10-23 16:59:31 -0700</creation_ts>
          <short_desc>Fix CMake compile error and add correct null check</short_desc>
          <delta_ts>2015-10-26 10:24:04 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alex Christensen">achristensen</reporter>
          <assigned_to name="Alex Christensen">achristensen</assigned_to>
          <cc>commit-queue</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1136184</commentid>
    <comment_count>0</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2015-10-23 16:59:31 -0700</bug_when>
    <thetext>Fix CMake compile error and add correct null check</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1136185</commentid>
    <comment_count>1</comment_count>
      <attachid>263961</attachid>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2015-10-23 16:59:49 -0700</bug_when>
    <thetext>Created attachment 263961
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1136219</commentid>
    <comment_count>2</comment_count>
      <attachid>263961</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-10-23 18:12:20 -0700</bug_when>
    <thetext>Comment on attachment 263961
Patch

Clearing flags on attachment: 263961

Committed r191528: &lt;http://trac.webkit.org/changeset/191528&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1136220</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-10-23 18:12:24 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1136283</commentid>
    <comment_count>4</comment_count>
      <attachid>263961</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2015-10-24 13:47:04 -0700</bug_when>
    <thetext>Comment on attachment 263961
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=263961&amp;action=review

&gt; Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:3217
&gt; -    typeof(updateBlock) updateBlockCopy = nil;
&gt; +    void (^updateBlockCopy)(void) = nil;

How is this a “CMake” compile error? Since CMake is not a C compiler, I don’t understand how using CMake causes this to be a compile error when it’s not an error without CMake. Is CMake passing different options to clang?

Also, I suggest using auto instead of what we did here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1136547</commentid>
    <comment_count>5</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2015-10-26 10:24:04 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Comment on attachment 263961 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=263961&amp;action=review
&gt; 
&gt; &gt; Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:3217
&gt; &gt; -    typeof(updateBlock) updateBlockCopy = nil;
&gt; &gt; +    void (^updateBlockCopy)(void) = nil;
&gt; 
&gt; How is this a “CMake” compile error? Since CMake is not a C compiler, I
&gt; don’t understand how using CMake causes this to be a compile error when it’s
&gt; not an error without CMake. Is CMake passing different options to clang?
Yes, CMake is currently passing different compile flags, and I&apos;m not sure why this doesn&apos;t compile, but with typeof(updateBlock) as the variable type it has unrecognized identifier syntax errors.
&gt; 
&gt; Also, I suggest using auto instead of what we did here.
Good idea!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>263961</attachid>
            <date>2015-10-23 16:59:49 -0700</date>
            <delta_ts>2015-10-23 18:12:20 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-150520-20151023165903.patch</filename>
            <type>text/plain</type>
            <size>1569</size>
            <attacher name="Alex Christensen">achristensen</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
S2l0Mi9DaGFuZ2VMb2cJKHJldmlzaW9uIDE5MTUxOCkKKysrIFNvdXJjZS9XZWJLaXQyL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDEzIEBACisyMDE1LTEwLTIzICBBbGV4IENo
cmlzdGVuc2VuICA8YWNocmlzdGVuc2VuQHdlYmtpdC5vcmc+CisKKyAgICAgICAgRml4IENNYWtl
IGNvbXBpbGUgZXJyb3IgYW5kIGFkZCBjb3JyZWN0IG51bGwgY2hlY2sKKyAgICAgICAgaHR0cHM6
Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE1MDUyMAorCisgICAgICAgIFJldmll
d2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgICogVUlQcm9jZXNzL0FQSS9Db2NvYS9X
S1dlYlZpZXcubW06CisgICAgICAgICgtW1dLV2ViVmlldyBfZG9BZnRlck5leHRQcmVzZW50YXRp
b25VcGRhdGU6XSk6CisKIDIwMTUtMTAtMjMgIEFsZXggQ2hyaXN0ZW5zZW4gIDxhY2hyaXN0ZW5z
ZW5Ad2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