1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/lib/replace/test
Lukas Slebodnik b7ae41e6ca lib replace: Fix detection of features
If configure script is executed with stricter cflags
"-Werrorr=implicit-function-declaration -Werror=implicit-int"
then detection of few features will fail.

 Checking for C99 vsnprintf : not found
 Checking for HAVE_SHARED_MMAP : not found
 Checking for HAVE_MREMAP : not found

lib/replace/test/shared_mmap.c:18:1:
    error: return type defaults to ‘int’ [-Werror=implicit-int]
 main()
 ^~~~
lib/replace/test/shared_mmap.c: In function ‘main’:
lib/replace/test/shared_mmap.c:25:16:
    error: implicit declaration of function ‘exit’
    [-Werror=implicit-function-declaration]
  if (fd == -1) exit(1);
                ^~~~
lib/replace/test/shared_mmap.c:25:16:
    warning: incompatible implicit declaration of built-in function ‘exit’
lib/replace/test/shared_mmap.c:25:16:
    note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’

Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2017-01-02 14:12:27 +01:00
..
getifaddrs.c Bug 8997: change libreplace GPL source to LGPL 2013-06-03 18:06:18 +02:00
incoherent_mmap.c lib/replace: test for incoherent mmap. 2012-03-22 01:57:37 +01:00
main.c lib/replace: Try to fix build on HP-UX for os2_delete test 2012-09-23 14:31:01 +10:00
os2_delete.c libreplace: Fix CID 1034926 Destination buffer too small 2015-03-10 21:48:04 +01:00
shared_mmap.c lib replace: Fix detection of features 2017-01-02 14:12:27 +01:00
shared_mremap.c lib replace: Fix detection of features 2017-01-02 14:12:27 +01:00
snprintf.c lib replace: Fix detection of features 2017-01-02 14:12:27 +01:00
strptime.c lib/replace/test: Add missing include for prototype. 2011-03-19 16:45:56 +01:00
testsuite.c lib: Add a little closefrom() test 2016-06-13 14:11:11 +02:00