diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-24 08:59:48 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-24 08:59:48 +0200 |
commit | 03fcfd1ba1627f5af84a84a8e0876d19ed88eefa (patch) | |
tree | ea41e3b2a00525faa7a65d2c19146ded4a05c050 /hungarian.c | |
parent | m readme (diff) | |
download | hungarian-algorithm-n3-03fcfd1ba1627f5af84a84a8e0876d19ed88eefa.tar.gz hungarian-algorithm-n3-03fcfd1ba1627f5af84a84a8e0876d19ed88eefa.tar.bz2 hungarian-algorithm-n3-03fcfd1ba1627f5af84a84a8e0876d19ed88eefa.tar.xz |
m + enable more warnings
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'hungarian.c')
-rw-r--r-- | hungarian.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hungarian.c b/hungarian.c index 5c82db3..cac5211 100644 --- a/hungarian.c +++ b/hungarian.c @@ -127,7 +127,7 @@ void BitSet_set(BitSet this, long i); void BitSet_unset(BitSet this, long i); long BitSet_any(BitSet this); -long lb(llong x); +long lb(llong x) __attribute__((const)); @@ -136,8 +136,8 @@ void print(cell** t, long n, long m, long** assignment); int main(int argc, char** argv) { unsigned a, d; - asm("cpuid"); - asm volatile("rdtsc" : "=a" (a), "=d" (d)); + __asm__("cpuid"); + __asm__ __volatile__("rdtsc" : "=a" (a), "=d" (d)); srand(((llong)a) | (((llong)d) << 32LL)); |