You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm looking at updating HarfBuzz in Firefox and our clang static analysis checker is hitting the below errors:
INFO - /builds/worker/workspace/build/src/gfx/harfbuzz/src/hb-iter-private.hh:75:3: error: bad implicit conversion operator for 'Iter<const int *>'
INFO - inline operator bool (void) const { return bool (length); }
INFO - ^
INFO - /builds/worker/workspace/build/src/gfx/harfbuzz/src/hb-iter-private.hh:75:3: note: consider adding the explicit keyword to 'operator bool'
INFO - /builds/worker/workspace/build/src/gfx/harfbuzz/src/hb-iter-private.hh:75:3: error: bad implicit conversion operator for 'Iter<int *>'
INFO - inline operator bool (void) const { return bool (length); }
INFO - ^
INFO - /builds/worker/workspace/build/src/gfx/harfbuzz/src/hb-iter-private.hh:75:3: note: consider adding the explicit keyword to 'operator bool'
INFO - /builds/worker/workspace/build/src/gfx/harfbuzz/src/hb-iter-private.hh:75:3: error: bad implicit conversion operator for 'Iter<T *>'
INFO - inline operator bool (void) const { return bool (length); }
INFO - /builds/worker/workspace/build/src/gfx/harfbuzz/src/hb-iter-private.hh:75:3: note: consider adding the explicit keyword to 'operator bool'
I can confirm that adding an explicit to that line resolves the errors.