Bug#1009361: Unchecked use of __BIG_ENDIAN__ leads to an error

Pierre Gruet pgt at debian.org
Tue Apr 12 12:08:36 BST 2022


Package: libtbb-dev
Version: 2022.3-1
Severity: normal

Dear Maintainer,

libtbb-dev installs the file /usr/include/tbb/machine/gcc_generic.h, of which
line 39 reads:
#if __BIG_ENDIAN__ || (defined(__BYTE_ORDER__) && __BYTE_ORDER__==__ORDER_BIG_ENDIAN__)

I think it should instead start with something like
#if defined(__BIG_ENDIAN__)...
because, else, we get errors like the one I just met in a program including the
above-named header file:

/usr/include/tbb/machine/gcc_generic.h:39:20: error: operator '||' has no left operand
   39 | #if __BIG_ENDIAN__ || (defined(__BYTE_ORDER__) && __BYTE_ORDER__==__ORDER_BIG_ENDIAN__)
      |                    ^~

Thanks a lot for considering,

Best regards,

-- 
Pierre



More information about the debian-science-maintainers mailing list