mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.4368: Amiga: a few compiler warnings
Problem: Amiga: a few compiler warnings. Solution: Adjust #ifdefs. Add "UNUSED". (Ola Söder, closes #9756, closes #9757)
This commit is contained in:
parent
4525a57afb
commit
e131496ebf
@ -154,7 +154,7 @@ mch_inchar(
|
|||||||
char_u *buf,
|
char_u *buf,
|
||||||
int maxlen,
|
int maxlen,
|
||||||
long time, // milliseconds
|
long time, // milliseconds
|
||||||
int tb_change_cnt)
|
int tb_change_cnt UNUSED)
|
||||||
{
|
{
|
||||||
int len;
|
int len;
|
||||||
long utime;
|
long utime;
|
||||||
@ -571,7 +571,7 @@ mch_input_isatty(void)
|
|||||||
void
|
void
|
||||||
fname_case(
|
fname_case(
|
||||||
char_u *name,
|
char_u *name,
|
||||||
int len) // buffer size, ignored here
|
int len UNUSED) // buffer size, ignored here
|
||||||
{
|
{
|
||||||
struct FileInfoBlock *fib;
|
struct FileInfoBlock *fib;
|
||||||
size_t flen;
|
size_t flen;
|
||||||
@ -837,7 +837,7 @@ mch_setperm(char_u *name, long perm)
|
|||||||
* Set hidden flag for "name".
|
* Set hidden flag for "name".
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
mch_hide(char_u *name)
|
mch_hide(char_u *name UNUSED)
|
||||||
{
|
{
|
||||||
// can't hide a file
|
// can't hide a file
|
||||||
}
|
}
|
||||||
@ -889,7 +889,7 @@ mch_mkdir(char_u *name)
|
|||||||
* Return -1 if unknown.
|
* Return -1 if unknown.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
mch_can_exe(char_u *name, char_u **path, int use_path)
|
mch_can_exe(char_u *name, char_u **path UNUSED, int use_path)
|
||||||
{
|
{
|
||||||
int exe = -1;
|
int exe = -1;
|
||||||
#ifdef __amigaos4__
|
#ifdef __amigaos4__
|
||||||
@ -942,7 +942,7 @@ mch_can_exe(char_u *name, char_u **path, int use_path)
|
|||||||
* NODE_OTHER: non-writable things
|
* NODE_OTHER: non-writable things
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
mch_nodetype(char_u *name)
|
mch_nodetype(char_u *name UNUSED)
|
||||||
{
|
{
|
||||||
// TODO
|
// TODO
|
||||||
return NODE_NORMAL;
|
return NODE_NORMAL;
|
||||||
@ -1490,7 +1490,7 @@ mch_call_shell(
|
|||||||
* trouble with lattice-c programs.
|
* trouble with lattice-c programs.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
mch_breakcheck(int force)
|
mch_breakcheck(int force UNUSED)
|
||||||
{
|
{
|
||||||
if (SetSignal(0L, (long)(SIGBREAKF_CTRL_C|SIGBREAKF_CTRL_D|SIGBREAKF_CTRL_E|SIGBREAKF_CTRL_F)) & SIGBREAKF_CTRL_C)
|
if (SetSignal(0L, (long)(SIGBREAKF_CTRL_C|SIGBREAKF_CTRL_D|SIGBREAKF_CTRL_E|SIGBREAKF_CTRL_F)) & SIGBREAKF_CTRL_C)
|
||||||
got_int = TRUE;
|
got_int = TRUE;
|
||||||
@ -1755,7 +1755,7 @@ mch_getenv(char_u *var)
|
|||||||
*/
|
*/
|
||||||
// ARGSUSED
|
// ARGSUSED
|
||||||
int
|
int
|
||||||
mch_setenv(char *var, char *value, int x)
|
mch_setenv(char *var, char *value, int x UNUSED)
|
||||||
{
|
{
|
||||||
#ifdef FEAT_ARP
|
#ifdef FEAT_ARP
|
||||||
if (!dos2)
|
if (!dos2)
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
* A few linux systems define outfuntype in termcap.h to be used as the third
|
* A few linux systems define outfuntype in termcap.h to be used as the third
|
||||||
* argument for tputs().
|
* argument for tputs().
|
||||||
*/
|
*/
|
||||||
# ifdef VMS
|
# if defined(VMS) || defined(AMIGA)
|
||||||
# define TPUTSFUNCAST (void (*)(unsigned int))
|
# define TPUTSFUNCAST (void (*)(unsigned int))
|
||||||
# else
|
# else
|
||||||
# ifdef HAVE_OUTFUNTYPE
|
# ifdef HAVE_OUTFUNTYPE
|
||||||
|
@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4368,
|
||||||
/**/
|
/**/
|
||||||
4367,
|
4367,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user