warning: operation on ‘s’ may be undefined
Status: Beta
Brought to you by:
voisine
When user wants to compile with the : gcc -Wall -c ezxml.c -o ezxml get the following warning:
/////////////////////////////////////////////
root@debian:/home/mohsen/Downloads/ezxml# gcc -Wall -c ezxml.c -o ezxml
ezxml.c: In function ‘ezxml_internal_dtd’:
ezxml.c:364:26: warning: operation on ‘s’ may be undefined
[-Wsequence-point]
while ((n = ++s + strspn(s, EZXML_WS)) && n != '>') {
^
////////////////////////////////////////
But the above warning when can compile break....:
When user wants to compile with the : '-Werror -Wall'
I wrote the patch that solve the above problem:
patch -p0 < ezxml.patch