mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Add -Wformat-security and change one fprintf() to fputs().
This commit is contained in:
parent
42c798229f
commit
7c03887b7a
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.25 -
|
Version 2.02.25 -
|
||||||
=================================
|
=================================
|
||||||
|
Add -Wformat-security and change one fprintf() to fputs().
|
||||||
Move regex functions into libdevmapper.
|
Move regex functions into libdevmapper.
|
||||||
Change some #include lines to search only standard system directories.
|
Change some #include lines to search only standard system directories.
|
||||||
Add devices/preferred_names config regex list for displayed device names.
|
Add devices/preferred_names config regex list for displayed device names.
|
||||||
|
@ -160,7 +160,7 @@ static int _out_with_comment_file(struct formatter *f, const char *comment,
|
|||||||
for (i = 0; i < f->indent; i++)
|
for (i = 0; i < f->indent; i++)
|
||||||
white_space[i] = '\t';
|
white_space[i] = '\t';
|
||||||
white_space[i] = '\0';
|
white_space[i] = '\0';
|
||||||
fprintf(f->data.fp, white_space);
|
fputs(white_space, f->data.fp);
|
||||||
i = vfprintf(f->data.fp, fmt, ap);
|
i = vfprintf(f->data.fp, fmt, ap);
|
||||||
|
|
||||||
if (comment) {
|
if (comment) {
|
||||||
@ -176,7 +176,7 @@ static int _out_with_comment_file(struct formatter *f, const char *comment,
|
|||||||
|
|
||||||
while (++i < COMMENT_TAB);
|
while (++i < COMMENT_TAB);
|
||||||
|
|
||||||
fprintf(f->data.fp, comment);
|
fputs(comment, f->data.fp);
|
||||||
}
|
}
|
||||||
fputc('\n', f->data.fp);
|
fputc('\n', f->data.fp);
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ endif
|
|||||||
|
|
||||||
.SUFFIXES: .c .d .o .so .a .po .pot .mo .dylib
|
.SUFFIXES: .c .d .o .so .a .po .pot .mo .dylib
|
||||||
|
|
||||||
CFLAGS += -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn
|
CFLAGS += -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security
|
||||||
|
|
||||||
#CFLAGS += -W -Wconversion -Wpointer-arith -Wredundant-decls -Wbad-function-cast -Wcast-qual
|
#CFLAGS += -W -Wconversion -Wpointer-arith -Wredundant-decls -Wbad-function-cast -Wcast-qual
|
||||||
#CFLAGS += -pedantic -std=gnu99
|
#CFLAGS += -pedantic -std=gnu99
|
||||||
|
Loading…
Reference in New Issue
Block a user