Commit f7a2e11
committed
Fix some compiler warnings
.../src/scitokens_internal.h:673:25: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
673 | return std::move(result);
| ~~~~~~~~~^~~~~~~~
.../src/scitokens_internal.h:673:25: note: remove 'std::move' call
.../src/scitokens_internal.cpp:633:25: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
633 | return std::move(status);
| ~~~~~~~~~^~~~~~~~
.../src/scitokens_internal.cpp:633:25: note: remove 'std::move' call
.../src/scitokens_internal.cpp:747:13: warning: unused variable 'next_update' [-Wunused-variable]
747 | int64_t next_update, expires;
| ^~~~~~~~~~~
.../src/scitokens_internal.cpp:747:26: warning: unused variable 'expires' [-Wunused-variable]
747 | int64_t next_update, expires;
| ^~~~~~~
.../test/main.cpp:442:12: warning: unused variable 'now' [-Wunused-variable]
442 | time_t now = time(NULL);
| ^~~1 parent 8302815 commit f7a2e11
3 files changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
| 633 | + | |
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
| |||
744 | 744 | | |
745 | 745 | | |
746 | 746 | | |
747 | | - | |
748 | 747 | | |
749 | 748 | | |
750 | 749 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
670 | 670 | | |
671 | 671 | | |
672 | 672 | | |
673 | | - | |
| 673 | + | |
674 | 674 | | |
675 | 675 | | |
676 | 676 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | | - | |
443 | 442 | | |
444 | 443 | | |
445 | 444 | | |
| |||
0 commit comments