usnistgov / trec_eval

Evaluation software used in the Text Retrieval Conference
232 stars 49 forks source link

Update sysfunc.h #17

Closed amallia closed 4 years ago

amallia commented 5 years ago

These two defines are never used and they generate a warning:

./sysfunc.h:36:9: warning: 'bcopy' macro redefined [-Wmacro-redefined]
#define bcopy(source,dest,len)   memcpy(dest,source,len)
        ^
/usr/include/secure/_strings.h:45:9: note: previous definition is here
#define bcopy(src, dest, ...) \
        ^
1 warning generated.
isoboroff commented 5 years ago

What platform(s) are you building on?

amallia commented 5 years ago

What platform(s) are you building on?

MacOS 10.14.6 with Apple LLVM version 10.0.1 (clang-1001.0.46.4)

isoboroff commented 4 years ago

I took a bit of a more careful approach and fenced the #defines with #ifndefs. See PR #19