Skip to content

Commit 30d097d

Browse files
committed
#4 - warnings
1 parent 4c9fe2f commit 30d097d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+101
-96
lines changed

expat/xmlparse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ generate_hash_secret_salt(XML_Parser parser) {
969969
return ENTROPY_DEBUG("fallback(4)", entropy * 2147483647);
970970
} else {
971971
return ENTROPY_DEBUG("fallback(8)",
972-
entropy * (unsigned long)2305843009213693951ULL);
972+
entropy * (unsigned long)2305843009213693951UL);
973973
}
974974
#endif
975975
}

localisation/NSFormat.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: NSFormat.cpp,v 1.7 2023/10/24 13:56:23 cvsuser Exp $
1+
/* $Id: NSFormat.cpp,v 1.8 2025/02/21 19:03:23 cvsuser Exp $
22
*
33
* NSLocalization - String.
44
*
@@ -897,7 +897,7 @@ next:;
897897
break;
898898
}
899899
}
900-
f->spec = ch;
900+
f->spec = (char)ch;
901901
f->flags = flags;
902902
f->ioflags = ioflags;
903903
f->end = fmt;
@@ -981,7 +981,7 @@ done: if (maxarg >= (int)argno) {
981981
#endif
982982
#ifdef PRINTF_WIDE_CHAR
983983
case T_WINT:
984-
arg->val.wintarg = va_arg(ap, int /*wint_t*/);
984+
arg->val.wintarg = (wint_t)va_arg(ap, int /*wint_t*/);
985985
break;
986986
case TP_WCHAR:
987987
arg->val.pwchararg = va_arg(ap, const wchar_t *);

localisation/NSFormat.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
// $Id: NSFormat.h,v 1.8 2023/10/17 12:33:56 cvsuser Exp $
2+
// $Id: NSFormat.h,v 1.9 2025/02/21 19:03:23 cvsuser Exp $
33
//
44
// NSLocalization - String
55
//
@@ -117,8 +117,8 @@ class NSFormat {
117117
struct Field {
118118
const char *start, *fmt, *end;
119119
unsigned short flags;
120-
short width_arg, width;
121-
short precision_arg, precision;
120+
int width_arg, width;
121+
int precision_arg, precision;
122122
int value_arg;
123123
ioflags_t ioflags;
124124
char spec;

src/AutoConfig.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// $Id: AutoConfig.cpp,v 1.20 2023/10/24 13:56:23 cvsuser Exp $
1+
// $Id: AutoConfig.cpp,v 1.21 2025/02/21 19:03:23 cvsuser Exp $
22
//
33
// AutoUpdater: configuration management.
44
//
55
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
66
//
7-
// Copyright (c) 2012 - 2023, Adam Young
7+
// Copyright (c) 2012 - 2025, Adam Young
88
//
99
// Permission is hereby granted, free of charge, to any person obtaining a copy
1010
// of this software and associated documentation files (the "Software"), to deal

src/AutoConfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#ifndef AUTOCONFIG_H_INCLUDED
22
#define AUTOCONFIG_H_INCLUDED
3-
// $Id: AutoConfig.h,v 1.16 2023/10/17 12:33:56 cvsuser Exp $
3+
// $Id: AutoConfig.h,v 1.17 2025/02/21 19:03:23 cvsuser Exp $
44
//
55
// AutoUpdater: configuration management.
66
//
77
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
88
//
9-
// Copyright (c) 2012 - 2023, Adam Young
9+
// Copyright (c) 2012 - 2025, Adam Young
1010
//
1111
// Permission is hereby granted, free of charge, to any person obtaining a copy
1212
// of this software and associated documentation files (the "Software"), to deal

src/AutoConsole.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// $Id: AutoConsole.cpp,v 1.14 2023/10/24 13:56:23 cvsuser Exp $
1+
// $Id: AutoConsole.cpp,v 1.15 2025/02/21 19:03:23 cvsuser Exp $
22
//
33
// AutoUpdater: console interface.
44
//
55
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
66
//
7-
// Copyright (c) 2012 - 2023, Adam Young
7+
// Copyright (c) 2012 - 2025, Adam Young
88
//
99
// Permission is hereby granted, free of charge, to any person obtaining a copy
1010
// of this software and associated documentation files (the "Software"), to deal

src/AutoConsole.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#ifndef AUTOCONSOLE_H_INCLUDED
22
#define AUTOCONSOLE_H_INCLUDED
3-
// $Id: AutoConsole.h,v 1.7 2023/10/17 12:33:57 cvsuser Exp $
3+
// $Id: AutoConsole.h,v 1.8 2025/02/21 19:03:23 cvsuser Exp $
44
//
55
// AutoUpdater: console interface.
66
//
77
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
88
//
9-
// Copyright (c) 2012 - 2023, Adam Young
9+
// Copyright (c) 2012 - 2025, Adam Young
1010
//
1111
// Permission is hereby granted, free of charge, to any person obtaining a copy
1212
// of this software and associated documentation files (the "Software"), to deal

src/AutoDialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// $Id: AutoDialog.cpp,v 1.17 2023/10/24 13:56:23 cvsuser Exp $
1+
// $Id: AutoDialog.cpp,v 1.18 2025/02/21 19:03:23 cvsuser Exp $
22
//
33
// AutoUpdater: dialog interface
44
//
55
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
66
//
7-
// Copyright (c) 2012 - 2023, Adam Young
7+
// Copyright (c) 2012 - 2025, Adam Young
88
//
99
// Permission is hereby granted, free of charge, to any person obtaining a copy
1010
// of this software and associated documentation files (the "Software"), to deal

src/AutoDialog.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#ifndef AUTODIALOG_H_INCLUDED
22
#define AUTODIALOG_H_INCLUDED
3-
// $Id: AutoDialog.h,v 1.10 2023/10/24 13:56:23 cvsuser Exp $
3+
// $Id: AutoDialog.h,v 1.11 2025/02/21 19:03:23 cvsuser Exp $
44
//
55
// AutoUpdater: dialog interface.
66
//
77
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
88
//
9-
// Copyright (c) 2012 - 2023, Adam Young
9+
// Copyright (c) 2012 - 2025, Adam Young
1010
//
1111
// Permission is hereby granted, free of charge, to any person obtaining a copy
1212
// of this software and associated documentation files (the "Software"), to deal

src/AutoDownLoad.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// $Id: AutoDownLoad.cpp,v 1.21 2023/10/24 13:56:23 cvsuser Exp $
1+
// $Id: AutoDownLoad.cpp,v 1.22 2025/02/21 19:03:23 cvsuser Exp $
22
//
33
// AutoUpdater: download/inet functionality.
44
//
55
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
66
//
7-
// Copyright (c) 2012 - 2023, Adam Young
7+
// Copyright (c) 2012 - 2025, Adam Young
88
//
99
// Permission is hereby granted, free of charge, to any person obtaining a copy
1010
// of this software and associated documentation files (the "Software"), to deal
@@ -215,7 +215,7 @@ Download::cancel()
215215
//
216216

217217
FileDownloadSink::FileDownloadSink(const char *filename) :
218-
filename_(filename?filename:""), filesize_(-1), handle_(INVALID_HANDLE_VALUE)
218+
filename_(filename?filename:""), filesize_((size_t)-1), handle_(INVALID_HANDLE_VALUE)
219219
{
220220
}
221221

@@ -550,7 +550,7 @@ DownloadContext::execute()
550550
// request
551551
again:
552552
request_handle =
553-
::InternetOpenUrlA(session_handle, canonical_url, NULL, -1, dwFlags, (DWORD_PTR)this);
553+
::InternetOpenUrlA(session_handle, canonical_url, NULL, (DWORD)-1, dwFlags, (DWORD_PTR)this);
554554
if (! request_handle) {
555555
const DWORD ret = GetLastError();
556556
if (ERROR_IO_PENDING != ret) {

src/AutoDownLoad.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#ifndef AUTODOWNLOAD_H_INCLUDED
22
#define AUTODOWNLOAD_H_INCLUDED
3-
// $Id: AutoDownLoad.h,v 1.14 2023/10/17 12:33:57 cvsuser Exp $
3+
// $Id: AutoDownLoad.h,v 1.15 2025/02/21 19:03:23 cvsuser Exp $
44
//
55
// AutoUpdater: download/inet functionality.
66
//
77
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
88
//
9-
// Copyright (c) 2012 - 2023, Adam Young
9+
// Copyright (c) 2012 - 2025, Adam Young
1010
//
1111
// Permission is hereby granted, free of charge, to any person obtaining a copy
1212
// of this software and associated documentation files (the "Software"), to deal

src/AutoError.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// $Id: AutoError.cpp,v 1.13 2023/10/17 12:33:57 cvsuser Exp $
1+
// $Id: AutoError.cpp,v 1.14 2025/02/21 19:03:23 cvsuser Exp $
22
//
33
// AutoUpdater: exception interface.
44
//
55
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
66
//
7-
// Copyright (c) 2012 - 2023, Adam Young
7+
// Copyright (c) 2012 - 2025, Adam Young
88
//
99
// Permission is hereby granted, free of charge, to any person obtaining a copy
1010
// of this software and associated documentation files (the "Software"), to deal

src/AutoError.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#ifndef AUTOERROR_H_INCLUDED
22
#define AUTOERROR_H_INCLUDED
3-
// $Id: AutoError.h,v 1.11 2023/10/17 12:33:57 cvsuser Exp $
3+
// $Id: AutoError.h,v 1.12 2025/02/21 19:03:23 cvsuser Exp $
44
//
55
// AutoUpdater: exception interface.
66
//
77
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
88
//
9-
// Copyright (c) 2012 - 2023, Adam Young
9+
// Copyright (c) 2012 - 2025, Adam Young
1010
//
1111
// Permission is hereby granted, free of charge, to any person obtaining a copy
1212
// of this software and associated documentation files (the "Software"), to deal

src/AutoLogger.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// $Id: AutoLogger.cpp,v 1.20 2023/10/24 13:56:23 cvsuser Exp $
1+
// $Id: AutoLogger.cpp,v 1.21 2025/02/21 19:03:23 cvsuser Exp $
22
//
33
// AutoUpdater: logger.
44
//
55
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
66
//
7-
// Copyright (c) 2012 - 2023, Adam Young
7+
// Copyright (c) 2012 - 2025, Adam Young
88
//
99
// Permission is hereby granted, free of charge, to any person obtaining a copy
1010
// of this software and associated documentation files (the "Software"), to deal

src/AutoLogger.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#ifndef AUTOLOGGER_H_INCLUDED
22
#define AUTOLOGGER_H_INCLUDED
3-
// $Id: AutoLogger.h,v 1.16 2023/10/24 13:56:23 cvsuser Exp $
3+
// $Id: AutoLogger.h,v 1.17 2025/02/21 19:03:23 cvsuser Exp $
44
//
55
// AutoUpdater: logger.
66
//
77
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
88
//
9-
// Copyright (c) 2012 - 2023, Adam Young
9+
// Copyright (c) 2012 - 2025, Adam Young
1010
//
1111
// Permission is hereby granted, free of charge, to any person obtaining a copy
1212
// of this software and associated documentation files (the "Software"), to deal

src/AutoManifest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// $Id: AutoManifest.cpp,v 1.15 2023/10/24 13:56:23 cvsuser Exp $
1+
// $Id: AutoManifest.cpp,v 1.16 2025/02/21 19:03:23 cvsuser Exp $
22
//
33
// AutoUpdater: Update manifest.
44
//
55
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
66
//
7-
// Copyright (c) 2012 - 2023, Adam Young
7+
// Copyright (c) 2012 - 2025, Adam Young
88
//
99
// Permission is hereby granted, free of charge, to any person obtaining a copy
1010
// of this software and associated documentation files (the "Software"), to deal

src/AutoManifest.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#ifndef AUTOMANIFEST_H_INCLUDED
22
#define AUTOMANIFEST_H_INCLUDED
3-
// $Id: AutoManifest.h,v 1.11 2023/10/17 12:33:57 cvsuser Exp $
3+
// $Id: AutoManifest.h,v 1.12 2025/02/21 19:03:23 cvsuser Exp $
44
//
55
// AutoUpdater: application manifest.
66
//
77
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
88
//
9-
// Copyright (c) 2012 - 2023, Adam Young
9+
// Copyright (c) 2012 - 2025, Adam Young
1010
//
1111
// Permission is hereby granted, free of charge, to any person obtaining a copy
1212
// of this software and associated documentation files (the "Software"), to deal

src/AutoRelease.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//
44
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
55
//
6-
// Copyright (c) 2012 - 2023, Adam Young
6+
// Copyright (c) 2012 - 2025, Adam Young
77
//
88
// Permission is hereby granted, free of charge, to any person obtaining a copy
99
// of this software and associated documentation files (the "Software"), to deal

src/AutoString.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#ifndef AUTOSTRING_H_INCLUDED
22
#define AUTOSTRING_H_INCLUDED
3-
// $Id: AutoString.h,v 1.7 2023/10/17 12:33:57 cvsuser Exp $
3+
// $Id: AutoString.h,v 1.8 2025/02/21 19:03:23 cvsuser Exp $
44
//
55
// AutoUpdater: string
66
//
77
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
88
//
9-
// Copyright (c) 2012 - 2023, Adam Young
9+
// Copyright (c) 2012 - 2025, Adam Young
1010
//
1111
// Permission is hereby granted, free of charge, to any person obtaining a copy
1212
// of this software and associated documentation files (the "Software"), to deal

src/AutoThread.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#ifndef AUTOTHREAD_H_INCLUDED
22
#define AUTOTHREAD_H_INCLUDED
3-
// $Id: AutoThread.h,v 1.9 2023/10/17 12:33:57 cvsuser Exp $
3+
// $Id: AutoThread.h,v 1.10 2025/02/21 19:03:23 cvsuser Exp $
44
//
55
// AutoUpdater: misc definitions and functionality
66
//
77
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
88
//
9-
// Copyright (c) 2012 - 2023, Adam Young
9+
// Copyright (c) 2012 - 2025, Adam Young
1010
//
1111
// Permission is hereby granted, free of charge, to any person obtaining a copy
1212
// of this software and associated documentation files (the "Software"), to deal

src/AutoUpdater.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// $Id: AutoUpdater.cpp,v 1.29 2023/10/24 13:56:23 cvsuser Exp $
1+
// $Id: AutoUpdater.cpp,v 1.30 2025/02/21 19:03:23 cvsuser Exp $
22
//
33
// AutoUpdater: Application interface.
44
//
@@ -39,7 +39,7 @@
3939
//
4040
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
4141
//
42-
// Copyright (c) 2012 - 2023, Adam Young
42+
// Copyright (c) 2012 - 2025, Adam Young
4343
//
4444
// Permission is hereby granted, free of charge, to any person obtaining a copy
4545
// of this software and associated documentation files (the "Software"), to deal

src/AutoUpdater.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#ifndef AUTOUPDATER_H_INCLUDED
22
#define AUTOUPDATER_H_INCLUDED
3-
// $Id: AutoUpdater.h,v 1.19 2023/10/17 12:33:57 cvsuser Exp $
3+
// $Id: AutoUpdater.h,v 1.20 2025/02/21 19:03:23 cvsuser Exp $
44
//
55
// AutoUpdater: application interface.
66
//
77
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
88
//
9-
// Copyright (c) 2012 - 2023, Adam Young
9+
// Copyright (c) 2012 - 2025, Adam Young
1010
//
1111
// Permission is hereby granted, free of charge, to any person obtaining a copy
1212
// of this software and associated documentation files (the "Software"), to deal

src/AutoVersion.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// $Id: AutoVersion.cpp,v 1.11 2023/10/17 12:33:57 cvsuser Exp $
1+
// $Id: AutoVersion.cpp,v 1.12 2025/02/21 19:03:23 cvsuser Exp $
22
//
33
// AutoVersion: Version comparison.
44
//
55
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
66
//
7-
// Copyright (c) 2012 - 2023, Adam Young
7+
// Copyright (c) 2012 - 2025, Adam Young
88
//
99
// Permission is hereby granted, free of charge, to any person obtaining a copy
1010
// of this software and associated documentation files (the "Software"), to deal

src/AutoVersion.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#ifndef AUTOVERSION_H_INCLUDED
22
#define AUTOVERSION_H_INCLUDED
3-
// $Id: AutoVersion.h,v 1.11 2023/10/17 12:33:58 cvsuser Exp $
3+
// $Id: AutoVersion.h,v 1.12 2025/02/21 19:03:23 cvsuser Exp $
44
//
55
// AutoUpdater: Version comparison.
66
//
77
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
88
//
9-
// Copyright (c) 2012 - 2023, Adam Young
9+
// Copyright (c) 2012 - 2025, Adam Young
1010
//
1111
// Permission is hereby granted, free of charge, to any person obtaining a copy
1212
// of this software and associated documentation files (the "Software"), to deal

src/CProgressDialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// $Id: CProgressDialog.cpp,v 1.18 2023/10/24 13:56:23 cvsuser Exp $
1+
// $Id: CProgressDialog.cpp,v 1.19 2025/02/21 19:03:23 cvsuser Exp $
22
//
33
// AutoUpdater: Progress dialog.
44
//
55
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
66
//
7-
// Copyright (c) 2012 - 2023, Adam Young
7+
// Copyright (c) 2012 - 2025, Adam Young
88
//
99
// Permission is hereby granted, free of charge, to any person obtaining a copy
1010
// of this software and associated documentation files (the "Software"), to deal

src/CProgressDialog.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#pragma once
2-
// $Id: CProgressDialog.h,v 1.7 2023/10/17 12:33:58 cvsuser Exp $
2+
// $Id: CProgressDialog.h,v 1.8 2025/02/21 19:03:23 cvsuser Exp $
33
//
44
// AutoUpdater: progress dialog.
55
//
66
// This file is part of libappupdater (https://github.com/adamyg/libappupdater)
77
//
8-
// Copyright (c) 2012 - 2023, Adam Young
8+
// Copyright (c) 2012 - 2025, Adam Young
99
//
1010
// Permission is hereby granted, free of charge, to any person obtaining a copy
1111
// of this software and associated documentation files (the "Software"), to deal
@@ -95,4 +95,4 @@ class CProgressDialog {
9595
DWORD d_speed;
9696
};
9797

98-
//end
98+
//end

0 commit comments

Comments
 (0)