Page MenuHome GnuPG

Adding 'int' to a string does not append to the string
Closed, ResolvedPublic

Description

On the wish list for a clean compile... (But it may be a bug, too).


fipsdrv.c:1757:43: warning: adding 'int' to a string does not append to the

string [-Wstring-plus-int]
l2 = gcry_sexp_find_token (l1, "pqg"+idx, 1);
                               ~~~~~^~~~

fipsdrv.c:1757:43: note: use array indexing to silence this warning

l2 = gcry_sexp_find_token (l1, "pqg"+idx, 1);
                                    ^
                               &    [   ]

Event Timeline

Sure it does not. This is C! What a plain silly warning.

werner claimed this task.
werner added a project: Not A Bug.