* clang: warning: argument unused during compilation: '-fno-builtin-memcmp'
@ 2013-01-18 4:19 Sedat Dilek
2013-01-18 16:21 ` Sedat Dilek
2013-01-18 17:25 ` Matt Turner
0 siblings, 2 replies; 4+ messages in thread
From: Sedat Dilek @ 2013-01-18 4:19 UTC (permalink / raw)
To: DRI, mesa3d-dev; +Cc: Brian Paul
Hi,
I am playing with llvm/clang v3.2 and mesa.
It's annoying to see these hundreds of warnings...
clang: warning: argument unused during compilation: '-fno-builtin-memcmp'
NOTE: '-fno-builtin-memcmp' is a gcc-specific compiler-flag.
I have done here a brutal solution, maybe someone else has a more elegant one.
Thanks.
Regards,
- Sedat -
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: clang: warning: argument unused during compilation: '-fno-builtin-memcmp'
2013-01-18 4:19 clang: warning: argument unused during compilation: '-fno-builtin-memcmp' Sedat Dilek
@ 2013-01-18 16:21 ` Sedat Dilek
2013-01-18 17:25 ` Matt Turner
1 sibling, 0 replies; 4+ messages in thread
From: Sedat Dilek @ 2013-01-18 16:21 UTC (permalink / raw)
To: DRI, mesa3d-dev; +Cc: llvmlinux, Brian Paul
On Fri, Jan 18, 2013 at 5:19 AM, Sedat Dilek <sedat.dilek@gmail.com> wrote:
> Hi,
>
> I am playing with llvm/clang v3.2 and mesa.
>
> It's annoying to see these hundreds of warnings...
>
> clang: warning: argument unused during compilation: '-fno-builtin-memcmp'
>
> NOTE: '-fno-builtin-memcmp' is a gcc-specific compiler-flag.
>
> I have done here a brutal solution, maybe someone else has a more elegant one.
>
> Thanks.
>
[ CCing LLVMLinux ]
OK, there exists smarter solutions like this...
### Export compiler settings (here: clang)
export CC=clang
export CXX=clang++
export CFLAGS="-Qunused-arguments"
export CXXFLAGS="$CFLAGS"
...but we do not live only in a GCC world :-).
I would like to see a fix in mesa (XORG) world.
- Sedat -
> Regards,
> - Sedat -
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: clang: warning: argument unused during compilation: '-fno-builtin-memcmp'
2013-01-18 4:19 clang: warning: argument unused during compilation: '-fno-builtin-memcmp' Sedat Dilek
2013-01-18 16:21 ` Sedat Dilek
@ 2013-01-18 17:25 ` Matt Turner
2013-01-18 17:44 ` Sedat Dilek
1 sibling, 1 reply; 4+ messages in thread
From: Matt Turner @ 2013-01-18 17:25 UTC (permalink / raw)
To: sedat.dilek; +Cc: mesa-dev, Brian Paul, DRI
On Thu, Jan 17, 2013 at 8:19 PM, Sedat Dilek <sedat.dilek@gmail.com> wrote:
> Hi,
>
> I am playing with llvm/clang v3.2 and mesa.
>
> It's annoying to see these hundreds of warnings...
>
> clang: warning: argument unused during compilation: '-fno-builtin-memcmp'
>
> NOTE: '-fno-builtin-memcmp' is a gcc-specific compiler-flag.
>
> I have done here a brutal solution, maybe someone else has a more elegant one.
>
> Thanks.
>
> Regards,
> - Sedat -
> mesa3d-dev@lists.sourceforge.net
Please send to mesa-dev@lists.freedesktop.org and not the sourceforge list.
-fno-builtin-memcmp is added to CFLAGS inside a block that checks if
the compiler is gcc:
dnl Add flags for gcc and g++
if test "x$GCC" = xyes; then
...
CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD -fno-builtin-memcmp"
CFLAGS="$CFLAGS -fno-builtin-memcmp"
...
fi
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: clang: warning: argument unused during compilation: '-fno-builtin-memcmp'
2013-01-18 17:25 ` Matt Turner
@ 2013-01-18 17:44 ` Sedat Dilek
0 siblings, 0 replies; 4+ messages in thread
From: Sedat Dilek @ 2013-01-18 17:44 UTC (permalink / raw)
To: Matt Turner; +Cc: mesa-dev, Brian Paul, DRI
On Fri, Jan 18, 2013 at 6:25 PM, Matt Turner <mattst88@gmail.com> wrote:
> On Thu, Jan 17, 2013 at 8:19 PM, Sedat Dilek <sedat.dilek@gmail.com> wrote:
>> Hi,
>>
>> I am playing with llvm/clang v3.2 and mesa.
>>
>> It's annoying to see these hundreds of warnings...
>>
>> clang: warning: argument unused during compilation: '-fno-builtin-memcmp'
>>
>> NOTE: '-fno-builtin-memcmp' is a gcc-specific compiler-flag.
>>
>> I have done here a brutal solution, maybe someone else has a more elegant one.
>>
>> Thanks.
>>
>> Regards,
>> - Sedat -
>
>> mesa3d-dev@lists.sourceforge.net
>
> Please send to mesa-dev@lists.freedesktop.org and not the sourceforge list.
>
> -fno-builtin-memcmp is added to CFLAGS inside a block that checks if
> the compiler is gcc:
>
> dnl Add flags for gcc and g++
> if test "x$GCC" = xyes; then
> ...
> CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD -fno-builtin-memcmp"
> CFLAGS="$CFLAGS -fno-builtin-memcmp"
> ...
> fi
YUPP, I had a look at configure.ac and other files.
For clang -fno-builtin-memcmp is added to compiler-flags anyway and
flooded my build-log.
Dunno, how to fix it...
- Sedat -
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-01-18 17:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-18 4:19 clang: warning: argument unused during compilation: '-fno-builtin-memcmp' Sedat Dilek
2013-01-18 16:21 ` Sedat Dilek
2013-01-18 17:25 ` Matt Turner
2013-01-18 17:44 ` Sedat Dilek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.