search for: wconversion

Displaying 20 results from an estimated 21 matches for "wconversion".

Did you mean: conversion
2012 Apr 20
1
array code issue ?
...er->used / array->element_size; # return buffer_get_modifiable_data(array->buffer, NULL); #} array->buffer->used and array->element_size are of type 'size_t' which is 64bit on amd64 and others while 'count_r' is a 32bit value. At least, I see ugly warnings with -Wconversion (which I personally like to use). I know, it is unlikely that 'array->buffer->used / array->element_size' exceeds 32bit range. But then, dovecot's source is so well written, that the above code seems to disturb dovecot's code aesthetics. And who knows... in a few years...
2010 Jun 10
4
gem update fails on make sqlite3
...ake gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-linux -I/usr/local/ include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. - DHAVE_RB_PROC_ARITY -I/usr/local/include -I/opt/local/include -I/usr/ include -fPIC -O2 -g -Wall -Wno-parentheses -O3 -Wall -Wcast-qual - Wwrite-strings -Wconversion -Wmissing-noreturn -Winline -o sqlite3.o - c sqlite3.c sqlite3.c: In function âInit_sqlite3_nativeâ: sqlite3.c:27: warning: implicit declaration of function âsqlite3_initializeâ gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-linux -I/usr/local/ include/ruby-1.9.1/ruby/backward -I/usr/local/include...
2014 May 25
2
replace -Wextra with -W
...if test x$ac_cv_c_compiler_gnu = xyes ; then - CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef -Wmissing-declarations -Wunreachable-code " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Winline -Wconversion - CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wcast-align -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wsign-promo -Wundef -Wunreachable-code " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Woverloaded-virtual -Wmissing-declarations + CFLAGS="$CFLAGS -Wall -...
2016 Jan 24
1
Wextra in configury
...if test x$ac_cv_c_compiler_gnu = xyes ; then - CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef -Wmissing-declarations -Wunreachable-code -Winline " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Wconversion - CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wcast-align -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wsign-promo -Wundef -Wunreachable-code " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Woverloaded-virtual -Wmissing-declarations + CFLAGS="$CFLAGS -Wall -...
2015 Nov 09
0
[PATCH 5/5] build: Enable some more warnings.
...t care about C++ compilers nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib nw="$nw -Wtraditional" # Warns on #elif which we use often -nw="$nw -Wcast-qual" # Too many warnings for now -nw="$nw -Wconversion" # Too many warnings for now nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings -nw="$nw -Wsign-conversion" # Not an error -nw="$nw -Wtraditional-conversion" # Don't care about pre-ANSI compilers...
2005 Sep 05
1
[PATCH] fix gcc 3.4 warnings
On Tue, Sep 06, 2005 at 08:54:18AM +1000, Jean-Marc Valin wrote: > I usually compile with several warning flags, but I prefer not to impose > any (especially since not everyone uses gcc!). FWIW, configure is already checking to see whether the compiler is gcc or not. There's an if clause in the configure scripts for ogg, vorbis, theora, and other of our packages that uses this to add
2014 May 25
2
extend visibility attributes usage to osx builds
...@ if test x$ac_cv_c_compiler_gnu = xyes ; then CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef -Wmissing-declarations -Wunreachable-code " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Winline -Wconversion CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wcast-align -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wsign-promo -Wundef -Wunreachable-code " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Woverloaded-virtual -Wmissing-declarations - XIPH_ADD_CFLAGS([-Wdecla...
2008 Jul 29
1
xapian-omega runfilter.cc patch
...or that matter) without the above patch results in the following compile error: c++ -DHAVE_CONFIG_H -I. -I./common -DCONFIGFILE_SYSTEM=\"/usr/local/etc/omega.conf\" -I/usr/local/include -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -Wconversion -fno-gnu-keywords -Wundef -Wshadow -Winit-self -Wstrict-overflow=5 -fvisibility=hidden -O2 -pipe -march=prescott -fno-strict-aliasing -I/usr/local/include -MT runfilter.o -MD -MP -MF .deps/runfilter.Tpo -c -o runfilter.o runfilter.cc runfilter.cc: In function 'std::string stdout_to_string(const...
2006 Apr 20
0
krb5-1.4.3 & Solaris 8
...9;t find freeifaddrs or getifaddrs, using gcc. [........] making all in lib/rpc/unit-test... gmake[3]: Entering directory `/var/tmp/sambastuff/krb5-1.4.3/src/lib/rpc/unit-test' gcc -L../../../lib -R/usr/local/testsamba/kerberos/lib -g -O2 -Wall -Wmissing-prototypes -Wcast-qual -Wcast-align -Wconversion -Wshadow -pedantic -o client client.o rpc_test_clnt.o \ -lgssrpc -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkrb5support -lresolv -lsocket -lnsl ld: warning: file libgcc_s.so.1: required by ../../../lib/libgssrpc.so, not found Undefined first referenced symbol...
2007 Sep 03
1
FLAC_index
Hi, Christian Weisgerber <naddy@mips.inka.de> wrote: > I guess the use of unsigned index variables was an accident. Changing > them back to int makes FLAC pass the "thorough" test suite on amd64. I was wondering why there isn't a FLAC_index (FLAC_index16 or FLAC_index32) type that would prevent someone from just "winging" it with a bad choice for an index to
2005 Mar 05
0
Compiling samba on Solaris 8 --with-ads
...sions to /usr/include/gssapi (otherwise it complained about duplicate definitions of stuff). I tried using MIT's kerberos (1.4), but it has a problem finding freeifaddrs and getifaddrs: gcc -L../../../lib -R/usr/local/lib -g -O2 -Wall -Wmissing-prototypes -Wcast-qual -Wcast-align -Wconversion -Wshadow -pedantic -o client client.o rpc_test_clnt.o \ -lgssrpc -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkrb5support -lresolv -lsocket -lnsl Undefined first referenced symbol in file freeifaddrs...
2005 Apr 02
2
Building new graphic device drivers with g++
...l/lib -o devNull.so devNull.o (everything works OK) The difficulties start when trying to compile manually. I compile the library with no errors: g++ devNull.cpp -o devNull.so -I/usr/lib/R/include -I/usr/local/include -L/usr/local/lib -lm -lpthread -lsupc++ -lg2c -shared -fPIC -O2 -Wall -Wunused -Wconversion -fno-exceptions -g -pipe -m32 -march=i386 -mtune=pentium4 But when I try to load the library I get: R : Copyright 2004, The R Foundation for Statistical Computing Version 2.0.1 (2004-11-15), ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistri...
2017 Jun 02
3
Failed to build libunwind the libcxx's __config header
...I../projects/libunwind/include -I../projects/libcxx/include -fPIC -Werror=date-time -Wall -W -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-comment -ffunction-sections -fdata-sections -O3 -DNDEBUG -Werror=return-type -W -Wall -Wchar-subscripts -Wconversion -Wmissing-braces -Wno-unused-function -Wshadow -Wsign-compare -Wsign-conversion -Wstrict-aliasing=2 -Wstrict-overflow=4 -Wunused-parameter -Wunused-variable -Wwrite-strings -Wundef -Wno-error -pedantic -D_DEBUG -UNDEBUG -D_LIBUNWIND_IS_NATIVE_ONLY -fPIC -fno-exceptions -funwind-tables -std=c99 -fP...
2007 Mar 15
1
[PATCH] fix gcc warnings in 1.0rc26
Hi, I have made a small patchset to fix some of the GCC warnings. With these patches, I was able to compile dovecot r_1_0_rc26 with the following options: -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast Wstrict-prototypes -Wredundant-decls -Wcast-align -Wwrite-strings Wpacked -Winline -Wdisabled-optimization
2009 Aug 18
8
src/ is now warning-free, too
These patches first make src/ warning free, and then turn on the strict warning options. 75 0001-build-suppress-an-ignored-write-return-value-warning.patch 38 0002-build-suppress-an-ignored-dup-return-value-warning.patch 27 0003-generator.ml-suppress-signed-unsigned-compare-warnin.patch 48 0004-build-don-t-perform-arithmetic-on-void-pointers.patch 30
2015 Nov 09
6
[PATCH 0/5] build: Enable some more warnings.
Add some warnings. Well, the first patch is a miscellaneous change, but patches 2-5 add some warnings. Rich.
2010 Aug 08
1
PATCH/RFC chain.c: update iterator code, yank from chain.c, move both to separate directory
...performed. 2g) other stuff As previously, iterators self-destroy after finishing. They can be explicitly allocated through pi_new() (although this was exported mostly thinking about com32/lib) and removed through pi_del(); pi_next() moves iterator further. Partiter compiles cleanly with -Wextra -Wconversion -pedantic 2h) chain.c changes - find_by_guid() had small bug (took address of address of struct holding disk guid to compare) - find_by_{guid,label,disk} greately simplified due to extra data available from iterators - in main() - lba_fs takes clear precedence over regular partition number -...
2005 Sep 19
8
upgrade problem
Currently we have RH7.3 with compiler gcc 2.96.x My mission, should I choose to accept it, involves moving our embedded application to CentOS 4.1 with gcc 3.x Problem is that about 1/2 million lines of code that gcc 2.96 accepts gives fatal fits to the gcc 3.x compiler from CentOS 4.1 I don't know how many fatal fits, as some disguise others etc. "Can't find register to
2009 Aug 17
13
total warning-removal for daemon/
The warnings in daemon were aggravating and risky for development (too easy to miss new ones) so I spent some time last week and today working on removing them. The first patch gets us down to almost no warnings with the original -Wall setting. That was by far the hardest part. Once I'd done that, I enabled nearly all of gcc's warnings via gnulib's warnings and manywarnings modules
2015 Oct 29
16
[PATCH 00/16] Refactoring of configure.ac and guestfs.pod
Two (not related to each other) refactorings: Patches 1-12 split configure.ac into smaller files using the m4_include mechanism. Patches 13-15 split out parts of guestfs.pod (ie. guestfs(3)) into three new manual pages: guestfs-hacking(3) - how to extend and contribute to libguestfs guestfs-internals(3) - architecture and internals guestfs-security(3) - security and CVEs Patch 16 is a