]> sigrok.org Git - libserialport.git/blobdiff - configure.ac
linux: Fix warning by marking vid, pid variables unsigned.
[libserialport.git] / configure.ac
index 1c5ef4f8ff9dea80dc944ae2263158934b434d45..457d6f910f40531cd2f79119644abfef347ab787 100644 (file)
@@ -23,7 +23,7 @@ AC_PREREQ([2.63])
 
 # libserialport package version number (NOT the same as shared lib version!).
 m4_define([sp_package_version_major], [0])
-m4_define([sp_package_version_minor], [1])
+m4_define([sp_package_version_minor], [2])
 m4_define([sp_package_version_micro], [0])
 m4_define([sp_package_version], [sp_package_version_major.sp_package_version_minor.sp_package_version_micro])
 
@@ -39,8 +39,8 @@ AM_INIT_AUTOMAKE([1.11 -Wall -Werror check-news])
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
 
-# Enable more compiler warnings via -Wall and -Wextra.
-CFLAGS="$CFLAGS -Wall -Wextra"
+# Enable more compiler warnings.
+CFLAGS="$CFLAGS -std=c99 -Wall -Wextra -pedantic"
 
 # Checks for programs.
 AC_PROG_CC
@@ -95,9 +95,6 @@ mingw* | cygwin*)
        AM_CONDITIONAL([LINUX], false)
        AM_CONDITIONAL([WIN32], true)
        AM_CONDITIONAL([MACOSX], false)
-       # Set WINVER to 0x0501 (corresponds to Windows XP), needed for some
-       # defineŃ• such as WC_NO_BEST_FIT_CHARS.
-       CFLAGS="$CFLAGS -DWINVER=0x0501"
        SP_LIBS="-lsetupapi -luuid"
        ;;
 *)