Project

General

Profile

Bug #697

config/ConfigureChecks.cmake: STRERROR_R_CHAR_P revisited

Added by Nikolai Saoukh over 11 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
build
Target version:
Start date:
20 Apr 2010
Due date:
% Done:

100%

Estimated time:

Description

Current test for return type of strerror_r is weak. See the script below

Script started on Tue Apr 20 15:51:20 2010
$ cat foo.c
#include <string.h>
int main() {
char * c;
c = strerror_r(0,c,0);
return 0;
}
$ gcc -c foo.c
foo.c: In function 'main':
foo.c:4: warning: assignment makes pointer from integer without a cast
$ gcc --version
gcc (GCC) 4.2.1 20070719 [FreeBSD]

Script done on Tue Apr 20 15:51:31 2010


Related issues

Related to Exiv2 - Feature #536: Switch to a unified build system based on cmakeClosed

Actions
Related to Exiv2 - Patch #688: src/futils.cpp: incorrect check for linux version of strerror_rClosed04 Mar 2010

Actions

Associated revisions

Revision 3372 (diff)
Added by Robin Mills about 7 years ago

#697. config/ConfigureChecks.cmake: STRERROR_R_CHAR_P revisited

History

#1

Updated by Andreas Huggel over 9 years ago

  • Assignee set to Robin Mills
#2

Updated by Robin Mills over 9 years ago

  • Status changed from New to Assigned
#3

Updated by Robin Mills over 8 years ago

  • Category set to build
  • Target version set to 0.25

Deferred for 0.25.

#4

Updated by Robin Mills about 7 years ago

  • Status changed from Assigned to Resolved

Fix submitted: r3372

I'm not confident about the fix here, however the issue has been open for 4 years without causing distress. strerror_r is tricky and only used in futils.cpp

#5

Updated by Robin Mills over 6 years ago

  • % Done changed from 0 to 100
#6

Updated by Andreas Huggel over 6 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF