Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 3 years ago

Language

C++

Compiler

gcc 12.1.0

Options
Warnings
Optimization
Boost 1.79.0
C++2a
-pedantic
Raw compiler options
source2.cpp source3.cpp

Author

anonymous

almost 3 years ago

Header.h
source2.cpp
source3.cpp

$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.79.0-gcc-12.1.0/include -std=c++2a -pedantic source2.cpp source3.cpp
In file included from prog.cc:3:
Header.h: In instantiation of 'int func(const T&) [with T = std::__cxx11::basic_string<char>]':
Header.h:10:55:   required from here
Header.h:6:20: warning: unused parameter 'str' [-Wunused-parameter]
    6 | int func( const T& str)
      |           ~~~~~~~~~^~~
Header.h: In instantiation of 'int func(const T&) [with T = double]':
Header.h:11:42:   required from here
Header.h:6:20: warning: unused parameter 'str' [-Wunused-parameter]
In file included from source2.cpp:1:
Header.h: In instantiation of 'int func(const T&) [with T = std::__cxx11::basic_string<char>]':
Header.h:10:55:   required from here
Header.h:6:20: warning: unused parameter 'str' [-Wunused-parameter]
    6 | int func( const T& str)
      |           ~~~~~~~~~^~~
Header.h: In instantiation of 'int func(const T&) [with T = double]':
Header.h:11:42:   required from here
Header.h:6:20: warning: unused parameter 'str' [-Wunused-parameter]
In file included from source3.cpp:1:
Header.h: In instantiation of 'int func(const T&) [with T = std::__cxx11::basic_string<char>]':
Header.h:10:55:   required from here
Header.h:6:20: warning: unused parameter 'str' [-Wunused-parameter]
    6 | int func( const T& str)
      |           ~~~~~~~~~^~~
Header.h: In instantiation of 'int func(const T&) [with T = double]':
Header.h:11:42:   required from here
Header.h:6:20: warning: unused parameter 'str' [-Wunused-parameter]
4
Exit Code:
0