[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.



Attachment: 0001-strerror-override-avoid-implementing-the-method-if-i.patch
Description: Text Data

Attachment: signature.asc
Description: This is a digitally signed message part

reply via email to

[Prev in Thread] Current Thread [Next in Thread]