[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fix compilation of strerror-override with llvm/clang
From: |
Aleksander Morgado |
Subject: |
Fix compilation of strerror-override with llvm/clang |
Date: |
Mon, 29 Aug 2011 15:47:15 +0200 |
Hey hey,
I'm compiling gnupdf under llvm/clang; and found an issue with the
strerror-override module. In my setup, it defines strerror_override() to
NULL in the .h file, but then it implements the method anyway in the .c
file, and llvm/clang doesn't like that:
strerror-override.c:35:1: error: expected identifier or '('
strerror_override (int errnum)
^
./strerror-override.h:47:38: note: expanded from:
# define strerror_override(ignored) NULL
Attached a patch that fixes the issue.
Cheers,
--
Aleksander
0001-strerror-override-avoid-implementing-the-method-if-i.patch
Description: Text Data
signature.asc
Description: This is a digitally signed message part
- Fix compilation of strerror-override with llvm/clang,
Aleksander Morgado <=