Fixed + enabled all compiler warnings

This commit is contained in:
Jordon Brooks 2024-06-06 18:15:51 +01:00
parent 6b90c9f76a
commit c68c039c70
Signed by: jordon
GPG key ID: DBD9758CD53E786A
16 changed files with 72 additions and 22 deletions

View file

@ -26,5 +26,5 @@
#endif
#endif
#else
#define HARMONYLINKLIB_API
#define HARMONYLINK_API
#endif

View file

@ -22,7 +22,7 @@ namespace LibHarmonyLink {
extern "C" {
#endif
HARMONYLINK_API bool HarmonyLink_Init(void);
HARMONYLINK_API bool HL_Init(void);
#ifdef __cplusplus
}

View file

@ -27,9 +27,9 @@ namespace LibHarmonyLink {
extern "C" {
#endif
typedef struct {
char *VendorID;
char *Model_Name;
typedef struct FCPUInfo {
char* VendorID;
char* Model_Name;
unsigned int Physical_Cores;
unsigned int Logical_Cores;
StringArray flagsInfo;

View file

@ -28,7 +28,7 @@ namespace LibHarmonyLink {
extern "C" {
#endif
typedef struct {
typedef struct StringArray {
char **data; // Array of strings (flags)
size_t FlagsCount; // Number of flags
size_t AllocatedSize; // Number of allocated slots

View file

@ -25,4 +25,4 @@ wchar_t *convertToWideChar(const char *str);
#ifdef __cplusplus
}
}
#endif
#endif