Bug 27052 - Undef ASSERT, to avoid excessive warnings
Summary: Undef ASSERT, to avoid excessive warnings
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: S60 Emulator S60 3rd edition
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-07 18:45 PDT by Norbert Leser
Modified: 2009-07-15 07:04 PDT (History)
4 users (show)

See Also:


Attachments
Code patch for Assertion.h (872 bytes, patch)
2009-07-07 18:47 PDT, Norbert Leser
no flags Details | Formatted Diff | Diff
Second try. (1.08 KB, patch)
2009-07-15 06:05 PDT, Laszlo Gombos
hausmann: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Norbert Leser 2009-07-07 18:45:42 PDT
ASSERT will be defined in both conditional branches of the code following the proposed patch.
The explicit undef avoids potential warning messages during compilation.
Comment 1 Norbert Leser 2009-07-07 18:47:22 PDT
Created attachment 32412 [details]
Code patch for Assertion.h

2nd attempt to add attachment - failed first time
Comment 2 Eric Seidel (no email) 2009-07-10 23:13:37 PDT
I don't understand the reason for this patch?
Comment 3 Laszlo Gombos 2009-07-15 06:05:58 PDT
Created attachment 32780 [details]
Second try.

Changed the patch so that it only impacts the SYMBIAN platform and reflect the intention of this change better. In addition fixed the ChangeLog (filling in for Norbert.)

The reason for this patch is to kill the following compiler warning:

"\WebKit\JavaScriptCore\wtf\Assertions.h", line 146: Warning:  #47-D: incompatible redefinition of macro "ASSERT" (declared at line 3029 of "\epoc32\include\e32def.h")
  #define ASSERT(assertion) ((void)0)
Comment 4 Laszlo Gombos 2009-07-15 06:09:48 PDT
(In reply to comment #3)
> Created an attachment (id=32780) [details]
> Second try.
> 
> Changed the patch so that it only impacts the SYMBIAN platform and reflect the
> intention of this change better. In addition fixed the ChangeLog (filling in
> for Norbert.)
> 
> The reason for this patch is to kill the following compiler warning:
> 
> "\WebKit\JavaScriptCore\wtf\Assertions.h", line 146: Warning:  #47-D:
> incompatible redefinition of macro "ASSERT" (declared at line 3029 of
> "\epoc32\include\e32def.h")
>   #define ASSERT(assertion) ((void)0)

The second patch should obsolete the first patch from Norbert - I do not seems to have rights to make the first patch obsolete.
Comment 5 Holger Freyther 2009-07-15 06:56:25 PDT
Comment on attachment 32412 [details]
Code patch for Assertion.h

Obsolete according to lazlos.
Comment 6 Simon Hausmann 2009-07-15 07:03:50 PDT
Comment on attachment 32780 [details]
Second try.

r=me. I'll mention Symbian in the changelog when landing, to make it a bit clearer.
Comment 7 Simon Hausmann 2009-07-15 07:04:22 PDT
Landed in r45907