我正在使用尚未準備好Swift 4的第三方庫,即打破獨佔內存訪問規則(SE-0176)。 所以,我的控制檯上充斥着這些警告: Simultaneous accesses to 0xb1ab1ab1a, but modification requires exclusive access.
Previous access (a modification) started at MyTarget`T
當我試圖運行下面的代碼我得到這樣的警告: warning: incompatible pointer to integer conversion assigning to
'char' from 'char *'; dereference with * [-Wint-conversion]
namesList[0]=name1;
這裏是我的代碼: int main(){
對此類似的問題已經提出並回答,但沒有涉及這個具體問題。 global EXAMPLE_GLOBAL
EXAMPLE_GLOBAL = True
def Setup():
if EXAMPLE_GLOBAL:
try:
#Doing some file io here
except:
global EXAMPLE_GLOBAL