Commit 6d1bb76
committed
CMake: Allow building without examples
Building examples with newer GCC encounters the error:
| libp2p_echo_server.cpp: In function 'bool isInsecure(int, char**)':
| libp2p_echo_server.cpp:22:22: error: 'template<class ValueType, int FirstDimension, int ...RestDimensions> class gsl::multi_span' is deprecated [-Werror=deprecated-declarations]
| 22 | auto args = gsl::multi_span<char *>(argv, argc);
| | ^~~~~~~~~~
| cc1plus: some warnings being treated as errors
TODO: Disable -Werror for examples1 parent 98d8984 commit 6d1bb76
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
94 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
| |||
0 commit comments