bug-gnu-pw-mgr
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnu-pw-mgr] Warnings building 2.0


From: Harlan Stenn
Subject: [Bug-gnu-pw-mgr] Warnings building 2.0
Date: Sun, 3 Dec 2017 23:21:05 -0800
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.0

libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../../lib -I.. -g -O2
-Wcast-align -Wmissing-prototypes -Wpointer-arith -Wshadow
-Wstrict-prototypes -Wwrite-strings -Wno-format-contains-nul
-fno-strict-aliasing -Wstrict-aliasing=2 -MT random_r.lo -MD -MP -MF
.deps/random_r.Tpo -c ../../lib/random_r.c  -fPIC -DPIC -o .libs/random_r.o
warning: unknown warning option '-Wno-format-contains-nul'
      [-Wunknown-warning-option]
../../lib/random_r.c:289:13: warning: cast from 'char *' to 'int32_t *'
      (aka 'int *') increases required alignment from 1 to 4 [-Wcast-align]
  state = &((int32_t *) arg_state)[1];  /* First location.  */
            ^~~~~~~~~~~~~~~~~~~~~
../../lib/random_r.c:321:28: warning: cast from 'char *' to 'int32_t *'
      (aka 'int *') increases required alignment from 1 to 4 [-Wcast-align]
  int32_t *new_state = 1 + (int32_t *) arg_state;
                           ^~~~~~~~~~~~~~~~~~~~~
3 warnings generated.

...

Making all in src
cc -DHAVE_CONFIG_H -I. -I../../src -I..  -I../../lib -I../../src
-I../lib -I../../libopts -I../libopts   -g -O2 -Wcast-align
-Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes
-Wwrite-strings -Wno-format-contains-nul -fno-strict-aliasing
-Wstrict-aliasing=2 -MT gnu_pw_mgr-gnu-pw-mgr.o -MD -MP -MF
.deps/gnu_pw_mgr-gnu-pw-mgr.Tpo -c -o gnu_pw_mgr-gnu-pw-mgr.o `test -f
'gnu-pw-mgr.c' || echo '../../src/'`gnu-pw-mgr.c
warning: unknown warning option '-Wno-format-contains-nul'
      [-Wunknown-warning-option]
In file included from ../../src/gnu-pw-mgr.c:22:
In file included from ../../src/opts.h:293:
In file included from ../../src/gpw-str.c:39:
../../src/gpw-str.h:59:9: warning: 'cclass_conflict' macro redefined
#define cclass_conflict        (gpw_str_strtable+945)
        ^
../../src/gpw-str.h:58:9: note: previous definition is here
#define cclass_conflict        (gpw_str_strtable+117)
        ^
../../src/gpw-str.h:61:9: warning: 'cclass_conflict_LEN' macro redefined
#define cclass_conflict_LEN    65
        ^
../../src/gpw-str.h:60:9: note: previous definition is here
#define cclass_conflict_LEN    34
        ^
In file included from ../../src/gnu-pw-mgr.c:23:
In file included from ../../src/fwd.h:237:
../../src/seed.c:178:43: warning: sizeof on pointer operation will
return size
      of 'const char *' instead of 'const char [1806]'
[-Wsizeof-array-decay]
        char * tag = scribble_get(sizeof (tag_fmt) + strlen(OPT_ARG(TAG)));
                                          ^~~~~~~
../../src/gpw-str.h:170:49: note: expanded from macro 'tag_fmt'
#define tag_fmt                (gpw_str_strtable+1719)
                                ~~~~~~~~~~~~~~~~^
../../src/gnu-pw-mgr.c:53:27: warning: cast from 'unsigned char *' to
      'uintptr_t *' (aka 'unsigned long *') increases required alignment
from 1
      to 8 [-Wcast-align]
        fix_digit_pw(buf, (uintptr_t *)data);
                          ^~~~~~~~~~~~~~~~~
5 warnings generated.

...

cc -DHAVE_CONFIG_H -I. -I../../src -I..  -I../../lib -I../../src
-I../lib -I../../libopts -I../libopts   -g -O2 -Wcast-align
-Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes
-Wwrite-strings -Wno-format-contains-nul -fno-strict-aliasing
-Wstrict-aliasing=2 -MT sort_pw_cfg-sort-pw-cfg.o -MD -MP -MF
.deps/sort_pw_cfg-sort-pw-cfg.Tpo -c -o sort_pw_cfg-sort-pw-cfg.o `test
-f 'sort-pw-cfg.c' || echo '../../src/'`sort-pw-cfg.c
warning: unknown warning option '-Wno-format-contains-nul'
      [-Wunknown-warning-option]
In file included from ../../src/sort-pw-cfg.c:16:
In file included from ../../src/sort-opts.h:146:
../../src/gpw-str.h:59:9: warning: 'cclass_conflict' macro redefined
#define cclass_conflict        (gpw_str_strtable+945)
        ^
../../src/gpw-str.h:58:9: note: previous definition is here
#define cclass_conflict        (gpw_str_strtable+117)
        ^
../../src/gpw-str.h:61:9: warning: 'cclass_conflict_LEN' macro redefined
#define cclass_conflict_LEN    65
        ^
../../src/gpw-str.h:60:9: note: previous definition is here
#define cclass_conflict_LEN    34
        ^
3 warnings generated.
-- 
Harlan Stenn <address@hidden>
http://networktimefoundation.org - be a member!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]