Skip to content

Commit a5843ef

Browse files
committed
Update PVS-Studio arguments to match current version.
1 parent 51684db commit a5843ef

File tree

16 files changed

+380
-378
lines changed

16 files changed

+380
-378
lines changed

lib/eventlog/Makefile.in

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Makefile: $(srcdir)/Makefile.in
121121
$(CPP) $(CPPFLAGS) $< > $@
122122

123123
.i.plog:
124-
ifile=$<; rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $${ifile%i}c --i-file $< --output-file $@
124+
ifile=$<; rm -f $@; pvs-studio --cfg $(PVS_CFG) --source-file $${ifile%i}c --i-file $< --output-file $@
125125

126126
libsudo_eventlog.la: $(LIBEVENTLOG_OBJS) $(LT_LIBS)
127127
$(LIBTOOL) $(LTFLAGS) --mode=link $(CC) -o $@ $(LIBEVENTLOG_OBJS) $(LT_LIBS)
@@ -226,7 +226,7 @@ check_parse_json.i: $(srcdir)/regress/parse_json/check_parse_json.c \
226226
$(srcdir)/parse_json.h $(top_builddir)/config.h
227227
$(CPP) $(CPPFLAGS) $(srcdir)/regress/parse_json/check_parse_json.c > $@
228228
check_parse_json.plog: check_parse_json.i
229-
rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $(srcdir)/regress/parse_json/check_parse_json.c --i-file check_parse_json.i --output-file $@
229+
rm -f $@; pvs-studio --cfg $(PVS_CFG) --source-file $(srcdir)/regress/parse_json/check_parse_json.c --i-file check_parse_json.i --output-file $@
230230
check_wrap.lo: $(srcdir)/regress/logwrap/check_wrap.c \
231231
$(incdir)/compat/stdbool.h $(incdir)/sudo_compat.h \
232232
$(incdir)/sudo_eventlog.h $(incdir)/sudo_fatal.h \
@@ -240,7 +240,7 @@ check_wrap.i: $(srcdir)/regress/logwrap/check_wrap.c \
240240
$(top_builddir)/config.h
241241
$(CPP) $(CPPFLAGS) $(srcdir)/regress/logwrap/check_wrap.c > $@
242242
check_wrap.plog: check_wrap.i
243-
rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $(srcdir)/regress/logwrap/check_wrap.c --i-file check_wrap.i --output-file $@
243+
rm -f $@; pvs-studio --cfg $(PVS_CFG) --source-file $(srcdir)/regress/logwrap/check_wrap.c --i-file check_wrap.i --output-file $@
244244
eventlog.lo: $(srcdir)/eventlog.c $(incdir)/compat/stdbool.h \
245245
$(incdir)/sudo_compat.h $(incdir)/sudo_debug.h \
246246
$(incdir)/sudo_eventlog.h $(incdir)/sudo_fatal.h \
@@ -258,7 +258,7 @@ eventlog.i: $(srcdir)/eventlog.c $(incdir)/compat/stdbool.h \
258258
$(top_builddir)/config.h $(top_builddir)/pathnames.h
259259
$(CPP) $(CPPFLAGS) $(srcdir)/eventlog.c > $@
260260
eventlog.plog: eventlog.i
261-
rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $(srcdir)/eventlog.c --i-file eventlog.i --output-file $@
261+
rm -f $@; pvs-studio --cfg $(PVS_CFG) --source-file $(srcdir)/eventlog.c --i-file eventlog.i --output-file $@
262262
eventlog_conf.lo: $(srcdir)/eventlog_conf.c $(incdir)/compat/stdbool.h \
263263
$(incdir)/sudo_compat.h $(incdir)/sudo_debug.h \
264264
$(incdir)/sudo_eventlog.h $(incdir)/sudo_fatal.h \
@@ -276,7 +276,7 @@ eventlog_conf.i: $(srcdir)/eventlog_conf.c $(incdir)/compat/stdbool.h \
276276
$(top_builddir)/pathnames.h
277277
$(CPP) $(CPPFLAGS) $(srcdir)/eventlog_conf.c > $@
278278
eventlog_conf.plog: eventlog_conf.i
279-
rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $(srcdir)/eventlog_conf.c --i-file eventlog_conf.i --output-file $@
279+
rm -f $@; pvs-studio --cfg $(PVS_CFG) --source-file $(srcdir)/eventlog_conf.c --i-file eventlog_conf.i --output-file $@
280280
eventlog_free.lo: $(srcdir)/eventlog_free.c $(incdir)/compat/stdbool.h \
281281
$(incdir)/sudo_compat.h $(incdir)/sudo_debug.h \
282282
$(incdir)/sudo_eventlog.h $(incdir)/sudo_queue.h \
@@ -288,7 +288,7 @@ eventlog_free.i: $(srcdir)/eventlog_free.c $(incdir)/compat/stdbool.h \
288288
$(incdir)/sudo_util.h $(top_builddir)/config.h
289289
$(CPP) $(CPPFLAGS) $(srcdir)/eventlog_free.c > $@
290290
eventlog_free.plog: eventlog_free.i
291-
rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $(srcdir)/eventlog_free.c --i-file eventlog_free.i --output-file $@
291+
rm -f $@; pvs-studio --cfg $(PVS_CFG) --source-file $(srcdir)/eventlog_free.c --i-file eventlog_free.i --output-file $@
292292
logwrap.lo: $(srcdir)/logwrap.c $(incdir)/compat/stdbool.h \
293293
$(incdir)/sudo_compat.h $(incdir)/sudo_debug.h \
294294
$(incdir)/sudo_eventlog.h $(incdir)/sudo_queue.h \
@@ -300,7 +300,7 @@ logwrap.i: $(srcdir)/logwrap.c $(incdir)/compat/stdbool.h \
300300
$(incdir)/sudo_util.h $(top_builddir)/config.h
301301
$(CPP) $(CPPFLAGS) $(srcdir)/logwrap.c > $@
302302
logwrap.plog: logwrap.i
303-
rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $(srcdir)/logwrap.c --i-file logwrap.i --output-file $@
303+
rm -f $@; pvs-studio --cfg $(PVS_CFG) --source-file $(srcdir)/logwrap.c --i-file logwrap.i --output-file $@
304304
parse_json.lo: $(srcdir)/parse_json.c $(incdir)/compat/stdbool.h \
305305
$(incdir)/sudo_compat.h $(incdir)/sudo_debug.h \
306306
$(incdir)/sudo_eventlog.h $(incdir)/sudo_fatal.h \
@@ -318,7 +318,7 @@ parse_json.i: $(srcdir)/parse_json.c $(incdir)/compat/stdbool.h \
318318
$(top_builddir)/config.h
319319
$(CPP) $(CPPFLAGS) $(srcdir)/parse_json.c > $@
320320
parse_json.plog: parse_json.i
321-
rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $(srcdir)/parse_json.c --i-file parse_json.i --output-file $@
321+
rm -f $@; pvs-studio --cfg $(PVS_CFG) --source-file $(srcdir)/parse_json.c --i-file parse_json.i --output-file $@
322322
store_json_test.lo: $(srcdir)/regress/eventlog_store/store_json_test.c \
323323
$(incdir)/compat/stdbool.h $(incdir)/sudo_compat.h \
324324
$(incdir)/sudo_eventlog.h $(incdir)/sudo_fatal.h \
@@ -334,7 +334,7 @@ store_json_test.i: $(srcdir)/regress/eventlog_store/store_json_test.c \
334334
$(srcdir)/parse_json.h $(top_builddir)/config.h
335335
$(CPP) $(CPPFLAGS) $(srcdir)/regress/eventlog_store/store_json_test.c > $@
336336
store_json_test.plog: store_json_test.i
337-
rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $(srcdir)/regress/eventlog_store/store_json_test.c --i-file store_json_test.i --output-file $@
337+
rm -f $@; pvs-studio --cfg $(PVS_CFG) --source-file $(srcdir)/regress/eventlog_store/store_json_test.c --i-file store_json_test.i --output-file $@
338338
store_sudo_test.lo: $(srcdir)/regress/eventlog_store/store_sudo_test.c \
339339
$(incdir)/compat/stdbool.h $(incdir)/sudo_compat.h \
340340
$(incdir)/sudo_eventlog.h $(incdir)/sudo_fatal.h \
@@ -348,4 +348,4 @@ store_sudo_test.i: $(srcdir)/regress/eventlog_store/store_sudo_test.c \
348348
$(incdir)/sudo_util.h $(top_builddir)/config.h
349349
$(CPP) $(CPPFLAGS) $(srcdir)/regress/eventlog_store/store_sudo_test.c > $@
350350
store_sudo_test.plog: store_sudo_test.i
351-
rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $(srcdir)/regress/eventlog_store/store_sudo_test.c --i-file store_sudo_test.i --output-file $@
351+
rm -f $@; pvs-studio --cfg $(PVS_CFG) --source-file $(srcdir)/regress/eventlog_store/store_sudo_test.c --i-file store_sudo_test.i --output-file $@

lib/fuzzstub/Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Makefile: $(srcdir)/Makefile.in
106106
$(CPP) $(CPPFLAGS) $< > $@
107107

108108
.i.plog:
109-
ifile=$<; rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $${ifile%i}c --i-file $< --output-file $@
109+
ifile=$<; rm -f $@; pvs-studio --cfg $(PVS_CFG) --source-file $${ifile%i}c --i-file $< --output-file $@
110110

111111
libsudo_fuzzstub.la: $(LIBFUZZSTUB_OBJS)
112112
$(LIBTOOL) $(LTFLAGS) --mode=link $(CC) -o $@ $(LIBFUZZSTUB_OBJS) $(LT_LIBS)
@@ -174,4 +174,4 @@ fuzzstub.i: $(srcdir)/fuzzstub.c $(incdir)/compat/stdbool.h \
174174
$(top_builddir)/config.h
175175
$(CPP) $(CPPFLAGS) $(srcdir)/fuzzstub.c > $@
176176
fuzzstub.plog: fuzzstub.i
177-
rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $(srcdir)/fuzzstub.c --i-file fuzzstub.i --output-file $@
177+
rm -f $@; pvs-studio --cfg $(PVS_CFG) --source-file $(srcdir)/fuzzstub.c --i-file fuzzstub.i --output-file $@

0 commit comments

Comments
 (0)