Skip to content

Commit

Permalink
Upstream: cppcheck fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lundman committed Jun 10, 2021
1 parent 73e6f4d commit 9d4233f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions cmd/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ endif
if BUILD_MACOS
SUBDIRS += zed os
endif

PHONY = cppcheck
cppcheck: $(CPPCHECKDIRS)
set -e ; for dir in $(CPPCHECKDIRS) ; do \
$(MAKE) -C $$dir cppcheck ; \
done
2 changes: 1 addition & 1 deletion include/sys/zio.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ enum zio_flag {
ZIO_FLAG_NOPWRITE = 1 << 28,
ZIO_FLAG_REEXECUTED = 1 << 29,
ZIO_FLAG_DELEGATED = 1 << 30,
ZIO_FLAG_FASTWRITE = 1 << 31,
ZIO_FLAG_FASTWRITE = 1ULL << 31,
};

#define ZIO_FLAG_MUSTSUCCEED 0
Expand Down
1 change: 1 addition & 0 deletions lib/libicp/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,4 @@ nodist_libicp_la_SOURCES = \
$(KERNEL_C) \
$(KERNEL_ASM)

include $(top_srcdir)/config/CppCheck.am
5 changes: 4 additions & 1 deletion module/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ check:
clean clean-Linux clean-FreeBSD \
modules_install modules_install-Linux modules_install-FreeBSD \
modules_uninstall modules_uninstall-Linux modules_uninstall-FreeBSD \
cppcheck cppcheck-Linux cppcheck-FreeBSD
cppcheck cppcheck-Linux cppcheck-FreeBSD cppcheck-macOS

# For FreeBSD, use debug options from ./configure if not overridden.
export WITH_DEBUG ?= @WITH_DEBUG@
Expand Down Expand Up @@ -144,6 +144,9 @@ cppcheck-Linux:
cppcheck-FreeBSD:
@true

cppcheck-macOS:
@true

cppcheck: cppcheck-@ac_system@

distdir:
Expand Down

0 comments on commit 9d4233f

Please sign in to comment.