summaryrefslogtreecommitdiff
path: root/mcon/U/d_volatile.U
diff options
context:
space:
mode:
Diffstat (limited to 'mcon/U/d_volatile.U')
-rw-r--r--mcon/U/d_volatile.U15
1 files changed, 10 insertions, 5 deletions
diff --git a/mcon/U/d_volatile.U b/mcon/U/d_volatile.U
index f94ca4f..6ef01db 100644
--- a/mcon/U/d_volatile.U
+++ b/mcon/U/d_volatile.U
@@ -41,7 +41,7 @@
echo " "
echo 'Checking to see if your C compiler knows about "volatile"...' >&4
$cat >try.c <<'EOCP'
-int main()
+int main(void)
{
?X:
?X: The following seven lines added by Bill Campbell <billc@sierra.com>
@@ -55,13 +55,18 @@ int main()
char char_var;
};
typedef unsigned short foo_t;
- char *volatile foo;
- volatile int bar;
- volatile foo_t blech;
+ static char *volatile foo;
+ static volatile int bar;
+ static volatile foo_t blech;
foo = foo;
+ (void) goo;
+ (void) foo;
+ (void) bar;
+ (void) blech;
+ return 0;
}
EOCP
-if $cc -c $ccflags try.c >/dev/null 2>&1 ; then
+if $cc -c $ccflags try.c; then
val="$define"
echo "Yup, it does."
else