38 Disable GCC "may be used uninitialized" on a particular variable 6 How to suppress warnings about unused variables in C++? 132 How do you disable the unused variable warnings coming out of gcc in 3rd party code I do not wish to edit? 0 gcc warnings: defined but not used vs unuse...
and we can see this warning goes away in the head revision of gcc. This gcc bug report: -Wunused-variable ignores unused const initialised variables is also relevant. Although it is against C the C++ case is also discussed. Share Improve this answer Follow edited Oct 3, 2015 at...
@ include/my_compiler.h Define a dummy MY_GNUC_PREREQ when not compiling with GCC. @ libmysql/libmysql.c Bug#58057: 5.1 libmysql/libmysql.c unused variable/compile failure Variable might not be used in some cases. So, tag it as unused. @ mysys/mf_keycache.c Bug#57992: Compiler flag...
declaration you mentioned will turn it redudnant--as usually the practice is to provide description for the variable like: @param string $address Email address of the recipient -- <?php echo 'Just another PHP saint'; ?> Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com...
how to programatically get IP address of local computer how to put int values to char array?? How to put the text from a string variable, into a messagebox, in VS Express 2012 C++? how to read a file line by line in Win32 How to read bytes or hex from a file How to read COM ...
$ gcc -Wall maj.c -c -o maj.o maj.c: In function ‘maj_guard’: maj.c:13:12: warning: unused variable ‘local_2’ [-Wunused-variable] 13 | uint32_t local_2 = ((uint32_t)(2)); | ^~~~ Note that this issue isn't the fault of the C99 backend, but rather, it's a...
I'm unsure if it's still supported in the new LLVM compiler, but GCC has an "unused" attribute you can use to suppress that warning: BOOL saved __attribute__((unused)) = [moc save:&error]; Alternatively (in case LLVM doesn't support the above), you could split the variable ...
4 unused value warning: C vs C++ using gcc 53 When should I use [[maybe_unused]]? 13 [[maybe_unused]] applied to static data members 15 [[maybe_unused]] on member variable, GCC warns (incorrectly?) that attribute is ignored 10 [[maybe_unused]] attribute not working 0 [...
void my_function() { INT32 i; /* Variable for iteration */ /* If system is little-endian, store bytes in array as reverse order */ #ifdef LITTLE { // i m using i for operating one loop } #endif /* If the system is big-endian, store bytes in array as forward order */ #ifd...
Have a look at your optimization settings for GCC, they may influence the behavior. Are unused undefined methods always allowed? A member function must be defined if and only if it is odr-used. [basic.def.odr]/3: Every program shall contain exactly one definition of every non-inline functi...