GCC documentation says
-Wpointer-arith Warn about anything that depends on the "size of" a function type or of 'void'. GNU C assigns these types a size of 1, for convenience in calculations with 'void *' pointers and pointers to functions. In C++, warn also when an arithmetic operation involves' NULL'.
But I cannot think of a usecase where this can be useful instead of creating nuisance. Any examples?
The GCC was established in Riyadh, Saudi Arabia, in May 1981. The purpose of the GCC is to achieve unity among its members based on their common objectives and their similar political and cultural identities, which are rooted in Arab and Islamic cultures. Presidency of the council rotates annually.
The GCC Charter states that the basic objectives are to have coordination, integration and inter-connection between Member States in all fields, strengthening ties between their peoples, formulating similar regulations in various fields such as economy, finance, trade, customs, tourism, legislation, administration, as ...
“GCC” is a common shorthand term for the GNU Compiler Collection. This is both the most general name for the compiler, and the name used when the emphasis is on compiling C programs (as the abbreviation formerly stood for “GNU C Compiler”). When referring to C++ compilation, it is usual to call the compiler “G++”.
Iran and Iraq are not part of the GCC. Both countries have a coastline on the Arabian or Persian Gulf, both are Islamic or Muslim countries, Iraq is Arab, Iran is not (is Persian), Iraq has a land border with Kuwait and Saudi Arabia, Iran does not have a land border with any GCC country.
All of those operations are undefined according to the C standard. This warning is useful for pointing out situations where the code may work under GCC, but will fail with other compilers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With