[Libpqxx-general] Compile failure in current SVN

Roger Leigh rleigh at whinlatter.ukfsn.org
Sat Aug 16 09:42:58 UTC 2008


This still only occurs when --enable-maintainer-mode is in effect due to use
of -Werror.  -Werror may be too strict, or one of the other -W options
may be removed to prevent the diagnostic.


Regards,
Roger

 g++ -DHAVE_CONFIG_H -I../include -I../include -I/usr/include/postgresql -g -O2 -Werror -Wno-div-by-zero -ffor-scope -fstrict-aliasing -Wstrict-aliasing -funit-at-a-time -pedantic -fno-nonansi-builtins -Wall -Wmultichar -W -Wextra -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wconversion -Wctor-dtor-privacy -Wendif-labels -Wlogical-op -Woverlength-strings -Wredundant-decls -Wsign-compare -Wwrite-strings -Wnon-virtual-dtor -Wreorder -Wold-style-cast -Woverloaded-virtual -Wsign-promo -Wstrict-null-sentinel -Wformat-security -Winit-self -Wswitch -Wmissing-field-initializers -Wmissing-include-dirs -Wunused -funit-at-a-time -Werror -MT util.lo -MD -MP -MF .deps/util.Tpo -c util.cxx -o util.o
cc1plus: warnings being treated as errors
util.cxx: In function ‘L<unnamed>::absorb_digit(L, R) [with L = short int, R = int]’:
util.cxx:122:   instantiated from ‘void<unnamed>::from_string_signed(const char*, T&) [with T = short int]’
util.cxx:391:   instantiated from here
util.cxx:105: error: conversion to ‘short int’ from ‘int’ may alter its value
util.cxx: In function ‘L<unnamed>::absorb_digit(L, R) [with L = short unsigned int, R = int]’:
util.cxx:153:   instantiated from ‘void<unnamed>::from_string_unsigned(const char*, T&) [with T = short unsigned int]’
util.cxx:403:   instantiated from here
util.cxx:105: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
make[1]: *** [util.lo] Error 1
make[1]: Leaving directory `/home/rleigh/projects/libpqxx/src'
make: *** [all-recursive] Error 1

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.


More information about the Libpqxx-general mailing list