Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

saveds/fbaserel warning with gcc6 #3

Open
wawatok opened this issue Jul 2, 2019 · 2 comments
Open

saveds/fbaserel warning with gcc6 #3

wawatok opened this issue Jul 2, 2019 · 2 comments

Comments

@wawatok
Copy link
Contributor

wawatok commented Jul 2, 2019

compiing m68k target (make OS=os3) with m68k-amigaos-gcc (GCC) 6.5.0b
i encounter a number of warnings like that:
private.h:247:126: warning: `saveds' attribute is only usable with fbaserel [-Wattributes]
d2, LONG), REG(d3, LONG flags), REG(a0, struct BitMap *));

perhaps -fbaserel should be added to gcc option, eventually after compiler/version detection.

@wawatok
Copy link
Contributor Author

wawatok commented Jul 2, 2019

other than that there is also a number of:
../include/mccinit.c:712:37: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
if((DOSBase = (struct DosLibrary*)OpenLibrary("dos.library", 39)) &&
this is probably not critical, but i can provide a whole log of these if necessary

@wawatok
Copy link
Contributor Author

wawatok commented Jul 2, 2019

fwiw, here is a compile log after -fbaserel has been added to mcc and mcp cflags:

In file included from library.c:85:0:
../include/mccinit.c: In function 'mccLibInit':
../include/mccinit.c:712:37: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
   if((DOSBase = (struct DosLibrary*)OpenLibrary("dos.library", 39)) &&
                                     ^~~~~~~~~~~
../include/mccinit.c:713:34: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
      (GfxBase = (struct GfxBase*)OpenLibrary("graphics.library", 39)) &&
                                  ^~~~~~~~~~~
../include/mccinit.c:714:46: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
      (IntuitionBase = (struct IntuitionBase*)OpenLibrary("intuition.library", 39)) &&
                                              ^~~~~~~~~~~
../include/mccinit.c:715:27: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
      (UtilityBase = (APTR)OpenLibrary("utility.library", 39)))
                           ^~~~~~~~~~~
../include/mccinit.c:731:25: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
     if((MUIMasterBase = OpenLibrary(MUIMASTER_NAME, MASTERVERSION)) &&
                         ^~~~~~~~~~~
library.c: In function 'ClassInit':
library.c:92:20: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
   if((LocaleBase = OpenLibrary("locale.library", 38)) &&
                    ^~~~~~~~~~~
library.c:95:22: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
     if((LayersBase = OpenLibrary("layers.library", 36)) &&
                      ^~~~~~~~~~~
library.c:98:24: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
       if((KeymapBase = OpenLibrary("keymap.library", 37)) &&
                        ^~~~~~~~~~~
library.c:101:28: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
         if((DiskfontBase = OpenLibrary("diskfont.library", 38)) &&
                            ^~~~~~~~~~~
library.c:105:30: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
           if((CyberGfxBase = OpenLibrary("cybergraphics.library", 41)) &&
                              ^~~~~~~~~~~
  CC AllocBitMap.c
  CC AllocFunctions.c
  CC ClipboardServer.c
ClipboardServer.c: In function 'StringToClipboard':
ClipboardServer.c:88:57: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
     sd.sd_Length = (length > 0) ? length : (LONG)strlen(str);
                                                         ^~~
In file included from ClipboardServer.c:23:0:
/opt/amiga/m68k-amigaos/clib2/include/string.h:66:25: note: expected 'const char *' but argument is of type 'STRPTR {aka unsigned char *}'
 extern __stdargs size_t strlen(const char *s);
                         ^~~~~~
ClipboardServer.c:93:27: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
       msg.mn_Node.ln_Name = (STRPTR)&sd;
                           ^
ClipboardServer.c: In function 'ClipboardToString':
ClipboardServer.c:130:25: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
     msg.mn_Node.ln_Name = (STRPTR)&sd;
                         ^
ClipboardServer.c: In function 'ClipboardServer':
ClipboardServer.c:327:22: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
   if((IFFParseBase = OpenLibrary("iffparse.library", 36)) != NULL)
                      ^~~~~~~~~~~
ClipboardServer.c:346:28: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
       msg->mn_Node.ln_Name = (STRPTR)mp;
                            ^
ClipboardServer.c: In function 'StartClipboardServer':
ClipboardServer.c:464:27: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
       msg.mn_Node.ln_Name = (STRPTR)NULL;
                           ^
ClipboardServer.c: In function 'ShutdownClipboardServer':
ClipboardServer.c:499:25: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
     msg.mn_Node.ln_Name = (STRPTR)&sd;
                         ^
  CC Dispatcher.c
Dispatcher.c: In function 'mAskMinMax':
Dispatcher.c:363:27: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
     width = data->Width * TextLength(&data->rport, "n", 1);
                           ^~~~~~~~~~
  CC FileNameCompl.c
FileNameCompl.c: In function 'Overwrite':
FileNameCompl.c:88:47: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
   result = OverwriteA(text, x, length, strlen(text), data);
                                               ^~~~
In file included from FileNameCompl.c:23:0:
/opt/amiga/m68k-amigaos/clib2/include/string.h:66:25: note: expected 'const char *' but argument is of type 'STRPTR {aka unsigned char *}'
 extern __stdargs size_t strlen(const char *s);
                         ^~~~~~
FileNameCompl.c: In function 'InsertFileName':
FileNameCompl.c:183:13: warning: pointer targets in passing argument 1 of 'Overwrite' differ in signedness [-Wpointer-sign]
   Overwrite(tmpname, namestart, data->BufferPos-namestart, data);
             ^~~~~~~
FileNameCompl.c:82:6: note: expected 'STRPTR {aka unsigned char *}' but argument is of type 'char *'
 BOOL Overwrite(STRPTR text, UWORD x, UWORD length, struct InstData *data)
      ^~~~~~~~~
FileNameCompl.c: In function 'FileNameComplete':
FileNameCompl.c:229:27: warning: pointer targets in passing argument 1 of 'VolumeStart' differ in signedness [-Wpointer-sign]
         pos = VolumeStart(data->Contents, data->BufferPos);
                           ^~~~
FileNameCompl.c:94:6: note: expected 'STRPTR {aka unsigned char *}' but argument is of type 'char *'
 WORD VolumeStart(STRPTR text, WORD pos)
      ^~~~~~~~~~~
FileNameCompl.c:249:16: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
             if(Strnicmp(tmpBuffer, data->Contents+pos, cut) == 0)
                ^~~~~~~~
FileNameCompl.c:249:16: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
FileNameCompl.c:251:26: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
               volumeName = tmpBuffer;
                          ^
FileNameCompl.c:258:56: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
             if(OverwriteA(volumeName, pos, cut, strlen(volumeName)+1, data))
                                                        ^~~~~~~~~~
In file included from FileNameCompl.c:23:0:
/opt/amiga/m68k-amigaos/clib2/include/string.h:66:25: note: expected 'const char *' but argument is of type 'STRPTR {aka unsigned char *}'
 extern __stdargs size_t strlen(const char *s);
                         ^~~~~~
FileNameCompl.c:309:18: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
               if(ParsePatternNoCase(pattern, tokenized, sizeof(tokenized)) != -1)
                  ^~~~~~~~~~~~~~~~~~
FileNameCompl.c:312:29: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
               if((dirlock = Lock(data->Contents+pos, ACCESS_READ)))
                             ^~~~
  CC GetSetAttrs.c
GetSetAttrs.c: In function 'mGet':
GetSetAttrs.c:70:7: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
       StrToLong(data->Contents, (LONG *)&ti_Data);
       ^~~~~~~~~
GetSetAttrs.c: In function 'mSet':
GetSetAttrs.c:199:22: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
         data->Accept = (STRPTR)ti_Data;
                      ^
GetSetAttrs.c:236:46: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign]
           circular = !strcmp(data->Contents, new_str);
                                              ^~~~~~~
In file included from GetSetAttrs.c:24:0:
/opt/amiga/m68k-amigaos/clib2/include/string.h:61:22: note: expected 'const char *' but argument is of type 'STRPTR {aka unsigned char *}'
 extern __stdargs int strcmp(const char *s1, const char * s2);
                      ^~~~~~
GetSetAttrs.c:237:61: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
           if(circular == FALSE && data->MaxLength && strlen(new_str) > data->MaxLength)
                                                             ^~~~~~~
In file included from GetSetAttrs.c:24:0:
/opt/amiga/m68k-amigaos/clib2/include/string.h:66:25: note: expected 'const char *' but argument is of type 'STRPTR {aka unsigned char *}'
 extern __stdargs size_t strlen(const char *s);
                         ^~~~~~
GetSetAttrs.c:238:49: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign]
             circular = !strncmp(data->Contents, new_str, data->MaxLength);
                                                 ^~~~~~~
In file included from GetSetAttrs.c:24:0:
/opt/amiga/m68k-amigaos/clib2/include/string.h:62:22: note: expected 'const char *' but argument is of type 'STRPTR {aka unsigned char *}'
 extern __stdargs int strncmp(const char *s1, const char *s2, size_t n);
                      ^~~~~~~
GetSetAttrs.c:248:33: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
             LONG extra = strlen(new_str)-strlen(data->Contents);
                                 ^~~~~~~
In file included from GetSetAttrs.c:24:0:
/opt/amiga/m68k-amigaos/clib2/include/string.h:66:25: note: expected 'const char *' but argument is of type 'STRPTR {aka unsigned char *}'
 extern __stdargs size_t strlen(const char *s);
                         ^~~~~~
GetSetAttrs.c:258:39: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness [-Wpointer-sign]
               strlcpy(data->Contents, new_str, ContentStringSize(data->Contents));
                                       ^~~~~~~
In file included from GetSetAttrs.c:24:0:
/opt/amiga/m68k-amigaos/clib2/include/string.h:132:25: note: expected 'const char *' but argument is of type 'STRPTR {aka unsigned char *}'
 extern __stdargs size_t strlcpy(char *dst, const char *src, size_t siz);
                         ^~~~~~~
GetSetAttrs.c:329:22: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
         data->Reject = (STRPTR)ti_Data;
                      ^
GetSetAttrs.c:359:32: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
         data->InactiveContents = (STRPTR)ti_Data;
                                ^
  CC HandleInput.c
HandleInput.c: In function 'MySPrintf':
HandleInput.c:68:3: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
   RawDoFmt(fmt, args, (void (*)(void))PutCharProc, (STRPTR)buf);
   ^~~~~~~~
HandleInput.c: In function 'AlignOffset':
HandleInput.c:100:19: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
     STRPTR text = data->Contents+data->DisplayPos;
                   ^~~~
HandleInput.c:101:31: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
     UWORD  StrLength = strlen(text);
                               ^~~~
In file included from HandleInput.c:23:0:
/opt/amiga/m68k-amigaos/clib2/include/string.h:66:25: note: expected 'const char *' but argument is of type 'STRPTR {aka unsigned char *}'
 extern __stdargs size_t strlen(const char *s);
                         ^~~~~~
HandleInput.c:109:55: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
     crsr_width = isFlagSet(data->Flags, FLG_Active) ? TextLength(&data->rport, (*(data->Contents+data->BufferPos) == '\0') ? (char *)"n" : (char *)(data->Contents+data->BufferPos), 1) : 0;
                                                       ^~~~~~~~~~
HandleInput.c: In function 'CopyBlock':
HandleInput.c:283:23: warning: pointer targets in passing argument 1 of 'StringToClipboard' differ in signedness [-Wpointer-sign]
     StringToClipboard(&data->Contents[Blk_Start], Blk_Width);
                       ^
In file included from HandleInput.c:37:0:
private.h:263:6: note: expected 'STRPTR {aka unsigned char *}' but argument is of type 'char *'
 void StringToClipboard(STRPTR str, LONG length);
      ^~~~~~~~~~~~~~~~~
HandleInput.c: In function 'UndoRedo':
HandleInput.c:353:15: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
   oldcontents = data->Contents;
               ^
HandleInput.c:355:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
   data->Undo = oldcontents;
              ^
HandleInput.c: In function 'RevertToOriginal':
HandleInput.c:379:15: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
   oldcontents = data->Contents;
               ^
HandleInput.c:381:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
   data->Original = oldcontents;
                  ^
HandleInput.c: In function 'ToggleCaseWord':
HandleInput.c:410:25: warning: pointer targets in passing argument 1 of 'NextWord' differ in signedness [-Wpointer-sign]
   UWORD Stop = NextWord(data->Contents, data->BufferPos, data->locale);
                         ^~~~
HandleInput.c:213:14: note: expected 'STRPTR {aka unsigned char *}' but argument is of type 'char *'
 static UWORD NextWord(STRPTR text, UWORD x, struct Locale *locale)
              ^~~~~~~~
HandleInput.c: In function 'IncreaseNearNumber':
HandleInput.c:440:15: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
     if((cut = StrToLong(data->Contents+pos, (LONG *)&res)))
               ^~~~~~~~~
HandleInput.c:448:17: warning: pointer targets in passing argument 1 of 'Overwrite' differ in signedness [-Wpointer-sign]
       Overwrite(string, pos, cut, data);
                 ^~~~~~
In file included from HandleInput.c:37:0:
private.h:237:6: note: expected 'STRPTR {aka unsigned char *}' but argument is of type 'char *'
 BOOL Overwrite(STRPTR, UWORD, UWORD, struct InstData *);
      ^~~~~~~~~
HandleInput.c: In function 'DecreaseNearNumber':
HandleInput.c:469:15: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
     if((cut = StrToLong(data->Contents+pos, (LONG *)&res)))
               ^~~~~~~~~
HandleInput.c:481:19: warning: pointer targets in passing argument 1 of 'Overwrite' differ in signedness [-Wpointer-sign]
         Overwrite(string, pos, cut, data);
                   ^~~~~~
In file included from HandleInput.c:37:0:
private.h:237:6: note: expected 'STRPTR {aka unsigned char *}' but argument is of type 'char *'
 BOOL Overwrite(STRPTR, UWORD, UWORD, struct InstData *);
      ^~~~~~~~~
HandleInput.c: In function 'HexToDec':
HandleInput.c:514:15: warning: pointer targets in passing argument 1 of 'Overwrite' differ in signedness [-Wpointer-sign]
     Overwrite(string, pos, cut, data);
               ^~~~~~
In file included from HandleInput.c:37:0:
private.h:237:6: note: expected 'STRPTR {aka unsigned char *}' but argument is of type 'char *'
 BOOL Overwrite(STRPTR, UWORD, UWORD, struct InstData *);
      ^~~~~~~~~
HandleInput.c: In function 'DecToHex':
HandleInput.c:534:15: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
     if((cut = StrToLong(data->Contents+pos, (LONG *)&res)))
               ^~~~~~~~~
HandleInput.c:540:17: warning: pointer targets in passing argument 1 of 'Overwrite' differ in signedness [-Wpointer-sign]
       Overwrite(string, pos, cut, data);
                 ^~~~~~
In file included from HandleInput.c:37:0:
private.h:237:6: note: expected 'STRPTR {aka unsigned char *}' but argument is of type 'char *'
 BOOL Overwrite(STRPTR, UWORD, UWORD, struct InstData *);
      ^~~~~~~~~
HandleInput.c: In function 'mHandleInput':
HandleInput.c:887:46: warning: pointer targets in passing argument 1 of 'NextWord' differ in signedness [-Wpointer-sign]
                   data->BufferPos = NextWord(data->Contents, data->BufferPos, data->locale);
                                              ^~~~
HandleInput.c:213:14: note: expected 'STRPTR {aka unsigned char *}' but argument is of type 'char *'
 static UWORD NextWord(STRPTR text, UWORD x, struct Locale *locale)
              ^~~~~~~~
HandleInput.c:913:46: warning: pointer targets in passing argument 1 of 'PrevWord' differ in signedness [-Wpointer-sign]
                   data->BufferPos = PrevWord(data->Contents, data->BufferPos, data->locale);
                                              ^~~~
HandleInput.c:227:14: note: expected 'STRPTR {aka unsigned char *}' but argument is of type 'char *'
 static UWORD PrevWord(STRPTR text, UWORD x, struct Locale *locale)
              ^~~~~~~~
HandleInput.c:947:45: warning: pointer targets in passing argument 1 of 'PrevWord' differ in signedness [-Wpointer-sign]
                     UWORD NewPos = PrevWord(data->Contents, data->BufferPos, data->locale);
                                             ^~~~
HandleInput.c:227:14: note: expected 'STRPTR {aka unsigned char *}' but argument is of type 'char *'
 static UWORD PrevWord(STRPTR text, UWORD x, struct Locale *locale)
              ^~~~~~~~
HandleInput.c:982:60: warning: pointer targets in passing argument 1 of 'NextWord' differ in signedness [-Wpointer-sign]
                     STRPTR start = data->Contents+NextWord(data->Contents, data->BufferPos, data->locale);
                                                            ^~~~
HandleInput.c:213:14: note: expected 'STRPTR {aka unsigned char *}' but argument is of type 'char *'
 static UWORD NextWord(STRPTR text, UWORD x, struct Locale *locale)
              ^~~~~~~~
HandleInput.c:982:36: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
                     STRPTR start = data->Contents+NextWord(data->Contents, data->BufferPos, data->locale);
                                    ^~~~
HandleInput.c:985:75: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
                     memmove(data->Contents+data->BufferPos, start, strlen(start)+1);
                                                                           ^~~~~
In file included from HandleInput.c:23:0:
/opt/amiga/m68k-amigaos/clib2/include/string.h:66:25: note: expected 'const char *' but argument is of type 'STRPTR {aka unsigned char *}'
 extern __stdargs size_t strlen(const char *s);
                         ^~~~~~
HandleInput.c:1035:37: warning: pointer targets in passing argument 2 of 'Accept' differ in signedness [-Wpointer-sign]
                        Accept(code, data->Accept) && Reject(code, data->Reject))
                                     ^~~~
HandleInput.c:152:13: note: expected 'STRPTR {aka unsigned char *}' but argument is of type 'char *'
 static BOOL Accept(UBYTE code, STRPTR accept)
             ^~~~~~
HandleInput.c:1035:67: warning: pointer targets in passing argument 2 of 'Reject' differ in signedness [-Wpointer-sign]
                        Accept(code, data->Accept) && Reject(code, data->Reject))
                                                                   ^~~~
HandleInput.c:130:13: note: expected 'STRPTR {aka unsigned char *}' but argument is of type 'char *'
 static BOOL Reject(UBYTE code, STRPTR reject)
             ^~~~~~
HandleInput.c:1355:50: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
             data->BufferPos = data->DisplayPos + TextFit(&data->rport, data->Contents+data->DisplayPos, StringLength-data->DisplayPos, &tExtend, NULL, 1, offset+1, _font(obj)->tf_YSize);
                                                  ^~~~~~~
HandleInput.c:1504:58: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
                     data->BufferPos = data->DisplayPos + TextFit(&data->rport, data->Contents+data->DisplayPos, StringLength-data->DisplayPos, &tExtend, NULL, 1, _mwidth(obj), _font(obj)->tf_YSize);
                                                          ^~~~~~~
HandleInput.c:1520:58: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
                     data->BufferPos = data->DisplayPos + TextFit(&data->rport, data->Contents+data->DisplayPos, StringLength-data->DisplayPos, &tExtend, NULL, 1, offset+1, _font(obj)->tf_YSize);
                                                          ^~~~~~~
HandleInput.c:1542:47: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
                   newpos = data->DisplayPos + TextFit(&data->rport, data->Contents+data->DisplayPos, StringLength-data->DisplayPos, &tExtend, NULL, 1, offset+1, _font(obj)->tf_YSize);
                                               ^~~~~~~
  CC InitConfig.c
InitConfig.c: In function 'InitConfig':
InitConfig.c:64:45: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness [-Wpointer-sign]
     strlcpy(data->InactiveBackgroundBuffer, (STRPTR)setting, sizeof(data->InactiveBackgroundBuffer));
                                             ^
In file included from InitConfig.c:23:0:
/opt/amiga/m68k-amigaos/clib2/include/string.h:132:25: note: expected 'const char *' but argument is of type 'unsigned char *'
 extern __stdargs size_t strlcpy(char *dst, const char *src, size_t siz);
                         ^~~~~~~
InitConfig.c:65:30: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
     data->InactiveBackground = data->InactiveBackgroundBuffer;
                              ^
InitConfig.c:75:43: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness [-Wpointer-sign]
     strlcpy(data->ActiveBackgroundBuffer, (STRPTR)setting, sizeof(data->ActiveBackgroundBuffer));
                                           ^
In file included from InitConfig.c:23:0:
/opt/amiga/m68k-amigaos/clib2/include/string.h:132:25: note: expected 'const char *' but argument is of type 'unsigned char *'
 extern __stdargs size_t strlcpy(char *dst, const char *src, size_t siz);
                         ^~~~~~~
InitConfig.c:76:28: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
     data->ActiveBackground = data->ActiveBackgroundBuffer;
                            ^
  CC Pointer.c
  CC PrintString.c
PrintString.c: In function 'AlphaText':
PrintString.c:99:3: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
   TextExtent(rp, txt, len, &te);
   ^~~~~~~~~~
PrintString.c:113:5: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
     Text(&_rp, txt, len);
     ^~~~
PrintString.c:119:7: warning: implicit declaration of function 'WritePixelArrayAlpha' [-Wimplicit-function-declaration]
       WritePixelArrayAlpha(pix, 1, 1, w*4, rp, rp->cp_x, rp->cp_y - rp->TxBaseline, te.te_Width, te.te_Height, alpha);
       ^~~~~~~~~~~~~~~~~~~~
PrintString.c: In function 'PrintString':
PrintString.c:148:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
   contents = data->Contents;
            ^
PrintString.c:149:22: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
   StrLength = strlen(contents);
                      ^~~~~~~~
In file included from PrintString.c:24:0:
/opt/amiga/m68k-amigaos/clib2/include/string.h:66:25: note: expected 'const char *' but argument is of type 'STRPTR {aka unsigned char *}'
 extern __stdargs size_t strlen(const char *s);
                         ^~~~~~
PrintString.c:162:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
     contents = data->InactiveContents;
              ^
PrintString.c:163:24: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
     StrLength = strlen(contents);
                        ^~~~~~~~
In file included from PrintString.c:24:0:
/opt/amiga/m68k-amigaos/clib2/include/string.h:66:25: note: expected 'const char *' but argument is of type 'STRPTR {aka unsigned char *}'
 extern __stdargs size_t strlen(const char *s);
                         ^~~~~~
PrintString.c:175:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
       c = &contents[data->BufferPos];
         ^
PrintString.c:179:18: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
     crsr_width = TextLength(rport, c, 1);
                  ^~~~~~~~~~
PrintString.c:312:28: warning: pointer targets in passing argument 2 of 'AlphaText' differ in signedness [-Wpointer-sign]
           AlphaText(rport, text, length, color, 0x80000000);
                            ^~~~
PrintString.c:92:13: note: expected 'const char *' but argument is of type 'STRPTR {aka unsigned char *}'
 static void AlphaText(struct RastPort *rp, const char *txt, LONG len, ULONG fgcolor, ULONG alpha)
             ^~~~~~~~~
  CC Debug.c
Debug.c: In function 'SetupDebug':
Debug.c:57:6: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
   if(GetVar("betterstring.mcc.debug", var, sizeof(var), 0) > 0)
      ^~~~~~
Debug.c:57:6: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant