summaryrefslogtreecommitdiff
path: root/plugins/NewsAggregator
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-12-12 16:43:26 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-12-12 16:43:26 +0000
commit17fa47e9d4255dd2034b7d28fc41ffd756197d24 (patch)
tree2c1ec7042180cd728eb56527195f3989ca938714 /plugins/NewsAggregator
parent6dc4fd2f8e7505ee9ed4e58401b1f3b7c3438efd (diff)
NewsAggregator: changed warning lavel to w4
git-svn-id: http://svn.miranda-ng.org/main/trunk@11349 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewsAggregator')
-rw-r--r--plugins/NewsAggregator/NewsAggregator_12.vcxproj8
-rw-r--r--plugins/NewsAggregator/Src/ExportImport.cpp4
-rw-r--r--plugins/NewsAggregator/Src/NewsAggregator.cpp4
-rw-r--r--plugins/NewsAggregator/Src/Services.cpp8
-rw-r--r--plugins/NewsAggregator/Src/Update.cpp4
-rw-r--r--plugins/NewsAggregator/Src/Utils.cpp17
6 files changed, 15 insertions, 30 deletions
diff --git a/plugins/NewsAggregator/NewsAggregator_12.vcxproj b/plugins/NewsAggregator/NewsAggregator_12.vcxproj
index 660be44706..751d0f6642 100644
--- a/plugins/NewsAggregator/NewsAggregator_12.vcxproj
+++ b/plugins/NewsAggregator/NewsAggregator_12.vcxproj
@@ -79,7 +79,7 @@
<AdditionalIncludeDirectories>..\..\include;..\..\plugins\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <WarningLevel>Level3</WarningLevel>
+ <WarningLevel>Level4</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<DisableSpecificWarnings>4996</DisableSpecificWarnings>
<PrecompiledHeader>Use</PrecompiledHeader>
@@ -106,7 +106,7 @@
<AdditionalIncludeDirectories>..\..\include;..\..\plugins\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <WarningLevel>Level3</WarningLevel>
+ <WarningLevel>Level4</WarningLevel>
<DisableSpecificWarnings>4996</DisableSpecificWarnings>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>Common.h</PrecompiledHeaderFile>
@@ -131,7 +131,7 @@
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<AdditionalIncludeDirectories>..\..\include;..\..\plugins\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <WarningLevel>Level3</WarningLevel>
+ <WarningLevel>Level4</WarningLevel>
<DisableSpecificWarnings>4996</DisableSpecificWarnings>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>Common.h</PrecompiledHeaderFile>
@@ -158,7 +158,7 @@
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<AdditionalIncludeDirectories>..\..\include;..\..\plugins\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <WarningLevel>Level3</WarningLevel>
+ <WarningLevel>Level4</WarningLevel>
<DisableSpecificWarnings>4996</DisableSpecificWarnings>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>Common.h</PrecompiledHeaderFile>
diff --git a/plugins/NewsAggregator/Src/ExportImport.cpp b/plugins/NewsAggregator/Src/ExportImport.cpp
index 894aebc04e..63a8f28e42 100644
--- a/plugins/NewsAggregator/Src/ExportImport.cpp
+++ b/plugins/NewsAggregator/Src/ExportImport.cpp
@@ -457,7 +457,7 @@ INT_PTR CALLBACK DlgProcImportOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM
return FALSE;
}
-INT_PTR CALLBACK DlgProcExportOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
+INT_PTR CALLBACK DlgProcExportOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM)
{
HWND FeedsList = GetDlgItem(hwndDlg, IDC_FEEDSLIST);
HWND FeedsExportList = GetDlgItem(hwndDlg, IDC_FEEDSEXPORTLIST);
@@ -507,7 +507,7 @@ INT_PTR CALLBACK DlgProcExportOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM
HXML hXml = xi.createNode(_T("opml"), NULL, FALSE);
xi.addAttr(hXml, _T("version"), _T("1.0"));
HXML header = xi.addChild(hXml, _T("head"), NULL);
- HXML title = xi.addChild(header, _T("title"), _T("Miranda NG NewsAggregator plugin export"));
+ xi.addChild(header, _T("title"), _T("Miranda NG NewsAggregator plugin export"));
header = xi.addChild(hXml, _T("body"), NULL);
int count = SendMessage(FeedsExportList, LB_GETCOUNT, 0, 0);
diff --git a/plugins/NewsAggregator/Src/NewsAggregator.cpp b/plugins/NewsAggregator/Src/NewsAggregator.cpp
index 8a901910f0..cf05a5b469 100644
--- a/plugins/NewsAggregator/Src/NewsAggregator.cpp
+++ b/plugins/NewsAggregator/Src/NewsAggregator.cpp
@@ -43,13 +43,13 @@ PLUGININFOEX pluginInfoEx = {
{0x56cc3f29, 0xccbf, 0x4546, {0xa8, 0xba, 0x98, 0x56, 0x24, 0x8a, 0x41, 0x2a}}
};
-bool WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+bool WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID)
{
hInst = hinstDLL;
return TRUE;
}
-extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
return &pluginInfoEx;
}
diff --git a/plugins/NewsAggregator/Src/Services.cpp b/plugins/NewsAggregator/Src/Services.cpp
index 53fa224917..782c2ea88f 100644
--- a/plugins/NewsAggregator/Src/Services.cpp
+++ b/plugins/NewsAggregator/Src/Services.cpp
@@ -84,7 +84,7 @@ INT_PTR NewsAggrGetName(WPARAM wParam, LPARAM lParam)
return 1;
}
-INT_PTR NewsAggrGetCaps(WPARAM wp, LPARAM lp)
+INT_PTR NewsAggrGetCaps(WPARAM wp, LPARAM)
{
switch(wp) {
case PFLAGNUM_1:
@@ -126,7 +126,7 @@ INT_PTR NewsAggrGetStatus(WPARAM, LPARAM)
return g_nStatus;
}
-INT_PTR NewsAggrLoadIcon(WPARAM wParam, LPARAM lParam)
+INT_PTR NewsAggrLoadIcon(WPARAM wParam, LPARAM )
{
return (LOWORD(wParam) == PLI_PROTOCOL) ? (INT_PTR)CopyIcon(LoadIconEx("main", FALSE)) : 0;
}
@@ -144,7 +144,7 @@ INT_PTR NewsAggrGetInfo(WPARAM, LPARAM lParam)
return 0;
}
-INT_PTR CheckAllFeeds(WPARAM wParam, LPARAM lParam)
+INT_PTR CheckAllFeeds(WPARAM, LPARAM lParam)
{
for (MCONTACT hContact = db_find_first(MODULE); hContact; hContact = db_find_next(hContact, MODULE)) {
if (lParam && db_get_dw(hContact, MODULE, "UpdateTime", DEFAULT_UPDATE_TIME))
@@ -191,7 +191,7 @@ INT_PTR ExportFeeds(WPARAM, LPARAM)
return 0;
}
-INT_PTR CheckFeed(WPARAM hContact, LPARAM lParam)
+INT_PTR CheckFeed(WPARAM hContact, LPARAM)
{
if(IsMyContact(hContact))
UpdateListAdd(hContact);
diff --git a/plugins/NewsAggregator/Src/Update.cpp b/plugins/NewsAggregator/Src/Update.cpp
index 99129017c8..56ff1a1f39 100644
--- a/plugins/NewsAggregator/Src/Update.cpp
+++ b/plugins/NewsAggregator/Src/Update.cpp
@@ -25,7 +25,7 @@ UPDATELIST *UpdateListHead = NULL;
UPDATELIST *UpdateListTail = NULL;
// main auto-update timer
-void CALLBACK timerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
+void CALLBACK timerProc(HWND, UINT, UINT_PTR, DWORD)
{
// only run if it is not current updating and the auto update option is enabled
if (!ThreadRunning && !Miranda_Terminated()) {
@@ -46,7 +46,7 @@ void CALLBACK timerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
// temporary timer for first run
// when this is run, it kill the old startup timer and create the permenant one above
-void CALLBACK timerProc2(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
+void CALLBACK timerProc2(HWND, UINT, UINT_PTR, DWORD)
{
KillTimer(NULL, timerId);
ThreadRunning = FALSE;
diff --git a/plugins/NewsAggregator/Src/Utils.cpp b/plugins/NewsAggregator/Src/Utils.cpp
index b8d9f56375..83738c7fac 100644
--- a/plugins/NewsAggregator/Src/Utils.cpp
+++ b/plugins/NewsAggregator/Src/Utils.cpp
@@ -43,21 +43,6 @@ void NetlibUnInit()
hNetlibUser = NULL;
}
-static void arrayToHex(BYTE *data, size_t datasz, char *res)
-{
- char *resptr = res;
- for (unsigned i = 0; i < datasz; i++) {
- const BYTE ch = data[i];
-
- const char ch0 = (char)(ch >> 4);
- *resptr++ = (char)((ch0 <= 9) ? ('0' + ch0) : (('a' - 10) + ch0));
-
- const char ch1 = (char)(ch & 0xF);
- *resptr++ = (char)((ch1 <= 9) ? ('0' + ch1) : (('a' - 10) + ch1));
- }
- *resptr = '\0';
-}
-
void GetNewsData(TCHAR *tszUrl, char **szData, MCONTACT hContact, HWND hwndDlg)
{
Netlib_LogfT(hNetlibUser,_T("Getting feed data %s."), tszUrl);
@@ -207,7 +192,7 @@ time_t __stdcall DateToUnixTime(const TCHAR *stamp, bool FeedType)
}
else {
TCHAR *weekday, monthstr[4], timezonesign[2];
- int day, month, year, hour, min, sec, timezoneh, timezonem;
+ int day, month = 0, year, hour, min, sec, timezoneh, timezonem;
if (_tcsstr(p, _T(","))) {
weekday = _tcstok(p, _T(","));
p = _tcstok(NULL, _T(","));