ALT Linux Bugzilla
– Attachment 270 Details for
Bug 2913
AC_C_CONST check doesn't work with -Wall -Werror flags enabled
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
патч для AC_C_CONST
autoconf-2.57-alt-c_const.patch (text/plain), 1.11 KB, created by
Alexey Voinov
on 2003-08-31 23:47:56 MSD
(
hide
)
Description:
патч для AC_C_CONST
Filename:
MIME Type:
Creator:
Alexey Voinov
Created:
2003-08-31 23:47:56 MSD
Size:
1.11 KB
patch
obsolete
>--- autoconf-2.57/lib/autoconf/c.m4.vns 2002-12-03 09:59:53 +0300 >+++ autoconf-2.57/lib/autoconf/c.m4 2003-08-31 23:33:16 +0400 >@@ -1033,10 +1033,11 @@ > p = (char**) ccp; > ccp = (char const *const *) p; > { /* SCO 3.2v4 cc rejects this. */ >- char *t; >+ char *t = (char *)0; /* removes 'used unitialized' warning */ > char const *s = 0 ? (char *) 0 : (char const *) 0; > > *t++ = 0; >+ (void)s; /* this removes 'unused var' warning */ > } > { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ > int x[] = {25, 17}; >@@ -1051,11 +1052,14 @@ > { /* AIX XL C 1.02.0.0 rejects this saying > "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ > struct s { int j; const int *ap[3]; }; >- struct s *b; b->j = 5; >+ struct s *b = (struct s *)0; b->j = 5; > } > { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ > const int foo = 10; >+ (void)foo; /* this removes 'unused var' warning */ > } >+ (void)x; /* this removes 'unused var' warning */ >+ (void)zero; /* this removes 'unused var' warning */ > #endif > ]])], > [ac_cv_c_const=yes],
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2913
: 270 |
271
|
272