Details
-
Bug
-
Resolution: Done
-
Minor - P4
-
None
-
None
-
None
Description
Assorted compiler warnings for 1.1.5-dev. Some of these may be due to misconfiguration on my end, please tell me if so.
|
Solaris |
/opt/SunProd/studio12u3/solarisstudio12.3/bin/cc -xc99 -m64 -I/usr/lib/64/R/include -DNDEBUG -I. -Iyajl -Ibson -Imongoc -include apple.h -I/opt/csw/include -DBSON_COMPILATION -DMONGOC_COMPILATION -KPIC -xlibmieee -c mongoc/mongoc-index.c -o mongoc/mongoc-index.o
|
"mongoc/mongoc-index.c", line 41: warning: initializer does not fit or is out of range: -90
|
|
Any |
bson/bson-timegm.c:180:19: warning: variable 'gmt' is not needed and will not be emitted [-Wunneeded-internal-declaration]
|
static const char gmt[] = "GMT";
|
|
Windows mingw32 |
gcc -m32 -I"C:/PROGRA~1/R/R-32~1.0/include" -DNDEBUG -I../windows/openssl-1.0.1j/include -I../windows/libsasl-2.1.26/include -DLIBSASL_EXPORTS -DBSON_COMPILATION -DMONGOC_COMPILATION -I. -Iyajl -Ibson -Imongoc -I"d:/RCompile/r-compiling/local/local320/include" -Wno-unused-value -Wno-unused-but-set-variable -Wno-implicit-function-declaration -O3 -Wall -std=gnu99 -mtune=core2 -c bson/bson-iso8601.c -o bson/bson-iso8601.o
|
bson/bson-iso8601.c: In function '_bson_iso8601_date_parse':
|
bson/bson-iso8601.c:227:30: warning: 'sec_ptr' may be used uninitialized in this function [-Wuninitialized]
|
bson/bson-iso8601.c:108:1: warning: 'millis_ptr' may be used uninitialized in this function [-Wuninitialized]
|
|
Windows mingw-w64 |
gcc -m32 -I"C:/PROGRA~1/R/R-32~1.0/include" -DNDEBUG -I../windows/openssl-1.0.1j/include -I../windows/libsasl-2.1.26/include -DLIBSASL_EXPORTS -DBSON_COMPILATION -DMONGOC_COMPILATION -I. -Iyajl -Ibson -Imongoc -I"d:/RCompile/r-compiling/local/local320/include" -Wno-unused-value -Wno-unused-but-set-variable -Wno-implicit-function-declaration -O3 -Wall -std=gnu99 -mtune=core2 -c bson/bson.c -o bson/bson.o
|
bson/bson.c: In function '_bson_as_json_visit_int64':
|
bson/bson.c:2334:4: warning: format '%i' expects argument of type 'int', but argument 3 has type 'int64_t' [-Wformat]
|
bson/bson.c: In function '_bson_as_json_visit_date_time':
|
bson/bson.c:2450:4: warning: format '%i' expects argument of type 'int', but argument 3 has type 'int64_t' [-Wformat]
|
ar rcs libbson.a bson/*.o
|
|
Windows mingw-w64 |
gcc -m32 -I"C:/PROGRA~1/R/R-32~1.0/include" -DNDEBUG -I../windows/openssl-1.0.1j/include -I../windows/libsasl-2.1.26/include -DLIBSASL_EXPORTS -DBSON_COMPILATION -DMONGOC_COMPILATION -I. -Iyajl -Ibson -Imongoc -I"d:/RCompile/r-compiling/local/local320/include" -Wno-unused-value -Wno-unused-but-set-variable -Wno-implicit-function-declaration -O3 -Wall -std=gnu99 -mtune=core2 -c mongoc/mongoc-buffer.c -o mongoc/mongoc-buffer.o
|
mongoc/mongoc-buffer.c: In function '_mongoc_buffer_append_from_stream':
|
mongoc/mongoc-buffer.c:181:23: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'long long unsigned int' [-Wformat]
|
Attachments
Issue Links
- is related to
-
CDRIVER-940 Build errors and warnings on mingw-w64
-
- Closed
-
-
CDRIVER-831 GCC 5 warnings
-
- Closed
-
-
CDRIVER-818 Add support for Solaris Studio Compiler
-
- Closed
-