How to do portable 64 bit arithmetic, without compiler warnings

后端 未结 7 1017
情歌与酒
情歌与酒 2021-02-12 22:38

I occasionally use 64 bit arithmetic in an open source C++ library of mine. I discovered that long long serves my purpose quite nicely. Even some 10 year old solari

7条回答
  •  不知归路
    2021-02-12 23:19

    If you're unable to control the switches passed to gcc, you might be able to turn off the warning with a #pragma.

    http://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html

提交回复
热议问题