Skip to content

Commit

Permalink
Add nonstring compiler attribute
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Gladkov <legion@kernel.org>
  • Loading branch information
legionus committed Oct 11, 2024
1 parent d93155c commit c02a885
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/include/kbd/keymap/array.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
* @details The array is designed to store an arbitrary number of similar items.
*/
struct lk_array {
char *array; /**< Data pointer. */
ssize_t memb; /**< One element size. */
ssize_t count; /**< Number of elements. */
ssize_t total; /**< Total number of allocated elements. */
char *array KBD_ATTR_NONSTRING; /**< Data pointer. */
ssize_t memb; /**< One element size. */
ssize_t count; /**< Number of elements. */
ssize_t total; /**< Total number of allocated elements. */
};

int lk_array_init(struct lk_array *a, ssize_t memb, ssize_t size);
Expand Down
8 changes: 4 additions & 4 deletions src/include/kbd/kfont.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
#define PSF1_STARTSEQ 0xFFFE

struct psf1_header {
unsigned char magic[2]; /* Magic number */
unsigned char mode; /* PSF font mode */
unsigned char charsize; /* Character size */
unsigned char magic[2] KBD_ATTR_NONSTRING; /* Magic number */
unsigned char mode; /* PSF font mode */
unsigned char charsize; /* Character size */
};

/*
Expand All @@ -75,7 +75,7 @@ struct psf1_header {
#define PSF2_MAGIC3 0x86

struct psf2_header {
unsigned char magic[4];
unsigned char magic[4] KBD_ATTR_NONSTRING;
unsigned int version;
unsigned int headersize; /* offset of bitmaps in file */
unsigned int flags;
Expand Down

0 comments on commit c02a885

Please sign in to comment.