Giter VIP home page Giter VIP logo

libnt's People

Contributors

svoboda18 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

libnt's Issues

This gives multiple errors when compiling magiskboot

E:/python/magiskboot/libnt/libnt.c:177:54: warning: incompatible pointer types passing 'DWORD64 *' (aka 'unsigned long long *') to parameter of type 'PDWORD' (aka 'unsigned long *') [-Wincompatible-pointer-types] if (SymGetLineFromAddr64(process, (DWORD64)addr, &dldisp, &symbolLine)) { ^~~~~~~ C:/msys64/clang64/include/psdk_inc/_dbg_common.h:827:79: note: passing argument to parameter 'pdwDisplacement' here WINBOOL IMAGEAPI SymGetLineFromAddr64(HANDLE hProcess,DWORD64 qwAddr,PDWORD pdwDisplacement,PIMAGEHLP_LINE64 Line64); ^ 1 warning generated. CC mman.o E:/python/magiskboot/libnt/mman.c:177:9: warning: data argument not used by format string [-Wformat-extra-args] NT_DEBUG("failed with %d (%s)", errno, strerror(errno)); ^ ~~~~~~~~~~~~~~~~~~~~~ E:/python/magiskboot/libnt/include/libnt.h:53:46: note: expanded from macro 'NT_DEBUG' #define NT_DEBUG(...) _NT_DEBUG(__VA_ARGS__, "") ~~~~~~~~~~~ ^ E:/python/magiskboot/libnt/include/libnt.h:50:51: note: expanded from macro '_NT_DEBUG' #define _NT_DEBUG(fmt, ...) NT_DEBUG_IMPL(fmt, 0, __VA_ARGS__) ~~~ ^ E:/python/magiskboot/libnt/include/libnt.h:43:29: note: expanded from macro 'NT_DEBUG_IMPL' fprintf(__trace, __fmt, __VA_ARGS__); \ ~~~~~ ^ E:/python/magiskboot/libnt/mman.c:177:9: warning: data argument not used by format string [-Wformat-extra-args] NT_DEBUG("failed with %d (%s)", errno, strerror(errno)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ E:/python/magiskboot/libnt/include/libnt.h:53:46: note: expanded from macro 'NT_DEBUG' #define NT_DEBUG(...) _NT_DEBUG(__VA_ARGS__, "") ~~~~~~~~~~~~~~~~~~~~~~~^~~ E:/python/magiskboot/libnt/include/libnt.h:50:51: note: expanded from macro '_NT_DEBUG' #define _NT_DEBUG(fmt, ...) NT_DEBUG_IMPL(fmt, 0, __VA_ARGS__) ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ E:/python/magiskboot/libnt/include/libnt.h:45:77: note: expanded from macro 'NT_DEBUG_IMPL' fprintf(__trace, "%s:%d:%s: " __fmt "\n", __FILE__, __LINE__, __func__, __VA_ARGS__); \ ~~~~~~~~~~~~~~~~~~~~~~~ ^ E:/python/magiskboot/libnt/mman.c:184:9: warning: data argument not used by format string [-Wformat-extra-args] NT_DEBUG("failed with %d (%s)", errno, strerror(errno)); ^ ~~~~~~~~~~~~~~~~~~~~~ E:/python/magiskboot/libnt/include/libnt.h:53:46: note: expanded from macro 'NT_DEBUG' #define NT_DEBUG(...) _NT_DEBUG(__VA_ARGS__, "") ~~~~~~~~~~~ ^ E:/python/magiskboot/libnt/include/libnt.h:50:51: note: expanded from macro '_NT_DEBUG' #define _NT_DEBUG(fmt, ...) NT_DEBUG_IMPL(fmt, 0, __VA_ARGS__) ~~~ ^ E:/python/magiskboot/libnt/include/libnt.h:43:29: note: expanded from macro 'NT_DEBUG_IMPL' fprintf(__trace, __fmt, __VA_ARGS__); \ ~~~~~ ^ E:/python/magiskboot/libnt/mman.c:184:9: warning: data argument not used by format string [-Wformat-extra-args] NT_DEBUG("failed with %d (%s)", errno, strerror(errno)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ E:/python/magiskboot/libnt/include/libnt.h:53:46: note: expanded from macro 'NT_DEBUG' #define NT_DEBUG(...) _NT_DEBUG(__VA_ARGS__, "") ~~~~~~~~~~~~~~~~~~~~~~~^~~ E:/python/magiskboot/libnt/include/libnt.h:50:51: note: expanded from macro '_NT_DEBUG' #define _NT_DEBUG(fmt, ...) NT_DEBUG_IMPL(fmt, 0, __VA_ARGS__) ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ E:/python/magiskboot/libnt/include/libnt.h:45:77: note: expanded from macro 'NT_DEBUG_IMPL' fprintf(__trace, "%s:%d:%s: " __fmt "\n", __FILE__, __LINE__, __func__, __VA_ARGS__); \ ~~~~~~~~~~~~~~~~~~~~~~~ ^ E:/python/magiskboot/libnt/mman.c:198:9: warning: data argument not used by format string [-Wformat-extra-args] NT_DEBUG("failed with %d (%s)", errno, strerror(errno)); ^ ~~~~~~~~~~~~~~~~~~~~~ E:/python/magiskboot/libnt/include/libnt.h:53:46: note: expanded from macro 'NT_DEBUG' #define NT_DEBUG(...) _NT_DEBUG(__VA_ARGS__, "") ~~~~~~~~~~~ ^ E:/python/magiskboot/libnt/include/libnt.h:50:51: note: expanded from macro '_NT_DEBUG' #define _NT_DEBUG(fmt, ...) NT_DEBUG_IMPL(fmt, 0, __VA_ARGS__) ~~~ ^ E:/python/magiskboot/libnt/include/libnt.h:43:29: note: expanded from macro 'NT_DEBUG_IMPL' fprintf(__trace, __fmt, __VA_ARGS__); \ ~~~~~ ^ E:/python/magiskboot/libnt/mman.c:198:9: warning: data argument not used by format string [-Wformat-extra-args] NT_DEBUG("failed with %d (%s)", errno, strerror(errno)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ E:/python/magiskboot/libnt/include/libnt.h:53:46: note: expanded from macro 'NT_DEBUG' #define NT_DEBUG(...) _NT_DEBUG(__VA_ARGS__, "") ~~~~~~~~~~~~~~~~~~~~~~~^~~ E:/python/magiskboot/libnt/include/libnt.h:50:51: note: expanded from macro '_NT_DEBUG' #define _NT_DEBUG(fmt, ...) NT_DEBUG_IMPL(fmt, 0, __VA_ARGS__) ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ E:/python/magiskboot/libnt/include/libnt.h:45:77: note: expanded from macro 'NT_DEBUG_IMPL' fprintf(__trace, "%s:%d:%s: " __fmt "\n", __FILE__, __LINE__, __func__, __VA_ARGS__); \ ~~~~~~~~~~~~~~~~~~~~~~~ ^ 6 warnings generated. CC fnmatch.o AR libnt.a CC test.o E:/python/magiskboot/libnt/test.c:142:90: warning: format specifies type 'long long' but the argument has type '_off_t' (aka 'long') [-Wformat] printf("readlink: %s (sz: %d is_lnk: %d stsz: %lld)", path, sz, S_ISLNK(st.st_mode), st.st_size); ~~~~ ^~~~~~~~~~ %ld

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.