[R-pkg-team] Bug#987755: r-cran-rpf: FTBFS on mips due to a variable called 'mips'

Yangfl mmyangfl at gmail.com
Thu Apr 29 04:10:46 BST 2021


Source: r-cran-rpf
Tags: patch
Severity: minor

Hi,

r-cran-rpf FTBFS on mips, since a variable is called 'mips' and on
mips 'mips' is expanded to '1'. Lines in question:

ba81quad.h:743:31: error: expected ‘,’ or ‘...’ before numeric constant
  743 |  void setMinItemsPerScore(int mips);
      |                               ^~~~
ba81quad.cpp: In member function ‘void ifaGroup::import(const List&)’:
ba81quad.cpp:214:6: error: expected unqualified-id before numeric constant
  214 |  int mips = 1;
      |      ^~~~
ba81quad.cpp:274:4: error: lvalue required as left operand of assignment
  274 |    mips = as<int>(slotValue);
      |    ^~~~
ba81quad.cpp: At global scope:
ba81quad.cpp:426:40: error: expected ‘,’ or ‘...’ before numeric constant
  426 | void ifaGroup::setMinItemsPerScore(int mips)
      |                                        ^~~~

Please consider applying this patch, adding a suffix to the variable 'mips'.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: r-cran-rpf-mips.patch
Type: text/x-patch
Size: 1790 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/r-pkg-team/attachments/20210429/3dabc9a8/attachment.bin>


More information about the R-pkg-team mailing list