how to fool gcc?
Zajcev Evgeny
zevlg at yandex.ru
Tue Feb 10 02:48:42 PST 2004
Zajcev Evgeny <zevlg at yandex.ru> writes:
>
> Maybe just have copy of `s' inside while statement? Something like:
>
>> #define RETURNS(s) do { \
>> if ((s) == NULL) \
>> openpam_log(PAM_LOG_DEBUG, "returning NULL"); \
>> else \
>> openpam_log(PAM_LOG_DEBUG, "returning '%s'", (s)); \
>> return (s); \
>> } while (0)
err, I mean
#define RETURNS(s) do { \
char *scpy = s; \
if ((s) == NULL) \
openpam_log(PAM_LOG_DEBUG, "returning NULL"); \
else \
openpam_log(PAM_LOG_DEBUG, "returning '%s'", (scpy)); \
return (s); \
} while (0)
--
lg
More information about the freebsd-hackers
mailing list