1
函數定義中如何獲得「假定沒有符號溢出」警告?- 函數定義中的嚴重溢出警告
warning: assuming signed overflow does not occur when assuming that
(X + c) < X is always false [-Wstrict-overflow]
unsigned int index(const ItemRequest& request)
^
函數體可以被找到here。
這似乎很奇怪,因爲返回值只是ushort或uint。
也許有什麼*裏面*導致問題的功能?就像產生返回值一樣。但我們不能在這裏說。 –
@BoPersson不,所有返回值都是ushort或uint – Zhigalin
在問題中包含函數/函數調用的主體,因爲它是問題的一部分。 – Dutow