Skip to content

Commit

Permalink
Merge pull request #693 from argilo/compile-warnings
Browse files Browse the repository at this point in the history
Fix compiler warnings
  • Loading branch information
jdemel authored Dec 1, 2023
2 parents 1d79480 + b900da1 commit 5bc2ded
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 3 additions & 9 deletions apps/volk_option_helpers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ void option_list::parse(int argc, char** argv)
} catch (std::exception& exc) {
throw std::exception();
};
break;
case STRING:
std::cout << this_option->printval << std::endl;
break;
Expand Down Expand Up @@ -225,15 +226,8 @@ void option_list::help()
help_line += this_option->shortform + " [ " + this_option->longform + " ]";
}

switch (help_line.size() / 8) {
case 0:
help_line += "\t";
case 1:
help_line += "\t";
case 2:
help_line += "\t";
case 3:
help_line += "\t";
while (help_line.size() < 32) {
help_line += " ";
}
help_line += this_option->msg;
std::cout << help_line << std::endl;
Expand Down
6 changes: 6 additions & 0 deletions kernels/volk/volk_32f_8u_polarbutterflypuppet_32f.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ static inline void volk_32f_8u_polarbutterflypuppet_32f_generic(float* llrs,
unsigned char* u,
const int elements)
{
(void)input; // suppress unused parameter warning

if (elements < 2) {
return;
}
Expand Down Expand Up @@ -108,6 +110,8 @@ static inline void volk_32f_8u_polarbutterflypuppet_32f_u_avx(float* llrs,
unsigned char* u,
const int elements)
{
(void)input; // suppress unused parameter warning

if (elements < 2) {
return;
}
Expand Down Expand Up @@ -135,6 +139,8 @@ static inline void volk_32f_8u_polarbutterflypuppet_32f_u_avx2(float* llrs,
unsigned char* u,
const int elements)
{
(void)input; // suppress unused parameter warning

if (elements < 2) {
return;
}
Expand Down

0 comments on commit 5bc2ded

Please sign in to comment.