Here is a little patch to correct a warning - a legitimate warning.
I looked at submitting a patch in the prescribed fashion, but frankly, the instructions were so complicated, that I decided I couldn't be bothered.
I think that should be addressed - it should be mutch easier for anyone to submit patches, or merge requests.
src/scintilla/lexers/LexMMIXAL.cxx
Index: wxscintilla/src/scintilla/lexers/LexMMIXAL.cxx
===================================================================
--- wxscintilla/src/scintilla/lexers/LexMMIXAL.cxx (revision 12450)
+++ wxscintilla/src/scintilla/lexers/LexMMIXAL.cxx (working copy)
@@ -103,7 +103,7 @@
char s[100];
sc.GetCurrent(s, sizeof(s));
if (*s == ':') { // ignore base prefix for match
- for (size_t i = 0; i != sizeof(s); ++i) {
+ for (size_t i = 0; i != sizeof(s[0]); ++i) {
*(s+i) = *(s+i+1);
}
}
Or use memmove(s, s+1, sizeof(s)-1)
Or use memmove(s, s+1, sizeof(s)-1)
s[100] = "123456789";
s[0] = '1'; ...; s[8] = '9'; s[last] = '\0';
char s[100]; //WCHAR s[100];
char s2[1000];
unsigned char_array_size_bytes = sizeof(s);
unsigned char char_size_bytes = sizeof(s[0]);
unsigned char_counts = char_array_size_bytes /char_size_bytes;
memmove(s2+5, s, strlen(s)+1)
- https://www.geeksforgeeks.org/write-memcpy/ (https://www.geeksforgeeks.org/write-memcpy/)