[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fix bindir and dlopen tests for C++ compilers (CC=g++).
From: |
Bob Friesenhahn |
Subject: |
Re: Fix bindir and dlopen tests for C++ compilers (CC=g++). |
Date: |
Mon, 30 Nov 2009 09:44:49 -0600 (CST) |
User-agent: |
Alpine 2.01 (GSO 1266 2009-07-14) |
On Mon, 30 Nov 2009, Ralf Wildenhues wrote:
I don't see a warning to that end, my system declares strrchr as
#include <string.h>
char *strrchr(const char *s, int c);
Solaris 10 manual pages says that this prototype is used for C:
char *strrchr(const char *s, int c);
and this one is used for ISO C++:
const char *strrchr(const char *s, int c);
Since the C++ one is more restrictive (and is also more correct), it
may be useful to try to correct the code rather than just add a cast.
Bob
--
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
- Fix bindir and dlopen tests for C++ compilers (CC=g++)., Ralf Wildenhues, 2009/11/29
- Re: Fix bindir and dlopen tests for C++ compilers (CC=g++)., Peter O'Gorman, 2009/11/29
- Re: Fix bindir and dlopen tests for C++ compilers (CC=g++)., Ralf Wildenhues, 2009/11/30
- Re: Fix bindir and dlopen tests for C++ compilers (CC=g++)., Peter O'Gorman, 2009/11/30
- Re: Fix bindir and dlopen tests for C++ compilers (CC=g++).,
Bob Friesenhahn <=
- Re: Fix bindir and dlopen tests for C++ compilers (CC=g++)., Bob Friesenhahn, 2009/11/30
- Re: Fix bindir and dlopen tests for C++ compilers (CC=g++)., Peter Rosin, 2009/11/30
- Re: Fix bindir and dlopen tests for C++ compilers (CC=g++)., Ralf Wildenhues, 2009/11/30
- Re: Fix bindir and dlopen tests for C++ compilers (CC=g++)., Peter Rosin, 2009/11/30