Skip to content

Commit

Permalink
Fix the strict-prototypes warnings in displayinfo.h
Browse files Browse the repository at this point in the history
[34/55] Building C object Source/displayinfo/display_info/CMakeFiles/display_info.dir/main.c.o
FAILED: Source/displayinfo/display_info/CMakeFiles/display_info.dir/main.c.o 
/Applications/Xcode_15.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DTHUNDER_PLATFORM_PC_UNIX=1 -I/Users/runner/work/ThunderClientLibraries/ThunderClientLibraries/ThunderClientLibraries/Source/displayinfo/display_info/../include -I/Users/runner/work/ThunderClientLibraries/ThunderClientLibraries/ThunderClientLibraries/Source/displayinfo -I/Users/runner/work/ThunderClientLibraries/ThunderClientLibraries/ThunderClientLibraries/Source/displayinfo/include -Wall -Wextra -Wpedantic -Werror -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode_15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -MD -MT Source/displayinfo/display_info/CMakeFiles/display_info.dir/main.c.o -MF Source/displayinfo/display_info/CMakeFiles/display_info.dir/main.c.o.d -o Source/displayinfo/display_info/CMakeFiles/display_info.dir/main.c.o -c /Users/runner/work/ThunderClientLibraries/ThunderClientLibraries/ThunderClientLibraries/Source/displayinfo/display_info/main.c
In file included from /Users/runner/work/ThunderClientLibraries/ThunderClientLibraries/ThunderClientLibraries/Source/displayinfo/display_info/main.c:20:
/Users/runner/work/ThunderClientLibraries/ThunderClientLibraries/ThunderClientLibraries/Source/displayinfo/display_info/../include/displayinfo.h:473:45: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
EXTERNAL bool displayinfo_is_atmos_supported();
                                            ^
                                             void
/Users/runner/work/ThunderClientLibraries/ThunderClientLibraries/ThunderClientLibraries/Source/displayinfo/display_info/../include/displayinfo.h:479:34: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
EXTERNAL void displayinfo_dispose();
                                 ^
                                  void
  • Loading branch information
VeithMetro authored Nov 14, 2024
1 parent f07aa6a commit c98907d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/displayinfo/include/displayinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -470,13 +470,13 @@ EXTERNAL uint32_t displayinfo_height_in_centimeters( uint8_t* height);
* @param instance Instance of @ref displayinfo_type.
* @return true if Dolby ATMOS is enabled, false otherwise.
*/
EXTERNAL bool displayinfo_is_atmos_supported();
EXTERNAL bool displayinfo_is_atmos_supported(void);

/**
* @brief Close the cached open connection if it exists.
*
*/
EXTERNAL void displayinfo_dispose();
EXTERNAL void displayinfo_dispose(void);

#ifdef __cplusplus
} // extern "C"
Expand Down

0 comments on commit c98907d

Please sign in to comment.