Skip to content

Commit

Permalink
Take care of the strict-prototypes warning in main as well
Browse files Browse the repository at this point in the history
/Users/runner/work/ThunderClientLibraries/ThunderClientLibraries/ThunderClientLibraries/Source/deviceinfo/device_info/main.c:58:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
void ShowMenu()
             ^
              void
/Users/runner/work/ThunderClientLibraries/ThunderClientLibraries/ThunderClientLibraries/Source/deviceinfo/device_info/main.c:83:9: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
int main()
        ^
         void
  • Loading branch information
VeithMetro authored Nov 14, 2024
1 parent b3f450e commit 380cd17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/deviceinfo/device_info/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static void toHexString(
fflush(stdout); \
} while (0)

void ShowMenu()
void ShowMenu(void)
{
printf("Enter\n"
"\tI : Get ID as a string.\n"
Expand All @@ -80,7 +80,7 @@ void ShowMenu()
);
}

int main()
int main(void)
{
int16_t result = 0;

Expand Down

0 comments on commit 380cd17

Please sign in to comment.