lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Roberto Ierusalimschy wrote:
This *is* a dirty trick. My message was about using a dirty trick just
to remove a warning about a normal usage.

(Any compiler should provide a standard (and documented) way to silence
each of its warnings.)

Should that prove impossible, a portable (if rather suboptimal) way could be to just add a comment such as:

 /* please ignore warnings about strcpy usage on the following line */

As a last resort, of course. I too hate warnings in my code.

  Enrico