Skip to content

samples/admin/secdom/secdom.c contains implicit type casts #54

Closed
@Leyrer-PNP

Description

@Leyrer-PNP
secdom.c:455:17: warning: conversion from 'long unsigned int' to 'WORD' {aka 'short unsigned int'} may change value [-Wconversion]
  455 |     ValueLength -= sizeof(WORD);
      |     ~~~~~~~~~~~~^~~~~~~~~~~~~~~
secdom.c:491:35: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
  491 |         *pInfoLen = strlen(*pInfo)+1;
      |                     ~~~~~~~~~~~~~~^~

Casts should be made explicit to get rid of compiler warnings.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions