`
jsntghf
  • 浏览: 2476358 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

SDImageCache.m报错Unused variable 'fileName'

    博客分类:
  • iOS
阅读更多

GCC手册中的相关解释:

unused:This attribute, attached to a function, means that the function is meant to be

        possibly unused. GCC will not produce a warning for this function.

===============================================================================

used: This attribute, attached to a function, means that code must be emitted for the

       function even if it appears that the function is not referenced. This is useful,

       for example, when the function is referenced only in inline assembly.

 

表示该函数或变量可能未被使用,这个属性可以避免编译器产生警告信息。

 

把for (NSString *fileName in fileEnumerator)

修改为for (__attribute__((unused)) NSString *fileName in fileEnumerator)即可。

 

 

分享到:
评论

相关推荐

    前端开源库-unused-filename

    前端开源库-unused-filename未使用的文件名,如果存在,请附加一个数字以获取未使用的文件名:

    unused-filename:通过添加数字来获取未使用的文件名(如果存在)

    $ npm install unused-filename 用法 . ├── rainbow (1).txt ├── rainbow.txt └── unicorn.txt const unusedFilename = require ( 'unused-filename' ) ; ( async ( ) => { console . log ( await ...

    android-unused-resources:从 code.google.compandroid-unused-resources 自动导出

    android-未使用的资源从 code.google.com/p/android-unused-resources 自动导出 Andround Unused Resources 是一个 Java 应用程序,它将扫描您的项目以查找未使用的资源。 未使用的资源会不必要地占用空间、增加构建...

    unused-files

    npm i -- dev unused - files 用法 const UnusedPlugin = require ( 'unused-files' ) ; const srcPath = path . join ( __dirname , '/src' ) ; module . exports . plugins = module . exports . plugins . ...

    安卓webview lib

    libwebviewchromium_loader.so libwebviewchromium_plat_support.so 安卓系统运行webview核心必要的两个库文件,位置;/system/lib 文件提取自 天语火星一号flyme5系统(32位安卓5.1), 实测酷派y91-921的5.1系统正常...

    lcmip:LCMiP - 生产中的日志调用方法

    unused classes: 1/4 unused methods: 5/12 unused classes at.rseiler.lcmip.demo.UnusedClass unused methods at.rseiler.lcmip.demo.Main# at.rseiler.lcmip.demo.Main$MainInnerClass#unusedMethod at.rseiler....

    sass-unused:在SASS文件集合中查找未使用的变量的实用程序

    没用的 用于在SASS文件集合中查找未使用的变量,mixin和函数的实用程序。...// (variable, mixin, function etc.) listing unused items of that type. const unused = findUnused ( 'src/**/*.scss' ) ;

    find-unused-sass-variables:查找未使用的Sass变量的简单工具

    安装npm install find-unused-sass-variables --save-dev用法find-unused-sass-variables folder [, folder2...] --ignore " $my -var, $my -second-var "# orfusv folder [, folder2...]API const fusv = require ...

    oracle unused字段后恢复出来

    oracle unused字段后恢复出来 说明,本来,unused是为了快速drop字段用的,但是是没有used或者什么reused命令恢复出来的,常规的办法只能drop这个字段后再添加,但是还是有办法恢复字段以及以前的内容的【毕竟空间...

    Build Report Tool v3.5.zip

    5. Unused Assets: 显示资产清单中的项目, 是 *not* 用于生成 build. 这是用来找出哪 些资产不再被使用也许你可能想要删除以节省空间。 ———————————————— 版权声明:本文为CSDN博主「u010019717」...

    Find Reference 2 2.4.3.unitypackage

    2. Remove all unused assets how? 3. Merge & remove duplicated assets how? 4. Split big project to smaller modules how? 5. Find where an asset being used how? Intro Video | Email | Documentation ...

    UNUSED

    UNUSED

    微软虚拟光驱_迷你虚拟光驱

    8. Select an unused drive letter from the drive list and click "Mount". 9. Navigate to the image file, select it, and click "OK". UNC naming conventions should not be used, however mapped network ...

    ActiveMQ MQTT Android客户端Demo

    ActiveMQ MQTT Android客户端Demo

    微软出的WinXP下简易虚拟光驱工具

    8. Select an unused drive letter from the drive list and click "Mount". 9. Navigate to the image file, select it, and click "OK". UNC naming conventions should not be used, however mapped network ...

    Find Reference 2 - 2.5.1.unitypackage

    最新版Find Reference插件 一个用来查找资源引用和依赖的插件,通过缓存来保存资源间的引用信息,通过树状结构直观的展示 2. Remove all unused assets how?

    清理android项目中不用的资源工具jar包

    将下载得到的AndroidUnusedResources1.6.2.jar 放到需要清理的android项目的根目录下,cd到android项目的根目录下,执行 java -jar AndroidUnusedResources1.6.2.jar > unused.txt

    MySQL 8 新特性之Invisible Indexes

    在不可见索引出现之前,大家可以通过sys.schema_unused_indexes来确定无用索引。在MySQL 5.6中,即使没有sys库,也可通过该视图的基表来进行查询。 mysql> show create table sys.schema_unused_indexes\G *****

    Android打包编译shrinkResources true报错解决方案

    本文章分析解决在android打包编译时,配置了shrinkResources为true移除无用资源时打包报错的解决方案 1 Android 打包失败 Android 项目打包或者在 flutter项目中打包 apk 打包失败,异常日志如下 * What went wrong...

    ios开发之项目废弃图片资源清理工具

    So I made some performance optimization, the search speed is more faster than Unused. ## Example ![LSMessageHUD Example1]...

Global site tag (gtag.js) - Google Analytics