[GitHub] [xerces-c] rouault opened a new pull request #3 3: Fix -Wmemset-transposed-args warnings of clang++

GitBox <[email protected]>
Newsgroups gmane.text.xml.xerces-c.devel
Message-ID <xerces-c.33.MDExOlB1bGxSZXF1ZXN0NzIxNjMxNTQy.gitbox@gitbox.apache.org>
rouault opened a new pull request #33:
URL: https://github.com/apache/xerces-c/pull/33


   Fixes:
   xercesc/util/XMLChTranscoder.cpp:73:23: warning: setting buffer to a 'sizeof' expression; did you mean to transpose the last two arguments? [-Wmemset-transposed-args]
       memset(charSizes, sizeof(XMLCh), countToDo);
                         ^
   xercesc/util/XMLChTranscoder.cpp:73:23: note: cast the second argument to 'int' to silence
   
   and
   
   xercesc/util/XMLUTF16Transcoder.cpp:114:23: warning: setting buffer to a 'sizeof' expression; did you mean to transpose the last two arguments? [-Wmemset-transposed-args]
       memset(charSizes, sizeof(UTF16Ch), countToDo);
                         ^
   xercesc/util/XMLUTF16Transcoder.cpp:114:23: note: cast the second argument to 'int' to silence
   1 warning generated.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.