Skip to content

Commit 978a3d8

Browse files
committed
build: Add -Wundef
1 parent 3387044 commit 978a3d8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ case $host in
102102
esac
103103

104104
AX_CHECK_COMPILE_FLAG([-Wall],[WARN_CXXFLAGS="$WARN_CXXFLAGS -Wall"],,[[$CXXFLAG_WERROR]])
105+
AX_CHECK_COMPILE_FLAG([-Wundef], [WARN_CXXFLAGS="$WARN_CXXFLAGS -Wundef"], [], [$CXXFLAG_WERROR])
105106
AX_CHECK_COMPILE_FLAG([-fvisibility=hidden],[CXXFLAGS="$CXXFLAGS -fvisibility=hidden"],[],[$CXXFLAG_WERROR])
106107

107108
if test "x$use_ccache" != "xno"; then

src/int_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static inline int CountBits(I val, int max) {
159159
}
160160
if (!ret) return 0;
161161
return index + 1;
162-
#elif HAVE_CLZ
162+
#elif defined(HAVE_CLZ)
163163
(void)max;
164164
if (val == 0) return 0;
165165
if (std::numeric_limits<unsigned>::digits >= std::numeric_limits<I>::digits) {

0 commit comments

Comments
 (0)