Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure/configure_ftlRegex.c: unexpected/differ printf format #10

Open
band-a-prend opened this issue Apr 25, 2021 · 0 comments
Open

Comments

@band-a-prend
Copy link

On compiling ftl library with pcre enabled the warning about differ format appears:

make -j4 BUILD=release USE_PCRE=true COMPILER=x86_64-pc-linux-gnu-gfortran 'FLAGS=-march=westmere -mno-aes -mno-avx -O2 -pipe' CXXCOMPILER=x86_64-pc-linux-gnu-g++ 'CXXFLAGS=-march=westmere -mno-aes -mno-avx -O2 -pipe' 
mkdir build.gnu.release
x86_64-pc-linux-gnu-g++ -DUSE_PCRE configure/configure_ftlRegex.c -o configure/configure_ftlRegex
x86_64-pc-linux-gnu-gfortran -march=westmere -mno-aes -mno-avx -O2 -pipe -Isrc -Itests -DUSE_PCRE -fPIC -c src/ftlKinds.F90 -o build.gnu.release/ftlKinds.o
x86_64-pc-linux-gnu-gfortran -march=westmere -mno-aes -mno-avx -O2 -pipe -Isrc -Itests -DUSE_PCRE -fPIC -c src/ftlHash.F90 -o build.gnu.release/ftlHash.o
configure/configure_ftlRegex.c: In function ‘int main()’:
configure/configure_ftlRegex.c:12:61: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
   12 |    printf("integer(C_int), parameter :: sizeof_C_regex_t = %d_C_int\n", sizeof(regex_t));
      |                                                            ~^           ~~~~~~~~~~~~~~~
      |                                                             |           |
      |                                                             int         long unsigned int
      |                                                            %ld
x86_64-pc-linux-gnu-gfortran -march=westmere -mno-aes -mno-avx -O2 -pipe -Isrc -Itests -DUSE_PCRE -fPIC -c src/ftlString.F90 -o build.gnu.release/ftlString.o
./configure/configure_ftlRegex | tee src/configure_ftlRegex.inc
integer(C_int), parameter :: sizeof_C_regex_t = 24_C_int
integer(C_int), parameter :: REG_EXTENDED = 0_C_int
integer(C_int), parameter :: REG_ICASE    = 1_C_int
integer(C_int), parameter :: REG_NEWLINE  = 2_C_int
integer(C_int), parameter :: REG_NOSUB    = 32_C_int
integer(C_int), parameter :: REG_NOTBOL = 4_C_int
integer(C_int), parameter :: REG_NOTEOL = 8_C_int
integer(C_int), parameter :: REG_NOMATCH = 17_C_int

GCC-10.2.0 and dev-libs/libpcre-8.44 are used in system with passing system FLAGS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant