conn_init: set unused attribute for unused param
pEndOfCfg is unused, and self assigning is an error (with Werror) in Clang. Set this parameter as unused instead. Change-Id: Ifea8a44579ef842ceed4837791a5a5142d0e3bc4
This commit is contained in:
parent
f9a3df445d
commit
c000d8c682
|
@ -464,7 +464,8 @@ void wfc_util_fset_string(char *pFileName, char *pEndOfCfg, char *pSTagString, c
|
|||
* return : it will return the length of the stored string value if procedure is success
|
||||
* or will return 0 if not.
|
||||
*/
|
||||
int wfc_util_fget_string(char *pFileName, char *pEndOfCfg, char *pSTagString, char *pETagString, char *pValueStringBuff, int stringBuffLength)
|
||||
int wfc_util_fget_string(char *pFileName, char *pEndOfCfg __attribute__((unused)), char *pSTagString,
|
||||
char *pETagString, char *pValueStringBuff, int stringBuffLength)
|
||||
{
|
||||
int result = 0;
|
||||
int fd;
|
||||
|
@ -472,9 +473,6 @@ int wfc_util_fget_string(char *pFileName, char *pEndOfCfg, char *pSTagString, ch
|
|||
char *pReadBuff = NULL;
|
||||
char *pSPointer = NULL, *pETagPointer = NULL, *pSValuePointer = NULL;
|
||||
|
||||
/* unused parameter*/
|
||||
pEndOfCfg = pEndOfCfg;
|
||||
|
||||
fd = open( pFileName, O_RDONLY );
|
||||
|
||||
if( fd >= 0 ) {
|
||||
|
|
Loading…
Reference in New Issue