On 29.11.2013 10:34, Pavel Janík wrote:
On Nov 27, 2013, at 12:19 PM, Pavel Janík wrote:

where is this defined?

Occurences:

sw/source/core/crsr/crsrsh.cxx:#ifdef ACCESSIBLE_LAYOUT
sw/source/core/crsr/crsrsh.cxx:#ifdef ACCESSIBLE_LAYOUT
sw/source/core/crsr/crsrsh.cxx:#ifdef ACCESSIBLE_LAYOUT
sw/source/ui/docvw/edtwin.cxx:#ifdef ACCESSIBLE_LAYOUT
sw/source/ui/uiview/pview.cxx:#ifdef ACCESSIBLE_LAYOUT
It is not defined in the source and thus is a source of compiler warnings about 
unused function arguments at the places mentined above.

I am confused. The lines above test whether ACCESSIBLE_LAYOUT has been defined. Why would that lead to a warning if the definition does not exist. This pattern is used in many places in our source code. One usage, that might apply in this case, is to temporarily activate a debug feature by passing additional arguments to the compiler via environment variables. In my opinion that is a valid use of otherwise never defined variables.

-Andre

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to