Skip to main content
Filter by
Sorted by
Tagged with
3 votes
5 answers
627 views

I'm talking from a language point of view in C or C++, where the compiler sees: return condition ? a : b; vs: if (condition) return a; else return b; I've tried in my code, and both of them ...
Zebrafish's user avatar
  • 16.3k
2 votes
2 answers
143 views

Using CMAKE_BUILD_TYPE="Debug" my MSVC 2022 [17.4.33403.182] produced one idiv call for the quotient and an identical idiv call for the remainder. The code was simply [see here for the ...
JohannesWilde's user avatar
0 votes
1 answer
111 views

I have to use dl library for calling libapt-pkg functions. The method I need to call is pkgCacheFile::GetPkgCache() that is declared as inline. The problem is that dlsym returns error while trying to ...
nst1911's user avatar
  • 53
3 votes
1 answer
75 views

With avr-gcc 14, the compiler gives this warning: avrenv.c: In function ‘main’ avrenv.c:12:13: warning: ‘strncpy’ output may be truncated copying 255 bytes from a string of length 509 [-Wstringop-...
Torsten Römer's user avatar