I am working on 32-bit Fedora 14 system. I'm compiling my source code using gcc.
Does anybody know how to disable warnings while compiling c code?
EDIT: Yes i know. Best thing is to fix those Warnings to avoid any undefined/unknown behavior. But currently here, i have written huge code first time and there are lots of error & warning in first compilation. Here i just want to concentrate on errors first and then i will see warnings.
mbstate_t state = { 0 };which encourages people to usememset(&state, 0, sizeof state);instead. The latter probably works, but it's not strictly portable.mbstate_tobject, and the definition of that type is opaque. If it has any floating point or pointer members, the all-zero-bits representation need not yield the zero value that's required.(mbstate_t){0}is a zero-valuedmbstate_t. The result ofmemsetis a "zero-representation". Whether it's also zero-valued is implementation-specific. An implementation may also allowsmbstate_tobjects that are not zero-valued to represent the initial conversion state, but that too would be implementation-specific and thus not portable, which was my whole point.