View | Details | Raw Unified | Return to bug 2913
Collapse All | Expand All

(-)autoconf-2.57/lib/autoconf/c.m4.vns (-2 / +6 lines)
Lines 1033-1042 Link Here
1033
  p = (char**) ccp;
1033
  p = (char**) ccp;
1034
  ccp = (char const *const *) p;
1034
  ccp = (char const *const *) p;
1035
  { /* SCO 3.2v4 cc rejects this.  */
1035
  { /* SCO 3.2v4 cc rejects this.  */
1036
    char *t;
1036
    char *t = (char *)0; /* removes 'used unitialized' warning */
1037
    char const *s = 0 ? (char *) 0 : (char const *) 0;
1037
    char const *s = 0 ? (char *) 0 : (char const *) 0;
1038
1038
1039
    *t++ = 0;
1039
    *t++ = 0;
1040
    (void)s; /* this removes 'unused var' warning */
1040
  }
1041
  }
1041
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1042
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1042
    int x[] = {25, 17};
1043
    int x[] = {25, 17};
Lines 1051-1061 Link Here
1051
  { /* AIX XL C 1.02.0.0 rejects this saying
1052
  { /* AIX XL C 1.02.0.0 rejects this saying
1052
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1053
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1053
    struct s { int j; const int *ap[3]; };
1054
    struct s { int j; const int *ap[3]; };
1054
    struct s *b; b->j = 5;
1055
    struct s *b = (struct s *)0; b->j = 5;
1055
  }
1056
  }
1056
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1057
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1057
    const int foo = 10;
1058
    const int foo = 10;
1059
    (void)foo; /* this removes 'unused var' warning */
1058
  }
1060
  }
1061
  (void)x; /* this removes 'unused var' warning */
1062
  (void)zero; /* this removes 'unused var' warning */
1059
#endif
1063
#endif
1060
]])],
1064
]])],
1061
                   [ac_cv_c_const=yes],
1065
                   [ac_cv_c_const=yes],

Return to bug 2913