Summary: | Undefined warnings | ||
---|---|---|---|
Product: | FriBidi | Reporter: | ubitux <freedesktop> |
Component: | general | Assignee: | Behnam Esfahbod [:zwnj] <bugs+behnam> |
Status: | NEW --- | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | freedesktop, gajjanag |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
ubitux
2014-08-13 08:38:51 UTC
(In reply to comment #0) > Would it be possible to use the form "#if defined(FRIBIDI_WHATEVER) && > FRIBIDI_WHATEVER" Unfortunately that doesn't work: $ cpp #if define(XXX) && XXX sdf #endif # 1 "<stdin>" # 1 "<built-in>" # 1 "<command-line>" # 1 "<stdin>" <stdin>:1:11: error: missing binary operator before token "(" > if these warnings are indeed false positive? They definitely are. I will replace them with normal ifdef... I don't think anyone's setting them to 0 anyway. Err, my bad. Ignore previous comment! (In reply to Behdad Esfahbod from comment #1) > (In reply to comment #0) > > > Would it be possible to use the form "#if defined(FRIBIDI_WHATEVER) && > > FRIBIDI_WHATEVER" > > Unfortunately that doesn't work: > > $ cpp > #if define(XXX) && XXX > sdf > #endif > # 1 "<stdin>" > # 1 "<built-in>" > # 1 "<command-line>" > # 1 "<stdin>" > <stdin>:1:11: error: missing binary operator before token "(" That is because the GCC preprocessor does not do short-circuiting apparently, see e.g comments on: https://bugs.webkit.org/show_bug.cgi?id=133785. Can you please use something like: #if defined(XXX) #if XXX to silence these warnings? > > > > if these warnings are indeed false positive? > > They definitely are. I will replace them with normal ifdef... I don't > think anyone's setting them to 0 anyway. No, the error was because he used "define()" instead of "defined()". The usage example in the first post works. Any idea as to why we still get these warnings then? Because it wasn't changed? |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.