Pedantic warnings under gnu99 #42

Open
opened 2026-01-29 20:29:47 +00:00 by claunia · 0 comments
Owner

Originally created by @jeroen on GitHub (Oct 2, 2015).

This is Ubuntu 14.04

g++ -I/usr/share/R/include -DNDEBUG     -Wno-sign-compare -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -Wno-unused -pedantic  -c wrapper.cc -o wrapper.o
* installing *source* package ‘brotli’ ...
** libs
In file included from enc/encode.h:23:0,
                 from wrapper.cc:3:
enc/./hash.h:104:14: warning: invoking macro length argument 1: empty macro arguments are undefined in ISO C90 and ISO C++98 [enabled by default]
   int length() const {
              ^
enc/./hash.h:109:33: warning: invoking macro length argument 1: empty macro arguments are undefined in ISO C90 and ISO C++98 [enabled by default]
     return code ? code : length();
                                 ^
In file included from enc/./hash.h:34:0,
                 from enc/encode.h:23,
                 from wrapper.cc:3:
enc/././transform.h:47:23: warning: comma at end of enumerator list [-Wpedantic]
   kOmitFirst9     = 20,
                       ^
In file included from wrapper.cc:3:0:
enc/encode.h:54:18: warning: comma at end of enumerator list [-Wpedantic]
     MODE_FONT = 2,
                  ^
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -pedantic -std=gnu99 -c dec/bit_reader.c -o dec/bit_reader.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -pedantic -std=gnu99 -c dec/decode.c -o dec/decode.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -pedantic -std=gnu99 -c dec/dictionary.c -o dec/dictionary.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -pedantic -std=gnu99 -c dec/huffman.c -o dec/huffman.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -pedantic -std=gnu99 -c dec/state.c -o dec/state.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -pedantic -std=gnu99 -c dec/streams.c -o dec/streams.o
ar rcs libdec.a dec/bit_reader.o dec/decode.o dec/dictionary.o dec/huffman.o dec/state.o dec/streams.o
g++ -I/usr/share/R/include -DNDEBUG     -Wno-sign-compare -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -Wno-unused -pedantic  -c enc/backward_references.cc -o enc/backward_references.o
In file included from enc/././hash.h:34:0,
                 from enc/./backward_references.h:22,
                 from enc/backward_references.cc:17:
enc/./././transform.h:47:23: warning: comma at end of enumerator list [-Wpedantic]
   kOmitFirst9     = 20,
                       ^
g++ -I/usr/share/R/include -DNDEBUG     -Wno-sign-compare -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -Wno-unused -pedantic  -c enc/block_splitter.cc -o enc/block_splitter.o
g++ -I/usr/share/R/include -DNDEBUG     -Wno-sign-compare -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -Wno-unused -pedantic  -c enc/brotli_bit_stream.cc -o enc/brotli_bit_stream.o
enc/brotli_bit_stream.cc:705:42: warning: use of C++0x long long integer constant [-Wlong-long]
     uint64_t lenextra = cmd.cmd_extra_ & 0xffffffffffffULL;
                                          ^
enc/brotli_bit_stream.cc:811:48: warning: use of C++0x long long integer constant [-Wlong-long]
     const uint64_t lenextra = cmd.cmd_extra_ & 0xffffffffffffULL;
                                                ^
g++ -I/usr/share/R/include -DNDEBUG     -Wno-sign-compare -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -Wno-unused -pedantic  -c enc/encode.cc -o enc/encode.o
In file included from enc/././hash.h:34:0,
                 from enc/./encode.h:23,
                 from enc/encode.cc:17:
enc/./././transform.h:47:23: warning: comma at end of enumerator list [-Wpedantic]
   kOmitFirst9     = 20,
                       ^
In file included from enc/encode.cc:17:0:
enc/./encode.h:54:18: warning: comma at end of enumerator list [-Wpedantic]
     MODE_FONT = 2,
                  ^
g++ -I/usr/share/R/include -DNDEBUG     -Wno-sign-compare -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -Wno-unused -pedantic  -c enc/encode_parallel.cc -o enc/encode_parallel.o
In file included from enc/./././hash.h:34:0,
                 from enc/././encode.h:23,
                 from enc/./encode_parallel.h:23,
                 from enc/encode_parallel.cc:17:
enc/././././transform.h:47:23: warning: comma at end of enumerator list [-Wpedantic]
   kOmitFirst9     = 20,
                       ^
In file included from enc/./encode_parallel.h:23:0,
                 from enc/encode_parallel.cc:17:
enc/././encode.h:54:18: warning: comma at end of enumerator list [-Wpedantic]
     MODE_FONT = 2,
                  ^
g++ -I/usr/share/R/include -DNDEBUG     -Wno-sign-compare -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -Wno-unused -pedantic  -c enc/entropy_encode.cc -o enc/entropy_encode.o
g++ -I/usr/share/R/include -DNDEBUG     -Wno-sign-compare -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -Wno-unused -pedantic  -c enc/streams.cc -o enc/streams.o
g++ -I/usr/share/R/include -DNDEBUG     -Wno-sign-compare -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -Wno-unused -pedantic  -c enc/histogram.cc -o enc/histogram.o
g++ -I/usr/share/R/include -DNDEBUG     -Wno-sign-compare -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -Wno-unused -pedantic  -c enc/literal_cost.cc -o enc/literal_cost.o
g++ -I/usr/share/R/include -DNDEBUG     -Wno-sign-compare -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -Wno-unused -pedantic  -c enc/metablock.cc -o enc/metablock.o
g++ -I/usr/share/R/include -DNDEBUG     -Wno-sign-compare -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -Wno-unused -pedantic  -c enc/static_dict.cc -o enc/static_dict.o
In file included from enc/static_dict.cc:8:0:
enc/./transform.h:47:23: warning: comma at end of enumerator list [-Wpedantic]
   kOmitFirst9     = 20,
                       ^
g++ -I/usr/share/R/include -DNDEBUG     -Wno-sign-compare -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -Wno-unused -pedantic  -c enc/utf8_util.cc -o enc/utf8_util.o
ar rcs libenc.a enc/backward_references.o enc/block_splitter.o enc/brotli_bit_stream.o enc/encode.o enc/encode_parallel.o enc/entropy_encode.o enc/streams.o enc/histogram.o enc/literal_cost.o enc/metablock.o enc/static_dict.o enc/utf8_util.o
g++ -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o brotli.so wrapper.o -L. -lenc -ldec -L/usr/lib/R/lib -lR
installing to /usr/local/lib/R/site-library/brotli/libs
Originally created by @jeroen on GitHub (Oct 2, 2015). This is Ubuntu 14.04 ``` g++ -I/usr/share/R/include -DNDEBUG -Wno-sign-compare -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -O3 -Wall -pipe -Wno-unused -pedantic -c wrapper.cc -o wrapper.o * installing *source* package ‘brotli’ ... ** libs In file included from enc/encode.h:23:0, from wrapper.cc:3: enc/./hash.h:104:14: warning: invoking macro length argument 1: empty macro arguments are undefined in ISO C90 and ISO C++98 [enabled by default] int length() const { ^ enc/./hash.h:109:33: warning: invoking macro length argument 1: empty macro arguments are undefined in ISO C90 and ISO C++98 [enabled by default] return code ? code : length(); ^ In file included from enc/./hash.h:34:0, from enc/encode.h:23, from wrapper.cc:3: enc/././transform.h:47:23: warning: comma at end of enumerator list [-Wpedantic] kOmitFirst9 = 20, ^ In file included from wrapper.cc:3:0: enc/encode.h:54:18: warning: comma at end of enumerator list [-Wpedantic] MODE_FONT = 2, ^ gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -O3 -Wall -pipe -pedantic -std=gnu99 -c dec/bit_reader.c -o dec/bit_reader.o gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -O3 -Wall -pipe -pedantic -std=gnu99 -c dec/decode.c -o dec/decode.o gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -O3 -Wall -pipe -pedantic -std=gnu99 -c dec/dictionary.c -o dec/dictionary.o gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -O3 -Wall -pipe -pedantic -std=gnu99 -c dec/huffman.c -o dec/huffman.o gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -O3 -Wall -pipe -pedantic -std=gnu99 -c dec/state.c -o dec/state.o gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -O3 -Wall -pipe -pedantic -std=gnu99 -c dec/streams.c -o dec/streams.o ar rcs libdec.a dec/bit_reader.o dec/decode.o dec/dictionary.o dec/huffman.o dec/state.o dec/streams.o g++ -I/usr/share/R/include -DNDEBUG -Wno-sign-compare -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -O3 -Wall -pipe -Wno-unused -pedantic -c enc/backward_references.cc -o enc/backward_references.o In file included from enc/././hash.h:34:0, from enc/./backward_references.h:22, from enc/backward_references.cc:17: enc/./././transform.h:47:23: warning: comma at end of enumerator list [-Wpedantic] kOmitFirst9 = 20, ^ g++ -I/usr/share/R/include -DNDEBUG -Wno-sign-compare -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -O3 -Wall -pipe -Wno-unused -pedantic -c enc/block_splitter.cc -o enc/block_splitter.o g++ -I/usr/share/R/include -DNDEBUG -Wno-sign-compare -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -O3 -Wall -pipe -Wno-unused -pedantic -c enc/brotli_bit_stream.cc -o enc/brotli_bit_stream.o enc/brotli_bit_stream.cc:705:42: warning: use of C++0x long long integer constant [-Wlong-long] uint64_t lenextra = cmd.cmd_extra_ & 0xffffffffffffULL; ^ enc/brotli_bit_stream.cc:811:48: warning: use of C++0x long long integer constant [-Wlong-long] const uint64_t lenextra = cmd.cmd_extra_ & 0xffffffffffffULL; ^ g++ -I/usr/share/R/include -DNDEBUG -Wno-sign-compare -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -O3 -Wall -pipe -Wno-unused -pedantic -c enc/encode.cc -o enc/encode.o In file included from enc/././hash.h:34:0, from enc/./encode.h:23, from enc/encode.cc:17: enc/./././transform.h:47:23: warning: comma at end of enumerator list [-Wpedantic] kOmitFirst9 = 20, ^ In file included from enc/encode.cc:17:0: enc/./encode.h:54:18: warning: comma at end of enumerator list [-Wpedantic] MODE_FONT = 2, ^ g++ -I/usr/share/R/include -DNDEBUG -Wno-sign-compare -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -O3 -Wall -pipe -Wno-unused -pedantic -c enc/encode_parallel.cc -o enc/encode_parallel.o In file included from enc/./././hash.h:34:0, from enc/././encode.h:23, from enc/./encode_parallel.h:23, from enc/encode_parallel.cc:17: enc/././././transform.h:47:23: warning: comma at end of enumerator list [-Wpedantic] kOmitFirst9 = 20, ^ In file included from enc/./encode_parallel.h:23:0, from enc/encode_parallel.cc:17: enc/././encode.h:54:18: warning: comma at end of enumerator list [-Wpedantic] MODE_FONT = 2, ^ g++ -I/usr/share/R/include -DNDEBUG -Wno-sign-compare -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -O3 -Wall -pipe -Wno-unused -pedantic -c enc/entropy_encode.cc -o enc/entropy_encode.o g++ -I/usr/share/R/include -DNDEBUG -Wno-sign-compare -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -O3 -Wall -pipe -Wno-unused -pedantic -c enc/streams.cc -o enc/streams.o g++ -I/usr/share/R/include -DNDEBUG -Wno-sign-compare -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -O3 -Wall -pipe -Wno-unused -pedantic -c enc/histogram.cc -o enc/histogram.o g++ -I/usr/share/R/include -DNDEBUG -Wno-sign-compare -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -O3 -Wall -pipe -Wno-unused -pedantic -c enc/literal_cost.cc -o enc/literal_cost.o g++ -I/usr/share/R/include -DNDEBUG -Wno-sign-compare -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -O3 -Wall -pipe -Wno-unused -pedantic -c enc/metablock.cc -o enc/metablock.o g++ -I/usr/share/R/include -DNDEBUG -Wno-sign-compare -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -O3 -Wall -pipe -Wno-unused -pedantic -c enc/static_dict.cc -o enc/static_dict.o In file included from enc/static_dict.cc:8:0: enc/./transform.h:47:23: warning: comma at end of enumerator list [-Wpedantic] kOmitFirst9 = 20, ^ g++ -I/usr/share/R/include -DNDEBUG -Wno-sign-compare -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -O3 -Wall -pipe -Wno-unused -pedantic -c enc/utf8_util.cc -o enc/utf8_util.o ar rcs libenc.a enc/backward_references.o enc/block_splitter.o enc/brotli_bit_stream.o enc/encode.o enc/encode_parallel.o enc/entropy_encode.o enc/streams.o enc/histogram.o enc/literal_cost.o enc/metablock.o enc/static_dict.o enc/utf8_util.o g++ -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o brotli.so wrapper.o -L. -lenc -ldec -L/usr/lib/R/lib -lR installing to /usr/local/lib/R/site-library/brotli/libs ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#42