[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #34602] compiling NSRegularExpression.m using clang, it emits a war
From: |
Sebastian Reitenbach |
Subject: |
[bug #34602] compiling NSRegularExpression.m using clang, it emits a warning that it doesn't support blocks |
Date: |
Thu, 20 Oct 2011 11:37:52 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110613 SUSE/3.6.18-0.2.1 Firefox/3.6.18 |
Follow-up Comment #6, bug #34602 (project gnustep):
Hi,
when just installing gnustep-base, I still get the warning when compiling
NSRegularExpression.m:
clang NSRegularExpression.m -c
-MMD -MP -I/usr/local/include -DGNUSTEP_TARGET_DIR="."
-DGNUSTEP_TARGET_CPU="ix86" -DGNUSTEP_TARGET_OS="openbsd5.0"
-DGNUSTEP_IS_FLATTENED="yes" -DLIBRARY_COMBO="gnu-gnu-gnu"
-DGNUSTEP_BASE_INTERNAL=1 -Wall -Wdeclaration-after-
statement -Wcast-align -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_RUNTIME=1
-DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing -fexceptions -fobjc-exceptions
-D_NATIVE_OBJC_EXCEPTIONS -fPIC -DDEBUG -fno-omit-frame-pointer -Wall -DGSWARN
-DGSDIAGNOSE
-Wno-import -O2 -pipe -g -O0 -fgnu-runtime -fgnu-runtime
-fconstant-string-class=NSConstantString -I../Headers -I./. -I.
-I/usr/local/include -I/usr/local/include -I/usr/local/include
-I/usr/local/include -I/usr/local/include/libxml2 -I/usr/lo
cal/include -I/usr/local/include -pthread
-I/gnustep-base-1.23.1_writes_to_HOME/GNUstep/Library/Headers
-I/usr/local/include
-o obj/libgnustep-base.obj/NSRegularExpression.m.o
NSRegularExpression.m:372:3: warning: #warning Your compiler does not support
blocks. NSRegularExpression will deviate from the documented behaviour when
subclassing and any code that subclasses NSRegularExpression may break in
unexpected way
s. It is strongly recommended that you use a compiler with blocks support.
[-W#warnings]
# warning Your compiler does not support blocks. NSRegularExpression
will deviate from the documented behaviour when subclassing and any code that
subclasses NSRegularExpression may break in unexpected ways. It is strongly
recommended
that you use a compiler with blocks support.
^
NSRegularExpression.m:374:4: warning: #warning Your compiler would support
blocks if you added -fblocks to your OBJCFLAGS [-W#warnings]
# warning Your compiler would support blocks if you added
-fblocks to your OBJCFLAGS
^
2 warnings generated.
but when I add -fblocks, then the file compiles without warning.
Who should put this parameter? is gnustep-make suposed to detect that the
compiler understands those blocks, or does gnustep-base needs to provide
that?
Sebastian
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34602>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
- [bug #34602] compiling NSRegularExpression.m using clang, it emits a warning that it doesn't support blocks, Sebastian Reitenbach, 2011/10/19
- [bug #34602] compiling NSRegularExpression.m using clang, it emits a warning that it doesn't support blocks, julian, 2011/10/19
- [bug #34602] compiling NSRegularExpression.m using clang, it emits a warning that it doesn't support blocks, Richard Frith-Macdonald, 2011/10/20
- [bug #34602] compiling NSRegularExpression.m using clang, it emits a warning that it doesn't support blocks, Nicola Pero, 2011/10/20
- [bug #34602] compiling NSRegularExpression.m using clang, it emits a warning that it doesn't support blocks, julian, 2011/10/20
- [bug #34602] compiling NSRegularExpression.m using clang, it emits a warning that it doesn't support blocks, Richard Frith-Macdonald, 2011/10/20
- [bug #34602] compiling NSRegularExpression.m using clang, it emits a warning that it doesn't support blocks,
Sebastian Reitenbach <=