Addressed some compile time warnings.
This commit is contained in:
parent
0cb079acb0
commit
6145fb8bc2
2 changed files with 5 additions and 3 deletions
4
src/im.c
4
src/im.c
|
|
@ -618,10 +618,10 @@ static int charmap_load(CHARMAP * cm, const char *path)
|
|||
default:
|
||||
if (charmap_add(cm, section, buf, unicode, flag))
|
||||
{
|
||||
size_t i = 0;
|
||||
|
||||
#ifndef __BEOS__
|
||||
#if defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >=2 || __GLIBC__ > 2 || __APPLE__
|
||||
size_t i = 0;
|
||||
|
||||
fwprintf(stderr, L"Unable to add sequence '%ls', unicode ", buf);
|
||||
for (i = 0; i < wcslen(unicode); i++)
|
||||
fwprintf(stderr, L"%04X ", (int)unicode[i]);
|
||||
|
|
|
|||
|
|
@ -198,6 +198,8 @@ static scaleparams scaletable[] = {
|
|||
#if !defined(__USE_GNU) && !defined(HAVE_STRCASESTR)
|
||||
#warning "Attempting to define strcasestr(); if errors, build with -DHAVE_STRCASESTR"
|
||||
|
||||
char *strcasestr(const char *haystack, const char *needle);
|
||||
|
||||
char *strcasestr(const char *haystack, const char *needle)
|
||||
{
|
||||
char *uphaystack, *upneedle, *result;
|
||||
|
|
@ -22501,7 +22503,6 @@ static void load_info_about_label_surface(FILE * lfi)
|
|||
int k;
|
||||
unsigned l;
|
||||
unsigned tmp_pos;
|
||||
wchar_t tmp_char;
|
||||
int old_width;
|
||||
int old_height;
|
||||
int new_width;
|
||||
|
|
@ -22564,6 +22565,7 @@ static void load_info_about_label_surface(FILE * lfi)
|
|||
new_node->save_texttool_str[l] = wtmpstr[l];
|
||||
}
|
||||
#else
|
||||
wchar_t tmp_char;
|
||||
for (l = 0; l < new_node->save_texttool_len; l++)
|
||||
{
|
||||
tmp_fscanf_return = fscanf(lfi, "%lc", &tmp_char);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue