Skip to content

Instantly share code, notes, and snippets.

@vmlemon
Created May 15, 2014 23:50
Show Gist options
  • Save vmlemon/a248b87a0fb6a90d59b9 to your computer and use it in GitHub Desktop.
Save vmlemon/a248b87a0fb6a90d59b9 to your computer and use it in GitHub Desktop.
CLANG (clang++):
tyson@tyson-VirtualBox:~/pistachio/user/apps/counter$ clang++ -v
Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2)
Target: i386-pc-linux-gnu
Thread model: posix
tyson@tyson-VirtualBox:~/pistachio/user/apps/counter$ clang++ -x c++ -I../../include -I../.. -I/usr/lib/gcc/i686-linux-gnu/4.8/include -fno-stack-protector -nostdinc -g -O2 -m32 -O2 -g -Wall -Wshadow -DLUA_COMPAT_ALL -std=c++11 -DINT_MAX -DUCHAR_MAX -Wno-conversion -fno-exceptions -c counter.cc -o counter.o
In file included from counter.cc:40:
In file included from ../../include/l4io.h:35:
../../include/l4/types.h:376:27: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return (L4_Clock_t) { raw : l.raw + r };
^~~~~
.raw =
../../include/l4/types.h:381:27: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return (L4_Clock_t) { raw : l.raw + r };
^~~~~
.raw =
../../include/l4/types.h:386:27: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return (L4_Clock_t) { raw : l.raw + r.raw };
^~~~~
.raw =
../../include/l4/types.h:391:27: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return (L4_Clock_t) { raw : l.raw - r };
^~~~~
.raw =
../../include/l4/types.h:396:27: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return (L4_Clock_t) { raw : l.raw - r };
^~~~~
.raw =
../../include/l4/types.h:401:27: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return (L4_Clock_t) { raw : l.raw - r.raw };
^~~~~
.raw =
../../include/l4/types.h:407:27: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return (L4_Clock_t) { raw : c.raw + r };
^~~~~
.raw =
../../include/l4/types.h:412:27: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return (L4_Clock_t) { raw : c.raw - r };
^~~~~
.raw =
../../include/l4/types.h:518:13: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_Never;
^
../../include/l4/types.h:490:33: note: expanded from macro 'L4_Never'
#define L4_Never ((L4_Time_t) { raw : 0UL })
^
../../include/l4/types.h:529:13: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_Never;
^
../../include/l4/types.h:490:33: note: expanded from macro 'L4_Never'
#define L4_Never ((L4_Time_t) { raw : 0UL })
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:36:
In file included from ../../include/l4/kip.h:36:
../../include/l4/ia32/syscalls.h:198:7: error: unsupported inline asm: input with type 'L4_ThreadId_t' matching output with type
'L4_Word_t' (aka 'unsigned long')
"0" (dest),
^~~~
../../include/l4/ia32/syscalls.h:275:7: error: unsupported inline asm: input with type 'L4_ThreadId_t' matching output with type
'L4_Word_t' (aka 'unsigned long')
"0" (dest),
^~~~
../../include/l4/ia32/syscalls.h:488:7: error: unsupported inline asm: input with type 'L4_ThreadId_t' matching output with type
'L4_Word_t' (aka 'unsigned long')
"0" (SpaceSpecifier),
^~~~~~~~~~~~~~
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
In file included from ../../include/l4/ipc.h:38:
../../include/l4/thread.h:260:49: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_ExchangeRegisters (t, 0, 0, 0, 0, 0, L4_nilthread,
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
In file included from ../../include/l4/ipc.h:38:
../../include/l4/thread.h:285:49: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_ExchangeRegisters (t, 0, 0, 0, 0, 0, L4_nilthread,
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
In file included from ../../include/l4/ipc.h:38:
../../include/l4/thread.h:304:59: warning: use of GNU old-style field designator extension [-Wgnu-designator]
(void) L4_ExchangeRegisters (t, (1 << 9), 0, 0, 0, 0, L4_nilthread,
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
In file included from ../../include/l4/ipc.h:38:
../../include/l4/thread.h:316:64: warning: use of GNU old-style field designator extension [-Wgnu-designator]
(void) L4_ExchangeRegisters (t, (1 << 6), 0, 0, 0, handle, L4_nilthread,
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
In file included from ../../include/l4/ipc.h:38:
../../include/l4/thread.h:338:59: warning: use of GNU old-style field designator extension [-Wgnu-designator]
(void) L4_ExchangeRegisters (t, (1 << 9), 0, 0, 0, 0, L4_nilthread,
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
In file included from ../../include/l4/ipc.h:38:
../../include/l4/thread.h:372:63: warning: use of GNU old-style field designator extension [-Wgnu-designator]
(void) L4_ExchangeRegisters (t, (1 << 8) + 6, 0, 0, 0, 0, L4_nilthread,
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
In file included from ../../include/l4/ipc.h:38:
../../include/l4/thread.h:383:6: warning: use of GNU old-style field designator extension [-Wgnu-designator]
L4_nilthread,
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
In file included from ../../include/l4/ipc.h:38:
../../include/l4/thread.h:396:6: warning: use of GNU old-style field designator extension [-Wgnu-designator]
L4_nilthread,
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
In file included from ../../include/l4/ipc.h:38:
../../include/l4/thread.h:422:6: warning: use of GNU old-style field designator extension [-Wgnu-designator]
L4_nilthread, &state.raw, &dummy, &dummy,
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
In file included from ../../include/l4/ipc.h:38:
../../include/l4/thread.h:438:6: warning: use of GNU old-style field designator extension [-Wgnu-designator]
L4_nilthread, &state.raw, sp, ip, flags,
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
In file included from ../../include/l4/ipc.h:38:
../../include/l4/thread.h:459:6: warning: use of GNU old-style field designator extension [-Wgnu-designator]
L4_nilthread, &state.raw, &dummy, &dummy,
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
In file included from ../../include/l4/ipc.h:38:
../../include/l4/thread.h:476:6: warning: use of GNU old-style field designator extension [-Wgnu-designator]
L4_nilthread, &state.raw, sp, ip, flags,
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
In file included from ../../include/l4/ipc.h:38:
../../include/l4/thread.h:499:6: warning: use of GNU old-style field designator extension [-Wgnu-designator]
L4_nilthread, &state.raw, &dummy, &dummy,
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
In file included from ../../include/l4/ipc.h:38:
../../include/l4/thread.h:517:6: warning: use of GNU old-style field designator extension [-Wgnu-designator]
L4_nilthread, &state.raw, sp, ip, flags,
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
In file included from ../../include/l4/ipc.h:38:
../../include/l4/thread.h:540:6: warning: use of GNU old-style field designator extension [-Wgnu-designator]
L4_nilthread, &state.raw, &dummy, &dummy,
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
In file included from ../../include/l4/ipc.h:38:
../../include/l4/thread.h:556:6: warning: use of GNU old-style field designator extension [-Wgnu-designator]
L4_nilthread, &state.raw, sp, ip, flags,
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
In file included from ../../include/l4/ipc.h:38:
../../include/l4/thread.h:582:9: warning: use of GNU old-style field designator extension [-Wgnu-designator]
L4_nilthread, HandlerThread, (void *) -1);
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
In file included from ../../include/l4/ipc.h:38:
../../include/l4/thread.h:588:9: warning: use of GNU old-style field designator extension [-Wgnu-designator]
L4_nilthread, InterruptThread, (void *) -1);
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
In file included from ../../include/l4/ipc.h:38:
../../include/l4/thread.h:595:76: warning: use of GNU old-style field designator extension [-Wgnu-designator]
L4_ExchangeRegisters (dest, L4_EXREGS_CTRLXFER_CONF_FLAG, 0, 0 , 0, 0, L4_nilthread,
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
In file included from ../../include/l4/ipc.h:38:
../../include/l4/thread.h:604:76: warning: use of GNU old-style field designator extension [-Wgnu-designator]
L4_ExchangeRegisters (dest, L4_EXREGS_CTRLXFER_READ_FLAG, 0, 0 , 0, 0, L4_nilthread,
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
In file included from ../../include/l4/ipc.h:38:
../../include/l4/thread.h:613:77: warning: use of GNU old-style field designator extension [-Wgnu-designator]
L4_ExchangeRegisters (dest, L4_EXREGS_CTRLXFER_WRITE_FLAG, 0, 0 , 0, 0, L4_nilthread,
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
../../include/l4/ipc.h:129:34: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_Call_Timeouts (to, L4_Never, L4_Never);
^
../../include/l4/types.h:490:33: note: expanded from macro 'L4_Never'
#define L4_Never ((L4_Time_t) { raw : 0UL })
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
../../include/l4/ipc.h:129:44: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_Call_Timeouts (to, L4_Never, L4_Never);
^
../../include/l4/types.h:490:33: note: expanded from macro 'L4_Never'
#define L4_Never ((L4_Time_t) { raw : 0UL })
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
../../include/l4/ipc.h:134:24: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_Ipc (to, L4_nilthread, (L4_Word_t)SndTimeout.raw << 16, (L4_ThreadId_t *) 0);
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
../../include/l4/ipc.h:146:33: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_Send_Timeout (to, L4_Never);
^
../../include/l4/types.h:490:33: note: expanded from macro 'L4_Never'
#define L4_Never ((L4_Time_t) { raw : 0UL })
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
../../include/l4/ipc.h:151:33: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_Send_Timeout (to, L4_ZeroTime);
^
../../include/l4/types.h:491:36: note: expanded from macro 'L4_ZeroTime'
#define L4_ZeroTime ((L4_Time_t) { period : { L4_SHUFFLE3(0, 1, 0) }})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
../../include/l4/ipc.h:158:20: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_Ipc (L4_nilthread, from, (L4_Word_t)RcvTimeout.raw, &dummy);
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
../../include/l4/ipc.h:170:38: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_Receive_Timeout (from, L4_Never);
^
../../include/l4/types.h:490:33: note: expanded from macro 'L4_Never'
#define L4_Never ((L4_Time_t) { raw : 0UL })
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
../../include/l4/ipc.h:176:20: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_Ipc (L4_nilthread, L4_anythread, (L4_Word_t)RcvTimeout.raw, from);
^
../../include/l4/types.h:296:46: note: expanded from macro 'L4_nilthread'
#define L4_nilthread ((L4_ThreadId_t) { raw : 0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
../../include/l4/ipc.h:176:34: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_Ipc (L4_nilthread, L4_anythread, (L4_Word_t)RcvTimeout.raw, from);
^
../../include/l4/types.h:297:46: note: expanded from macro 'L4_anythread'
#define L4_anythread ((L4_ThreadId_t) { raw : ~0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
../../include/l4/ipc.h:188:29: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_Wait_Timeout (L4_Never, from);
^
../../include/l4/types.h:490:33: note: expanded from macro 'L4_Never'
#define L4_Never ((L4_Time_t) { raw : 0UL })
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
../../include/l4/ipc.h:195:24: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_Ipc (to, L4_anythread, L4_Timeouts (L4_ZeroTime, RcvTimeout),
^
../../include/l4/types.h:297:46: note: expanded from macro 'L4_anythread'
#define L4_anythread ((L4_ThreadId_t) { raw : ~0UL})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
../../include/l4/ipc.h:195:51: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_Ipc (to, L4_anythread, L4_Timeouts (L4_ZeroTime, RcvTimeout),
^
../../include/l4/types.h:491:36: note: expanded from macro 'L4_ZeroTime'
#define L4_ZeroTime ((L4_Time_t) { period : { L4_SHUFFLE3(0, 1, 0) }})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
../../include/l4/ipc.h:211:38: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_ReplyWait_Timeout (to, L4_Never, from);
^
../../include/l4/types.h:490:33: note: expanded from macro 'L4_Never'
#define L4_Never ((L4_Time_t) { raw : 0UL })
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
../../include/l4/ipc.h:222:42: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_Lipc (to, to, L4_Timeouts (L4_Never, L4_Never), &dummy);
^
../../include/l4/types.h:490:33: note: expanded from macro 'L4_Never'
#define L4_Never ((L4_Time_t) { raw : 0UL })
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
../../include/l4/ipc.h:222:52: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_Lipc (to, to, L4_Timeouts (L4_Never, L4_Never), &dummy);
^
../../include/l4/types.h:490:33: note: expanded from macro 'L4_Never'
#define L4_Never ((L4_Time_t) { raw : 0UL })
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
../../include/l4/ipc.h:227:25: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_Lipc (to, L4_anylocalthread,
^
../../include/l4/types.h:298:46: note: expanded from macro 'L4_anylocalthread'
#define L4_anylocalthread ((L4_ThreadId_t) { local : { X : {L4_SHUFFLE2(0, ((1UL<<(8*sizeof(L4_Word_t)-6))-1))}}})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
../../include/l4/ipc.h:227:25: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_Lipc (to, L4_anylocalthread,
^
../../include/l4/types.h:298:56: note: expanded from macro 'L4_anylocalthread'
#define L4_anylocalthread ((L4_ThreadId_t) { local : { X : {L4_SHUFFLE2(0, ((1UL<<(8*sizeof(L4_Word_t)-6))-1))}}})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
../../include/l4/ipc.h:228:20: warning: use of GNU old-style field designator extension [-Wgnu-designator]
L4_Timeouts (L4_ZeroTime, L4_Never), from);
^
../../include/l4/types.h:491:36: note: expanded from macro 'L4_ZeroTime'
#define L4_ZeroTime ((L4_Time_t) { period : { L4_SHUFFLE3(0, 1, 0) }})
^
In file included from counter.cc:41:
In file included from ../../include/l4/sigma0.h:38:
../../include/l4/ipc.h:228:33: warning: use of GNU old-style field designator extension [-Wgnu-designator]
L4_Timeouts (L4_ZeroTime, L4_Never), from);
^
../../include/l4/types.h:490:33: note: expanded from macro 'L4_Never'
#define L4_Never ((L4_Time_t) { raw : 0UL })
^
In file included from counter.cc:41:
../../include/l4/sigma0.h:67:9: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_Nilpage;
^
../../include/l4/types.h:166:37: note: expanded from macro 'L4_Nilpage'
#define L4_Nilpage ((L4_Fpage_t) { raw : 0UL })
^
In file included from counter.cc:41:
../../include/l4/sigma0.h:82:48: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_Sigma0_GetPage_RcvWindow (s0, f, L4_CompleteAddressSpace);
^
../../include/l4/types.h:167:49: note: expanded from macro 'L4_CompleteAddressSpace'
#define L4_CompleteAddressSpace ((L4_Fpage_t) { X : { L4_SHUFFLE4(0, 0, 1, 0) }})
^
In file included from counter.cc:41:
../../include/l4/sigma0.h:91:50: warning: use of GNU old-style field designator extension [-Wgnu-designator]
return L4_Sigma0_GetPage_RcvWindow_High (s0, f, L4_CompleteAddressSpace, high);
^
../../include/l4/types.h:167:49: note: expanded from macro 'L4_CompleteAddressSpace'
#define L4_CompleteAddressSpace ((L4_Fpage_t) { X : { L4_SHUFFLE4(0, 0, 1, 0) }})
^
counter.cc:86:66: warning: unknown escape sequence '\)'
printf("\n\t * shiritori : Start the Shiritori game \(buggy!\).\n");
^~
counter.cc:174:24: warning: suggest braces around initialization of subobject [-Wmissing-braces]
char data[MAX][200] = {0}; /* <U+5165><U+529B><U+30C7><U+30FC><U+30BF><U+4FDD><U+5B58><U+7528> */
^
{}
counter.cc:215:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
printf(iEnvStatus[ACTIVE_CMD]);
^~~~~~~~~~~~~~~~~~~~~~
counter.cc:226:21: warning: format specifies type 'int' but the argument has type 'char *' [-Wformat]
printf("\n%d\n\n", (char*)iEnvStatus[CMD_RESULT]);
~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%s
counter.cc:230:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
printf(iEnvStatus[ACTIVE_CMD]);
^~~~~~~~~~~~~~~~~~~~~~
58 warnings and 3 errors generated.
GCC:
tyson@tyson-VirtualBox:~/pistachio/user/apps/counter$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.8/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.8.1-10ubuntu9' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-i386/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-i386 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-i386 --with-arch-directory=i386 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-targets=all --enable-multiarch --disable-werror --with-arch-32=i686 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu9)
tyson@tyson-VirtualBox:~/pistachio/user/apps/counter$ make
===> counter.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/i686-linux-gnu/4.8/include -fno-stack-protector -nostdinc -g -O2 -m32 -O2 -g -Wall -Wshadow -DLUA_COMPAT_ALL -std=c++11 -DINT_MAX -DUCHAR_MAX -Wno-conversion -fno-exceptions -c counter.cc -o counter.o
counter.cc: In function ‘int ShellHelp()’:
counter.cc:86:9: warning: unknown escape sequence: '\)' [enabled by default]
printf("\n\t * shiritori : Start the Shiritori game \(buggy!\).\n");
^
counter.cc: In function ‘int main()’:
counter.cc:215:30: warning: format not a string literal and no format arguments [-Wformat-security]
printf(iEnvStatus[ACTIVE_CMD]);
^
counter.cc:226:50: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘char*’ [-Wformat=]
printf("\n%d\n\n", (char*)iEnvStatus[CMD_RESULT]);
^
counter.cc:230:31: warning: format not a string literal and no format arguments [-Wformat-security]
printf(iEnvStatus[ACTIVE_CMD]);
^
counter.cc: In function ‘int ShiritoriGame()’:
counter.cc:187:41: warning: ‘nIdx’ may be used uninitialized in this function [-Wmaybe-uninitialized]
memcmp( &data[i-1][nIdx], &data[i][0], 1) != 0){ /* 今回の文頭と前回の文末を比較*/
^
===> Linking ./counter
ld -e_start -N -L../../lib -L/usr/lib/gcc/i686-linux-gnu/4.8 -nostdlib -melf_i386 -Ttext=00400000 crt0-ia32.o counter.o mindrvr.o -ll4 -lio -lgcc -o counter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment