Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3063

C++ build -Wunused-parameter warnings on processor_test, TransportTest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Cannot Reproduce
    • 0.9.2
    • 0.10.0
    • C++ - Library
    • None
    • linux, Ubuntu 14.04 LTS

    Description

      During a build the following compiler warnings appear:

      libtool: link: g++ -Wall -Wextra -pedantic -g -O2 -std=c++11 -o .libs/Benchmark Benchmark.o  -L/usr/lib/x86_64-linux-gnu ./.libs/libtestgencpp.a /home/svtbuild/stash/pkgs/thrift2/lib/cpp/.libs/libthrift.so -lssl -lcrypto -lrt -lpthread
      In file included from processor/ServerThread.cpp:22:0:
      processor/ServerThread.h:64:16: warning: unused parameter ‘port’ [-Wunused-parameter]
         virtual void bindSuccessful(uint16_t port) {
                      ^
      In file included from processor/ProcessorTest.cpp:39:0:
      processor/ServerThread.h:64:16: warning: unused parameter ‘port’ [-Wunused-parameter]
         virtual void bindSuccessful(uint16_t port) {
                      ^
      In file included from processor/ProcessorTest.cpp:40:0:
      processor/Handlers.h:228:16: warning: unused parameter ‘serverContext’ [-Wunused-parameter]
         virtual void processContext(
                      ^
      processor/Handlers.h:228:16: warning: unused parameter ‘transport’ [-Wunused-parameter]
      processor/Handlers.h:287:8: warning: unused parameter ‘bytes’ [-Wunused-parameter]
         void postRead(void* ctx, const char* fnName, uint32_t bytes) {
              ^
      processor/Handlers.h:301:8: warning: unused parameter ‘bytes’ [-Wunused-parameter]
         void postWrite(void* ctx, const char* fnName, uint32_t bytes) {
              ^
      processor/ProcessorTest.cpp:936:24: warning: unused parameter ‘argc’ [-Wunused-parameter]
       unit_test::test_suite* init_unit_test_suite(int argc, char* argv[]) {
                              ^
      processor/ProcessorTest.cpp:936:24: warning: unused parameter ‘argv’ [-Wunused-parameter]
      /bin/bash ../../../libtool  --tag=CXX   --mode=link g++ -Wall -Wextra -pedantic -g -O2 -std=c++11 -L/usr/lib/x86_64-linux-gnu  -o processor_test processor/ProcessorTest.o processor/EventLog.o processor/ServerThread.o libprocessortest.la ../../../lib/cpp/libthrift.la ../../../lib/cpp/libthriftnb.la -L/usr/lib/x86_64-linux-gnu -levent -l:libboost_unit_test_framework.a -lssl -lcrypto -lrt -lpthread 
      libtool: link: g++ -Wall -Wextra -pedantic -g -O2 -std=c++11 -o .libs/processor_test processor/ProcessorTest.o processor/EventLog.o processor/ServerThread.o  -L/usr/lib/x86_64-linux-gnu ./.libs/libprocessortest.a ../../../lib/cpp/.libs/libthrift.so ../../../lib/cpp/.libs/libthriftnb.so -levent -l:libboost_unit_test_framework.a -lssl -lcrypto -lrt -lpthread
      	g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/cpp/src/thrift  -I/usr/include -I../../../lib/cpp/src  -Wall -Wextra -pedantic -g -O2 -std=c++11 -MT TransportTest.o -MD -MP -MF $depbase.Tpo -c -o TransportTest.o TransportTest.cpp &&\
      	mv -f $depbase.Tpo $depbase.Po
      TransportTest.cpp:1048:31: warning: unused parameter ‘argc’ [-Wunused-parameter]
       boost::unit_test::test_suite* init_unit_test_suite(int argc, char* argv[]) {
                                     ^
      TransportTest.cpp:1048:31: warning: unused parameter ‘argv’ [-Wunused-parameter]
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jking3 James E. King III
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: