GauthamBanasandra commented on pull request #2853: URL: https://github.com/apache/hadoop/pull/2853#issuecomment-812396703
This PR fixes the warnings reported as part of https://github.com/apache/hadoop/pull/2792 in CI run https://github.com/apache/hadoop/pull/2792#issuecomment-812174669 ``` [ 62%] Building C object main/native/libhdfspp/tests/CMakeFiles/libhdfs_threaded_hdfspp_test_shim_static.dir/__/__/libhdfs-tests/expect.c.o [ 62%] Building C object main/native/libhdfspp/tests/CMakeFiles/libhdfs_threaded_hdfspp_test_shim_static.dir/__/__/libhdfs-tests/test_libhdfs_threaded.c.o /mnt/c/Users/Gautham/projects/apache/wsl/hadoop/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs-tests/test_libhdfs_threaded.c: In function ‘doTestHdfsOperations’: /mnt/c/Users/Gautham/projects/apache/wsl/hadoop/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs-tests/test_libhdfs_threaded.c:226:39: warning: ‘/many_files_’ directive output may be truncated writing 12 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 226 | snprintf(filename, PATH_MAX, "%s/many_files_%d", listDirTest, nFile); | ^~~~~~~~~~~~ /mnt/c/Users/Gautham/projects/apache/wsl/hadoop/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs-tests/test_libhdfs_threaded.c:226:7: note: ‘snprintf’ output between 14 and 4119 bytes into a destination of size 4096 226 | snprintf(filename, PATH_MAX, "%s/many_files_%d", listDirTest, nFile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
