Menu

#1238 Fix \src\plugins\compilergcc\depslib\src\[hash.c|cache.c] compiler warnings

Undefined
open
nobody
None
Patch
2022-03-17
2022-03-17
No

Patch attached to fix compiler warning.

1 Attachments

Discussion

  • Miguel Gimenez

    Miguel Gimenez - 2022-03-17

    I think this part

                #if defined(PRId64)
                    sscanf(buf, "%" PRId64 " %n", &timeval, &n);
                #else
                    sscanf(buf, "%lld %n", &timeval, &n);
                #endif
    

    should be

                #if defined(SCNd64)
                    sscanf(buf, "%" SCNd64 " %n", &timeval, &n);
                #else
                    sscanf(buf, "%lld %n", &timeval, &n);
                #endif
    
     
    • Andrew Cottrell

      Andrew Cottrell - 2022-03-17

      Your right.

      With mingw64 inttypes.h has the following:
      #define SCNd64 PRId64

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.