Skip to content

Commit

Permalink
[CR] Fixed some compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cyring committed Jul 9, 2024
1 parent c07a2e2 commit 4c4e5c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions aarch64/corefreqm.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Licenses: GPL2
*/

#define _GNU_SOURCE
#include <sys/ioctl.h>
#include <pthread.h>
#include <stdlib.h>
Expand Down
10 changes: 6 additions & 4 deletions aarch64/coretypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -662,10 +662,12 @@ enum OFFLINE
OS
};

typedef struct
{
unsigned int Q : 8-0,
R : 32-8;
typedef union {
struct
{
unsigned int Q : 8-0,
R : 32-8;
};
} COF_ST;

typedef struct
Expand Down
1 change: 1 addition & 0 deletions x86_64/corefreqm.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Licenses: GPL2
*/

#define _GNU_SOURCE
#include <sys/ioctl.h>
#include <pthread.h>
#include <stdlib.h>
Expand Down

0 comments on commit 4c4e5c7

Please sign in to comment.