Bug 28693 - Лог засоряется сообщениями "... With incorrect signature ... "
Summary: Лог засоряется сообщениями "... With incorrect signature ... "
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: libgnustep-objc2 (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Andrey Cherepanov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-16 15:32 MSK by Chess
Modified: 2013-03-18 07:07 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chess 2013-03-16 15:32:55 MSK
Приложение сыпет в лог такими строчками
... with incorrect signature.  Method has ...

файл sendmsg2.c

#ifndef NO_SELECTOR_MISMATCH_WARNINGS
static struct objc_slot* objc_selector_type_mismatch(Class cls, SEL
                selector, Slot_t result)
{
        fprintf(stderr, "Calling [%s %c%s] with incorrect signature.  "
                        "Method has %s, selector has %s\n",
                        cls->name,
                        class_isMetaClass(cls) ? '+' : '-',
                        sel_getName(selector),
                        result->types,
                        sel_getType_np(selector));
        return result;
}
#else
static struct objc_slot* objc_selector_type_mismatch(Class cls, SEL
                selector, Slot_t result)
{
        return result;
}
#endif

CMakeLists.txt

# For release builds, we disable spamming the terminal with warnings about
# selector type mismatches
if (CMAKE_BUILD_TYPE STREQUAL Release)
        add_definitions(-DNO_SELECTOR_MISMATCH_WARNINGS)
else ()
        add_definitions(-DGC_DEBUG)
endif ()

собрал с таким изменением spec файла

cmake \
%ifarch x86_64
        -DLIB_SUFFIX:STRING=64 \
%endif
        -DCMAKE_BUILD_TYPE=Release \
...

лог файл больше не засоряется.
Comment 1 Yuri N. Sedunov 2013-03-16 15:56:39 MSK
(In reply to comment #0)
... 
> собрал с таким изменением spec файла
> 
> cmake \
> %ifarch x86_64
>         -DLIB_SUFFIX:STRING=64 \
> %endif
>         -DCMAKE_BUILD_TYPE=Release \
> ...

Почему бы не использовать макрос %cmake ?
Comment 2 Chess 2013-03-16 15:59:17 MSK
(В ответ на комментарий №1)
> (In reply to comment #0)
> ... 
> > собрал с таким изменением spec файла
> > 
> > cmake \
> > %ifarch x86_64
> >         -DLIB_SUFFIX:STRING=64 \
> > %endif
> >         -DCMAKE_BUILD_TYPE=Release \
> > ...
> 
> Почему бы не использовать макрос %cmake ?

потому что, так в spec файле
Comment 3 Repository Robot 2013-03-18 07:07:31 MSK
gnustep-objc2-1.7.0-alt4.git20130312 -> sisyphus:

* Mon Mar 18 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux> 1.7.0-alt4.git20130312
- Set CMAKE_BUILD_TYPE to Release (ALT #28693)